3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
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"
27 --with-tclconfig directory containing tcl configuration (tclConfig.sh)"
29 --with-tkconfig directory containing tk configuration (tkConfig.sh)"
31 --with-tclinclude directory where tcl private headers are"
33 --with-tkinclude directory where tk private headers are"
35 --with-x use the X Window System"
37 --with-sim-gpu2=path Use GPU2 library under given directory"
39 --with-sim-funit=path Use target FP lib under given directory"
41 --enable-shared use shared libraries"
43 # Initialize some variables set by options.
44 # The variables have the same names as the options, with
45 # dashes changed to underlines.
47 cache_file
=.
/config.cache
56 program_transform_name
=s
,x
,x
,
64 bindir
='${exec_prefix}/bin'
65 sbindir
='${exec_prefix}/sbin'
66 libexecdir
='${exec_prefix}/libexec'
67 datadir
='${prefix}/share'
68 sysconfdir
='${prefix}/etc'
69 sharedstatedir
='${prefix}/com'
70 localstatedir
='${prefix}/var'
71 libdir
='${exec_prefix}/lib'
72 includedir
='${prefix}/include'
73 oldincludedir
='/usr/include'
74 infodir
='${prefix}/info'
75 mandir
='${prefix}/man'
77 # Initialize some other variables.
80 SHELL
=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
96 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 # Accept the important Cygnus configure options, so we can diagnose typos.
104 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
106 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
107 bindir
="$ac_optarg" ;;
109 -build |
--build |
--buil |
--bui |
--bu)
111 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
112 build
="$ac_optarg" ;;
114 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
115 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
116 ac_prev
=cache_file
;;
117 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
118 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
119 cache_file
="$ac_optarg" ;;
121 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
123 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
125 datadir
="$ac_optarg" ;;
127 -disable-* |
--disable-*)
128 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
136 -enable-* |
--enable-*)
137 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
149 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
150 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
151 |
--exec |
--exe |
--ex)
152 ac_prev
=exec_prefix
;;
153 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
154 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
155 |
--exec=* |
--exe=* |
--ex=*)
156 exec_prefix
="$ac_optarg" ;;
158 -gas |
--gas |
--ga |
--g)
159 # Obsolete; use --with-gas.
162 -help |
--help |
--hel |
--he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --version print the version of autoconf that created configure
174 Directory and file names:
175 --prefix=PREFIX install architecture-independent files in PREFIX
177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
179 --bindir=DIR user executables in DIR [EPREFIX/bin]
180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
182 --datadir=DIR read-only architecture-independent data in DIR
184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
185 --sharedstatedir=DIR modifiable architecture-independent data in DIR
187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
188 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
189 --includedir=DIR C header files in DIR [PREFIX/include]
190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
191 --infodir=DIR info documentation in DIR [PREFIX/info]
192 --mandir=DIR man documentation in DIR [PREFIX/man]
193 --srcdir=DIR find the sources in DIR [configure dir or ..]
194 --program-prefix=PREFIX prepend PREFIX to installed program names
195 --program-suffix=SUFFIX append SUFFIX to installed program names
196 --program-transform-name=PROGRAM
197 run sed PROGRAM on installed program names
201 --build=BUILD configure for building on BUILD [BUILD=HOST]
202 --host=HOST configure for HOST [guessed]
203 --target=TARGET configure for TARGET [TARGET=HOST]
204 Features and packages:
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
209 --x-includes=DIR X include files are in DIR
210 --x-libraries=DIR X library files are in DIR
212 if test -n "$ac_help"; then
213 echo "--enable and --with options recognized:$ac_help"
217 -host |
--host |
--hos |
--ho)
219 -host=* |
--host=* |
--hos=* |
--ho=*)
222 -includedir |
--includedir |
--includedi |
--included |
--include \
223 |
--includ |
--inclu |
--incl |
--inc)
224 ac_prev
=includedir
;;
225 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
226 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
227 includedir
="$ac_optarg" ;;
229 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
231 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
232 infodir
="$ac_optarg" ;;
234 -libdir |
--libdir |
--libdi |
--libd)
236 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
237 libdir
="$ac_optarg" ;;
239 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
240 |
--libexe |
--libex |
--libe)
241 ac_prev
=libexecdir
;;
242 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
243 |
--libexe=* |
--libex=* |
--libe=*)
244 libexecdir
="$ac_optarg" ;;
246 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
247 |
--localstate |
--localstat |
--localsta |
--localst \
248 |
--locals |
--local |
--loca |
--loc |
--lo)
249 ac_prev
=localstatedir
;;
250 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
251 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
252 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
253 localstatedir
="$ac_optarg" ;;
255 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
257 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
258 mandir
="$ac_optarg" ;;
261 # Obsolete; use --without-fp.
264 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
268 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
269 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
272 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
273 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
274 |
--oldin |
--oldi |
--old |
--ol |
--o)
275 ac_prev
=oldincludedir
;;
276 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
277 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
278 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
279 oldincludedir
="$ac_optarg" ;;
281 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
283 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
284 prefix
="$ac_optarg" ;;
286 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
287 |
--program-pre |
--program-pr |
--program-p)
288 ac_prev
=program_prefix
;;
289 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
290 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
291 program_prefix
="$ac_optarg" ;;
293 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
294 |
--program-suf |
--program-su |
--program-s)
295 ac_prev
=program_suffix
;;
296 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
297 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
298 program_suffix
="$ac_optarg" ;;
300 -program-transform-name |
--program-transform-name \
301 |
--program-transform-nam |
--program-transform-na \
302 |
--program-transform-n |
--program-transform- \
303 |
--program-transform |
--program-transfor \
304 |
--program-transfo |
--program-transf \
305 |
--program-trans |
--program-tran \
306 |
--progr-tra |
--program-tr |
--program-t)
307 ac_prev
=program_transform_name
;;
308 -program-transform-name=* |
--program-transform-name=* \
309 |
--program-transform-nam=* |
--program-transform-na=* \
310 |
--program-transform-n=* |
--program-transform-=* \
311 |
--program-transform=* |
--program-transfor=* \
312 |
--program-transfo=* |
--program-transf=* \
313 |
--program-trans=* |
--program-tran=* \
314 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
315 program_transform_name
="$ac_optarg" ;;
317 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
318 |
-silent |
--silent |
--silen |
--sile |
--sil)
321 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
323 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
325 sbindir
="$ac_optarg" ;;
327 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
328 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
329 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
331 ac_prev
=sharedstatedir
;;
332 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
333 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
334 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
336 sharedstatedir
="$ac_optarg" ;;
338 -site |
--site |
--sit)
340 -site=* |
--site=* |
--sit=*)
343 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
345 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
346 srcdir
="$ac_optarg" ;;
348 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
349 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
350 ac_prev
=sysconfdir
;;
351 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
352 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
353 sysconfdir
="$ac_optarg" ;;
355 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
357 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
358 target
="$ac_optarg" ;;
360 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
363 -version |
--version |
--versio |
--versi |
--vers)
364 echo "configure generated by autoconf version 2.12.1"
368 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package
=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* |
--without-*)
381 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package
=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
394 |
--x-incl |
--x-inc |
--x-in |
--x-i)
395 ac_prev
=x_includes
;;
396 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
397 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
398 x_includes
="$ac_optarg" ;;
400 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
401 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
402 ac_prev
=x_libraries
;;
403 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
404 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
405 x_libraries
="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE
; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
456 |
--no-cr |
--no-c) ;;
457 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
458 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
459 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest
* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file
=main.c
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted
=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted
=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$CONFIG_SITE"; then
509 if test "x$prefix" != xNONE
; then
510 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
512 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
515 for ac_site_file
in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
522 if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
526 echo "creating cache $cache_file"
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp
='$CPP $CPPFLAGS'
533 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling
=$ac_cv_prog_cc_cross
537 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
539 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
546 ac_n
= ac_c
='\c' ac_t
=
552 # Extract the first word of "gcc", so it can be a program name with args.
553 set dummy gcc
; ac_word
=$2
554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
555 echo "configure:556: checking for $ac_word" >&5
556 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
557 echo $ac_n "(cached) $ac_c" 1>&6
559 if test -n "$CC"; then
560 ac_cv_prog_CC
="$CC" # Let the user override the test.
562 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
563 for ac_dir
in $PATH; do
564 test -z "$ac_dir" && ac_dir
=.
565 if test -f $ac_dir/$ac_word; then
574 if test -n "$CC"; then
575 echo "$ac_t""$CC" 1>&6
577 echo "$ac_t""no" 1>&6
580 if test -z "$CC"; then
581 # Extract the first word of "cc", so it can be a program name with args.
582 set dummy cc
; ac_word
=$2
583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
584 echo "configure:585: checking for $ac_word" >&5
585 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
588 if test -n "$CC"; then
589 ac_cv_prog_CC
="$CC" # Let the user override the test.
591 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
593 for ac_dir
in $PATH; do
594 test -z "$ac_dir" && ac_dir
=.
595 if test -f $ac_dir/$ac_word; then
596 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
605 if test $ac_prog_rejected = yes; then
606 # We found a bogon in the path, so make sure we never use it.
607 set dummy
$ac_cv_prog_CC
609 if test $# -gt 0; then
610 # We chose a different compiler from the bogus one.
611 # However, it has the same basename, so the bogon will be chosen
612 # first if we set CC to just the basename; use the full file name.
614 set dummy
"$ac_dir/$ac_word" "$@"
622 if test -n "$CC"; then
623 echo "$ac_t""$CC" 1>&6
625 echo "$ac_t""no" 1>&6
628 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
631 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
632 echo "configure:633: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
636 ac_cpp
='$CPP $CPPFLAGS'
637 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
638 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
639 cross_compiling
=$ac_cv_prog_cc_cross
641 cat > conftest.
$ac_ext <<EOF
642 #line 643 "configure"
643 #include "confdefs.h"
646 if { (eval echo configure
:647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
647 ac_cv_prog_cc_works
=yes
648 # If we can't run a trivial program, we are probably using a cross compiler.
649 if (.
/conftest
; exit) 2>/dev
/null
; then
650 ac_cv_prog_cc_cross
=no
652 ac_cv_prog_cc_cross
=yes
655 echo "configure: failed program was:" >&5
656 cat conftest.
$ac_ext >&5
657 ac_cv_prog_cc_works
=no
661 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
662 if test $ac_cv_prog_cc_works = no
; then
663 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
665 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
666 echo "configure:667: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
667 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
668 cross_compiling
=$ac_cv_prog_cc_cross
670 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
671 echo "configure:672: checking whether we are using GNU C" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
675 cat > conftest.c
<<EOF
680 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
687 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
689 if test $ac_cv_prog_gcc = yes; then
691 ac_test_CFLAGS
="${CFLAGS+set}"
692 ac_save_CFLAGS
="$CFLAGS"
694 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
695 echo "configure:696: checking whether ${CC-cc} accepts -g" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 echo 'void f(){}' > conftest.c
700 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
709 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
710 if test "$ac_test_CFLAGS" = set; then
711 CFLAGS
="$ac_save_CFLAGS"
712 elif test $ac_cv_prog_cc_g = yes; then
719 test "${CFLAGS+set}" = set || CFLAGS
="-g"
722 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
723 echo "configure:724: checking how to run the C preprocessor" >&5
724 # On Suns, sometimes $CPP names a directory.
725 if test -n "$CPP" && test -d "$CPP"; then
728 if test -z "$CPP"; then
729 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
732 # This must be in double quotes, not single quotes, because CPP may get
733 # substituted into the Makefile and "${CC-cc}" will confuse make.
735 # On the NeXT, cc -E runs the code through the compiler's parser,
736 # not just through cpp.
737 cat > conftest.
$ac_ext <<EOF
738 #line 739 "configure"
739 #include "confdefs.h"
743 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
744 { (eval echo configure
:745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
745 ac_err
=`grep -v '^ *+' conftest.out`
746 if test -z "$ac_err"; then
750 echo "configure: failed program was:" >&5
751 cat conftest.
$ac_ext >&5
753 CPP
="${CC-cc} -E -traditional-cpp"
754 cat > conftest.
$ac_ext <<EOF
755 #line 756 "configure"
756 #include "confdefs.h"
760 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
761 { (eval echo configure
:762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
762 ac_err
=`grep -v '^ *+' conftest.out`
763 if test -z "$ac_err"; then
767 echo "configure: failed program was:" >&5
768 cat conftest.
$ac_ext >&5
775 ac_cv_prog_CPP
="$CPP"
777 CPP
="$ac_cv_prog_CPP"
779 ac_cv_prog_CPP
="$CPP"
781 echo "$ac_t""$CPP" 1>&6
783 echo $ac_n "checking for AIX""... $ac_c" 1>&6
784 echo "configure:785: checking for AIX" >&5
785 cat > conftest.
$ac_ext <<EOF
786 #line 787 "configure"
787 #include "confdefs.h"
793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
794 egrep "yes" >/dev
/null
2>&1; then
796 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
797 #define _ALL_SOURCE 1
802 echo "$ac_t""no" 1>&6
807 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
808 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
809 echo "configure:810: checking for minix/config.h" >&5
810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 cat > conftest.
$ac_ext <<EOF
814 #line 815 "configure"
815 #include "confdefs.h"
816 #include <minix/config.h>
818 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
819 { (eval echo configure
:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
820 ac_err
=`grep -v '^ *+' conftest.out`
821 if test -z "$ac_err"; then
823 eval "ac_cv_header_$ac_safe=yes"
826 echo "configure: failed program was:" >&5
827 cat conftest.
$ac_ext >&5
829 eval "ac_cv_header_$ac_safe=no"
833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
834 echo "$ac_t""yes" 1>&6
837 echo "$ac_t""no" 1>&6
841 if test "$MINIX" = yes; then
842 cat >> confdefs.h
<<\EOF
843 #define _POSIX_SOURCE 1
846 cat >> confdefs.h
<<\EOF
847 #define _POSIX_1_SOURCE 2
850 cat >> confdefs.h
<<\EOF
856 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
857 echo "configure:858: checking for POSIXized ISC" >&5
858 if test -d /etc
/conf
/kconfig.d
&&
859 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
861 echo "$ac_t""yes" 1>&6
862 ISC
=yes # If later tests want to check for ISC.
863 cat >> confdefs.h
<<\EOF
864 #define _POSIX_SOURCE 1
867 if test "$GCC" = yes; then
873 echo "$ac_t""no" 1>&6
878 DLLTOOL
=${DLLTOOL-dlltool}
882 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
883 if test -f $ac_dir/install-sh
; then
885 ac_install_sh
="$ac_aux_dir/install-sh -c"
887 elif test -f $ac_dir/install.sh
; then
889 ac_install_sh
="$ac_aux_dir/install.sh -c"
893 if test -z "$ac_aux_dir"; then
894 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
896 ac_config_guess
=$ac_aux_dir/config.guess
897 ac_config_sub
=$ac_aux_dir/config.sub
898 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
901 # Do some error checking and defaulting for the host and target type.
903 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
906 # 1. You are not allowed to specify --host, --target, and nonopt at the
908 # 2. Host defaults to nonopt.
909 # 3. If nonopt is not specified, then host defaults to the current host,
910 # as determined by config.guess.
911 # 4. Target and build default to nonopt.
912 # 5. If nonopt is not specified, then target and build default to host.
914 # The aliases save the names the user supplied, while $host etc.
915 # will get canonicalized.
916 case $host---$target---$nonopt in
917 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
918 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
922 # Make sure we can run config.sub.
923 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
924 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
927 echo $ac_n "checking host system type""... $ac_c" 1>&6
928 echo "configure:929: checking host system type" >&5
931 case "$host_alias" in
935 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
936 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
938 *) host_alias
=$nonopt ;;
942 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
943 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
944 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
945 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
946 echo "$ac_t""$host" 1>&6
948 echo $ac_n "checking target system type""... $ac_c" 1>&6
949 echo "configure:950: checking target system type" >&5
952 case "$target_alias" in
955 NONE
) target_alias
=$host_alias ;;
956 *) target_alias
=$nonopt ;;
960 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
961 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
962 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
963 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
964 echo "$ac_t""$target" 1>&6
966 echo $ac_n "checking build system type""... $ac_c" 1>&6
967 echo "configure:968: checking build system type" >&5
970 case "$build_alias" in
973 NONE
) build_alias
=$host_alias ;;
974 *) build_alias
=$nonopt ;;
978 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
979 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
980 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
981 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
982 echo "$ac_t""$build" 1>&6
984 test "$host_alias" != "$target_alias" &&
985 test "$program_prefix$program_suffix$program_transform_name" = \
987 program_prefix
=${target_alias}-
991 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
992 echo "configure:993: checking whether ${MAKE-make} sets \${MAKE}" >&5
993 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
994 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 cat > conftestmake
<<\EOF
999 @
echo 'ac_maketemp="${MAKE}"'
1001 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1002 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1003 if test -n "$ac_maketemp"; then
1004 eval ac_cv_prog_make_
${ac_make}_set
=yes
1006 eval ac_cv_prog_make_
${ac_make}_set
=no
1010 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1011 echo "$ac_t""yes" 1>&6
1014 echo "$ac_t""no" 1>&6
1015 SET_MAKE
="MAKE=${MAKE-make}"
1018 # Extract the first word of "ranlib", so it can be a program name with args.
1019 set dummy ranlib
; ac_word
=$2
1020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1021 echo "configure:1022: checking for $ac_word" >&5
1022 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1025 if test -n "$RANLIB"; then
1026 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1028 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1029 for ac_dir
in $PATH; do
1030 test -z "$ac_dir" && ac_dir
=.
1031 if test -f $ac_dir/$ac_word; then
1032 ac_cv_prog_RANLIB
="ranlib"
1037 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1040 RANLIB
="$ac_cv_prog_RANLIB"
1041 if test -n "$RANLIB"; then
1042 echo "$ac_t""$RANLIB" 1>&6
1044 echo "$ac_t""no" 1>&6
1047 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1048 echo "configure:1049: checking for ANSI C header files" >&5
1049 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 cat > conftest.
$ac_ext <<EOF
1053 #line 1054 "configure"
1054 #include "confdefs.h"
1060 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1061 { (eval echo configure
:1062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1062 ac_err
=`grep -v '^ *+' conftest.out`
1063 if test -z "$ac_err"; then
1065 ac_cv_header_stdc
=yes
1068 echo "configure: failed program was:" >&5
1069 cat conftest.
$ac_ext >&5
1071 ac_cv_header_stdc
=no
1075 if test $ac_cv_header_stdc = yes; then
1076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1077 cat > conftest.
$ac_ext <<EOF
1078 #line 1079 "configure"
1079 #include "confdefs.h"
1082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1083 egrep "memchr" >/dev
/null
2>&1; then
1087 ac_cv_header_stdc
=no
1093 if test $ac_cv_header_stdc = yes; then
1094 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1095 cat > conftest.
$ac_ext <<EOF
1096 #line 1097 "configure"
1097 #include "confdefs.h"
1100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1101 egrep "free" >/dev
/null
2>&1; then
1105 ac_cv_header_stdc
=no
1111 if test $ac_cv_header_stdc = yes; then
1112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1113 if test "$cross_compiling" = yes; then
1116 cat > conftest.
$ac_ext <<EOF
1117 #line 1118 "configure"
1118 #include "confdefs.h"
1120 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1121 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1123 int main () { int i; for (i = 0; i < 256; i++)
1124 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1128 if { (eval echo configure
:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1132 echo "configure: failed program was:" >&5
1133 cat conftest.
$ac_ext >&5
1135 ac_cv_header_stdc
=no
1143 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1144 if test $ac_cv_header_stdc = yes; then
1145 cat >> confdefs.h
<<\EOF
1146 #define STDC_HEADERS 1
1151 echo $ac_n "checking for working const""... $ac_c" 1>&6
1152 echo "configure:1153: checking for working const" >&5
1153 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 cat > conftest.
$ac_ext <<EOF
1157 #line 1158 "configure"
1158 #include "confdefs.h"
1162 /* Ultrix mips cc rejects this. */
1163 typedef int charset[2]; const charset x;
1164 /* SunOS 4.1.1 cc rejects this. */
1165 char const *const *ccp;
1167 /* NEC SVR4.0.2 mips cc rejects this. */
1168 struct point {int x, y;};
1169 static struct point const zero = {0,0};
1170 /* AIX XL C 1.02.0.0 rejects this.
1171 It does not let you subtract one const X* pointer from another in an arm
1172 of an if-expression whose if-part is not a constant expression */
1173 const char *g = "string";
1174 ccp = &g + (g ? g-g : 0);
1175 /* HPUX 7.0 cc rejects these. */
1178 ccp = (char const *const *) p;
1179 { /* SCO 3.2v4 cc rejects this. */
1181 char const *s = 0 ? (char *) 0 : (char const *) 0;
1185 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1187 const int *foo = &x[0];
1190 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1191 typedef const int *iptr;
1195 { /* AIX XL C 1.02.0.0 rejects this saying
1196 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1197 struct s { int j; const int *ap[3]; };
1198 struct s *b; b->j = 5;
1200 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1206 if { (eval echo configure
:1207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1210 echo "configure: failed program was:" >&5
1211 cat conftest.
$ac_ext >&5
1218 echo "$ac_t""$ac_cv_c_const" 1>&6
1219 if test $ac_cv_c_const = no
; then
1220 cat >> confdefs.h
<<\EOF
1226 echo $ac_n "checking for inline""... $ac_c" 1>&6
1227 echo "configure:1228: checking for inline" >&5
1228 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1232 for ac_kw
in inline __inline__ __inline
; do
1233 cat > conftest.
$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1241 if { (eval echo configure
:1242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1243 ac_cv_c_inline
=$ac_kw; break
1245 echo "configure: failed program was:" >&5
1246 cat conftest.
$ac_ext >&5
1253 echo "$ac_t""$ac_cv_c_inline" 1>&6
1254 case "$ac_cv_c_inline" in
1256 no
) cat >> confdefs.h
<<\EOF
1260 *) cat >> confdefs.h
<<EOF
1261 #define inline $ac_cv_c_inline
1266 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1267 echo "configure:1268: checking for off_t" >&5
1268 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&6
1271 cat > conftest.
$ac_ext <<EOF
1272 #line 1273 "configure"
1273 #include "confdefs.h"
1274 #include <sys/types.h>
1280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1281 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1283 ac_cv_type_off_t
=yes
1291 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1292 if test $ac_cv_type_off_t = no
; then
1293 cat >> confdefs.h
<<\EOF
1299 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1300 echo "configure:1301: checking for size_t" >&5
1301 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 cat > conftest.
$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307 #include <sys/types.h>
1313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1314 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1316 ac_cv_type_size_t
=yes
1319 ac_cv_type_size_t
=no
1324 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1325 if test $ac_cv_type_size_t = no
; then
1326 cat >> confdefs.h
<<\EOF
1327 #define size_t unsigned
1332 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1333 # for constant arguments. Useless!
1334 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1335 echo "configure:1336: checking for working alloca.h" >&5
1336 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 cat > conftest.
$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1344 char *p = alloca(2 * sizeof(int));
1347 if { (eval echo configure
:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1349 ac_cv_header_alloca_h
=yes
1351 echo "configure: failed program was:" >&5
1352 cat conftest.
$ac_ext >&5
1354 ac_cv_header_alloca_h
=no
1359 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1360 if test $ac_cv_header_alloca_h = yes; then
1361 cat >> confdefs.h
<<\EOF
1362 #define HAVE_ALLOCA_H 1
1367 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1368 echo "configure:1369: checking for alloca" >&5
1369 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 cat > conftest.
$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1377 # define alloca __builtin_alloca
1380 # include <alloca.h>
1385 # ifndef alloca /* predefined by HP cc +Olibcalls */
1393 char *p = (char *) alloca(1);
1396 if { (eval echo configure
:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1398 ac_cv_func_alloca_works
=yes
1400 echo "configure: failed program was:" >&5
1401 cat conftest.
$ac_ext >&5
1403 ac_cv_func_alloca_works
=no
1408 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1409 if test $ac_cv_func_alloca_works = yes; then
1410 cat >> confdefs.h
<<\EOF
1411 #define HAVE_ALLOCA 1
1416 if test $ac_cv_func_alloca_works = no
; then
1417 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1418 # that cause trouble. Some versions do not even contain alloca or
1419 # contain a buggy version. If you still want to use their alloca,
1420 # use ar to extract alloca.o from them instead of compiling alloca.c.
1422 cat >> confdefs.h
<<\EOF
1427 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1428 echo "configure:1429: checking whether alloca needs Cray hooks" >&5
1429 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 cat > conftest.
$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1435 #if defined(CRAY) && ! defined(CRAY2)
1442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1443 egrep "webecray" >/dev
/null
2>&1; then
1454 echo "$ac_t""$ac_cv_os_cray" 1>&6
1455 if test $ac_cv_os_cray = yes; then
1456 for ac_func
in _getb67 GETB67 getb67
; do
1457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1458 echo "configure:1459: checking for $ac_func" >&5
1459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 cat > conftest.
$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1465 /* System header to define __stub macros and hopefully few prototypes,
1466 which can conflict with char $ac_func(); below. */
1468 /* Override any gcc2 internal prototype to avoid an error. */
1469 /* We use char because int might match the return type of a gcc2
1470 builtin and then its argument prototype would still apply. */
1475 /* The GNU C library defines this for functions which it implements
1476 to always fail with ENOSYS. Some functions are actually named
1477 something starting with __ and the normal name is an alias. */
1478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1486 if { (eval echo configure
:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1488 eval "ac_cv_func_$ac_func=yes"
1490 echo "configure: failed program was:" >&5
1491 cat conftest.
$ac_ext >&5
1493 eval "ac_cv_func_$ac_func=no"
1498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1499 echo "$ac_t""yes" 1>&6
1500 cat >> confdefs.h
<<EOF
1501 #define CRAY_STACKSEG_END $ac_func
1506 echo "$ac_t""no" 1>&6
1512 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1513 echo "configure:1514: checking stack direction for C alloca" >&5
1514 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 if test "$cross_compiling" = yes; then
1518 ac_cv_c_stack_direction
=0
1520 cat > conftest.
$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1523 find_stack_direction ()
1525 static char *addr = 0;
1530 return find_stack_direction ();
1533 return (&dummy > addr) ? 1 : -1;
1537 exit (find_stack_direction() < 0);
1540 if { (eval echo configure
:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1542 ac_cv_c_stack_direction
=1
1544 echo "configure: failed program was:" >&5
1545 cat conftest.
$ac_ext >&5
1547 ac_cv_c_stack_direction
=-1
1554 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1555 cat >> confdefs.h
<<EOF
1556 #define STACK_DIRECTION $ac_cv_c_stack_direction
1561 for ac_hdr
in unistd.h
1563 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1565 echo "configure:1566: checking for $ac_hdr" >&5
1566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1569 cat > conftest.
$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1574 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1575 { (eval echo configure
:1576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1576 ac_err
=`grep -v '^ *+' conftest.out`
1577 if test -z "$ac_err"; then
1579 eval "ac_cv_header_$ac_safe=yes"
1582 echo "configure: failed program was:" >&5
1583 cat conftest.
$ac_ext >&5
1585 eval "ac_cv_header_$ac_safe=no"
1589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1590 echo "$ac_t""yes" 1>&6
1591 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1592 cat >> confdefs.h
<<EOF
1593 #define $ac_tr_hdr 1
1597 echo "$ac_t""no" 1>&6
1601 for ac_func
in getpagesize
1603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1604 echo "configure:1605: checking for $ac_func" >&5
1605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 cat > conftest.
$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611 /* System header to define __stub macros and hopefully few prototypes,
1612 which can conflict with char $ac_func(); below. */
1614 /* Override any gcc2 internal prototype to avoid an error. */
1615 /* We use char because int might match the return type of a gcc2
1616 builtin and then its argument prototype would still apply. */
1621 /* The GNU C library defines this for functions which it implements
1622 to always fail with ENOSYS. Some functions are actually named
1623 something starting with __ and the normal name is an alias. */
1624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1632 if { (eval echo configure
:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1634 eval "ac_cv_func_$ac_func=yes"
1636 echo "configure: failed program was:" >&5
1637 cat conftest.
$ac_ext >&5
1639 eval "ac_cv_func_$ac_func=no"
1644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1645 echo "$ac_t""yes" 1>&6
1646 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1647 cat >> confdefs.h
<<EOF
1648 #define $ac_tr_func 1
1652 echo "$ac_t""no" 1>&6
1656 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1657 echo "configure:1658: checking for working mmap" >&5
1658 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1661 if test "$cross_compiling" = yes; then
1662 ac_cv_func_mmap_fixed_mapped
=no
1664 cat > conftest.
$ac_ext <<EOF
1665 #line 1666 "configure"
1666 #include "confdefs.h"
1668 /* Thanks to Mike Haertel and Jim Avera for this test.
1669 Here is a matrix of mmap possibilities:
1670 mmap private not fixed
1671 mmap private fixed at somewhere currently unmapped
1672 mmap private fixed at somewhere already mapped
1673 mmap shared not fixed
1674 mmap shared fixed at somewhere currently unmapped
1675 mmap shared fixed at somewhere already mapped
1676 For private mappings, we should verify that changes cannot be read()
1677 back from the file, nor mmap's back from the file at a different
1678 address. (There have been systems where private was not correctly
1679 implemented like the infamous i386 svr4.0, and systems where the
1680 VM page cache was not coherent with the filesystem buffer cache
1681 like early versions of FreeBSD and possibly contemporary NetBSD.)
1682 For shared mappings, we should conversely verify that changes get
1683 propogated back to all the places they're supposed to be.
1685 Grep wants private fixed already mapped.
1686 The main things grep needs to know about mmap are:
1687 * does it exist and is it safe to write into the mmap'd area
1688 * how to use it (BSD variants) */
1689 #include <sys/types.h>
1691 #include <sys/mman.h>
1693 /* This mess was copied from the GNU getpagesize.h. */
1694 #ifndef HAVE_GETPAGESIZE
1695 # ifdef HAVE_UNISTD_H
1696 # include <unistd.h>
1699 /* Assume that all systems that can run configure have sys/param.h. */
1700 # ifndef HAVE_SYS_PARAM_H
1701 # define HAVE_SYS_PARAM_H 1
1704 # ifdef _SC_PAGESIZE
1705 # define getpagesize() sysconf(_SC_PAGESIZE)
1706 # else /* no _SC_PAGESIZE */
1707 # ifdef HAVE_SYS_PARAM_H
1708 # include <sys/param.h>
1709 # ifdef EXEC_PAGESIZE
1710 # define getpagesize() EXEC_PAGESIZE
1711 # else /* no EXEC_PAGESIZE */
1713 # define getpagesize() NBPG * CLSIZE
1716 # endif /* no CLSIZE */
1717 # else /* no NBPG */
1719 # define getpagesize() NBPC
1720 # else /* no NBPC */
1722 # define getpagesize() PAGESIZE
1723 # endif /* PAGESIZE */
1724 # endif /* no NBPC */
1725 # endif /* no NBPG */
1726 # endif /* no EXEC_PAGESIZE */
1727 # else /* no HAVE_SYS_PARAM_H */
1728 # define getpagesize() 8192 /* punt totally */
1729 # endif /* no HAVE_SYS_PARAM_H */
1730 # endif /* no _SC_PAGESIZE */
1732 #endif /* no HAVE_GETPAGESIZE */
1735 extern "C" { void *malloc(unsigned); }
1743 char *data, *data2, *data3;
1747 pagesize = getpagesize();
1750 * First, make a file with some known garbage in it.
1752 data = malloc(pagesize);
1755 for (i = 0; i < pagesize; ++i)
1756 *(data + i) = rand();
1758 fd = creat("conftestmmap", 0600);
1761 if (write(fd, data, pagesize) != pagesize)
1766 * Next, try to mmap the file at a fixed address which
1767 * already has something else allocated at it. If we can,
1768 * also make sure that we see the same garbage.
1770 fd = open("conftestmmap", O_RDWR);
1773 data2 = malloc(2 * pagesize);
1776 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1777 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1778 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1780 for (i = 0; i < pagesize; ++i)
1781 if (*(data + i) != *(data2 + i))
1785 * Finally, make sure that changes to the mapped area
1786 * do not percolate back to the file as seen by read().
1787 * (This is a bug on some variants of i386 svr4.0.)
1789 for (i = 0; i < pagesize; ++i)
1790 *(data2 + i) = *(data2 + i) + 1;
1791 data3 = malloc(pagesize);
1794 if (read(fd, data3, pagesize) != pagesize)
1796 for (i = 0; i < pagesize; ++i)
1797 if (*(data + i) != *(data3 + i))
1800 unlink("conftestmmap");
1805 if { (eval echo configure
:1806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1807 ac_cv_func_mmap_fixed_mapped
=yes
1809 echo "configure: failed program was:" >&5
1810 cat conftest.
$ac_ext >&5
1812 ac_cv_func_mmap_fixed_mapped
=no
1819 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1820 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1821 cat >> confdefs.h
<<\EOF
1828 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1829 unistd.h values.h sys
/param.h
1831 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $ac_hdr" >&5
1834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1837 cat > conftest.
$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1842 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1843 { (eval echo configure
:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1844 ac_err
=`grep -v '^ *+' conftest.out`
1845 if test -z "$ac_err"; then
1847 eval "ac_cv_header_$ac_safe=yes"
1850 echo "configure: failed program was:" >&5
1851 cat conftest.
$ac_ext >&5
1853 eval "ac_cv_header_$ac_safe=no"
1857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1858 echo "$ac_t""yes" 1>&6
1859 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1860 cat >> confdefs.h
<<EOF
1861 #define $ac_tr_hdr 1
1865 echo "$ac_t""no" 1>&6
1869 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1870 __argz_count __argz_stringify __argz_next
1872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1873 echo "configure:1874: checking for $ac_func" >&5
1874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 cat > conftest.
$ac_ext <<EOF
1878 #line 1879 "configure"
1879 #include "confdefs.h"
1880 /* System header to define __stub macros and hopefully few prototypes,
1881 which can conflict with char $ac_func(); below. */
1883 /* Override any gcc2 internal prototype to avoid an error. */
1884 /* We use char because int might match the return type of a gcc2
1885 builtin and then its argument prototype would still apply. */
1890 /* The GNU C library defines this for functions which it implements
1891 to always fail with ENOSYS. Some functions are actually named
1892 something starting with __ and the normal name is an alias. */
1893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1901 if { (eval echo configure
:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1903 eval "ac_cv_func_$ac_func=yes"
1905 echo "configure: failed program was:" >&5
1906 cat conftest.
$ac_ext >&5
1908 eval "ac_cv_func_$ac_func=no"
1913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1914 echo "$ac_t""yes" 1>&6
1915 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1916 cat >> confdefs.h
<<EOF
1917 #define $ac_tr_func 1
1921 echo "$ac_t""no" 1>&6
1926 if test "${ac_cv_func_stpcpy+set}" != "set"; then
1927 for ac_func
in stpcpy
1929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1930 echo "configure:1931: checking for $ac_func" >&5
1931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 cat > conftest.
$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1937 /* System header to define __stub macros and hopefully few prototypes,
1938 which can conflict with char $ac_func(); below. */
1940 /* Override any gcc2 internal prototype to avoid an error. */
1941 /* We use char because int might match the return type of a gcc2
1942 builtin and then its argument prototype would still apply. */
1947 /* The GNU C library defines this for functions which it implements
1948 to always fail with ENOSYS. Some functions are actually named
1949 something starting with __ and the normal name is an alias. */
1950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1958 if { (eval echo configure
:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1960 eval "ac_cv_func_$ac_func=yes"
1962 echo "configure: failed program was:" >&5
1963 cat conftest.
$ac_ext >&5
1965 eval "ac_cv_func_$ac_func=no"
1970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1971 echo "$ac_t""yes" 1>&6
1972 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1973 cat >> confdefs.h
<<EOF
1974 #define $ac_tr_func 1
1978 echo "$ac_t""no" 1>&6
1983 if test "${ac_cv_func_stpcpy}" = "yes"; then
1984 cat >> confdefs.h
<<\EOF
1985 #define HAVE_STPCPY 1
1990 if test $ac_cv_header_locale_h = yes; then
1991 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
1992 echo "configure:1993: checking for LC_MESSAGES" >&5
1993 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1996 cat > conftest.
$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
2004 if { (eval echo configure
:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2006 am_cv_val_LC_MESSAGES
=yes
2008 echo "configure: failed program was:" >&5
2009 cat conftest.
$ac_ext >&5
2011 am_cv_val_LC_MESSAGES
=no
2016 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2017 if test $am_cv_val_LC_MESSAGES = yes; then
2018 cat >> confdefs.h
<<\EOF
2019 #define HAVE_LC_MESSAGES 1
2024 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2025 echo "configure:2026: checking whether NLS is requested" >&5
2026 # Check whether --enable-nls or --disable-nls was given.
2027 if test "${enable_nls+set}" = set; then
2028 enableval
="$enable_nls"
2034 echo "$ac_t""$USE_NLS" 1>&6
2037 USE_INCLUDED_LIBINTL
=no
2039 if test "$USE_NLS" = "yes"; then
2040 cat >> confdefs.h
<<\EOF
2041 #define ENABLE_NLS 1
2044 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2045 echo "configure:2046: checking whether included gettext is requested" >&5
2046 # Check whether --with-included-gettext or --without-included-gettext was given.
2047 if test "${with_included_gettext+set}" = set; then
2048 withval
="$with_included_gettext"
2049 nls_cv_force_use_gnu_gettext
=$withval
2051 nls_cv_force_use_gnu_gettext
=no
2054 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2056 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2057 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2059 nls_cv_header_libgt
=
2062 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2063 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2064 echo "configure:2065: checking for libintl.h" >&5
2065 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2068 cat > conftest.
$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2071 #include <libintl.h>
2073 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2074 { (eval echo configure
:2075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2075 ac_err
=`grep -v '^ *+' conftest.out`
2076 if test -z "$ac_err"; then
2078 eval "ac_cv_header_$ac_safe=yes"
2081 echo "configure: failed program was:" >&5
2082 cat conftest.
$ac_ext >&5
2084 eval "ac_cv_header_$ac_safe=no"
2088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2089 echo "$ac_t""yes" 1>&6
2090 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2091 echo "configure:2092: checking for gettext in libc" >&5
2092 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 cat > conftest.
$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2098 #include <libintl.h>
2100 return (int) gettext ("")
2103 if { (eval echo configure
:2104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2105 gt_cv_func_gettext_libc
=yes
2107 echo "configure: failed program was:" >&5
2108 cat conftest.
$ac_ext >&5
2110 gt_cv_func_gettext_libc
=no
2115 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2117 if test "$gt_cv_func_gettext_libc" != "yes"; then
2118 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2119 echo "configure:2120: checking for bindtextdomain in -lintl" >&5
2120 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 ac_save_LIBS
="$LIBS"
2126 cat > conftest.
$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2129 /* Override any gcc2 internal prototype to avoid an error. */
2130 /* We use char because int might match the return type of a gcc2
2131 builtin and then its argument prototype would still apply. */
2132 char bindtextdomain();
2138 if { (eval echo configure
:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2140 eval "ac_cv_lib_$ac_lib_var=yes"
2142 echo "configure: failed program was:" >&5
2143 cat conftest.
$ac_ext >&5
2145 eval "ac_cv_lib_$ac_lib_var=no"
2148 LIBS
="$ac_save_LIBS"
2151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2152 echo "$ac_t""yes" 1>&6
2153 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2154 echo "configure:2155: checking for gettext in libintl" >&5
2155 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2158 cat > conftest.
$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2163 return (int) gettext ("")
2166 if { (eval echo configure
:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2168 gt_cv_func_gettext_libintl
=yes
2170 echo "configure: failed program was:" >&5
2171 cat conftest.
$ac_ext >&5
2173 gt_cv_func_gettext_libintl
=no
2178 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2180 echo "$ac_t""no" 1>&6
2185 if test "$gt_cv_func_gettext_libc" = "yes" \
2186 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2187 cat >> confdefs.h
<<\EOF
2188 #define HAVE_GETTEXT 1
2191 # Extract the first word of "msgfmt", so it can be a program name with args.
2192 set dummy msgfmt
; ac_word
=$2
2193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2194 echo "configure:2195: checking for $ac_word" >&5
2195 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2200 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2203 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2204 for ac_dir
in $PATH; do
2205 test -z "$ac_dir" && ac_dir
=.
2206 if test -f $ac_dir/$ac_word; then
2207 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2208 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2214 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2218 MSGFMT
="$ac_cv_path_MSGFMT"
2219 if test -n "$MSGFMT"; then
2220 echo "$ac_t""$MSGFMT" 1>&6
2222 echo "$ac_t""no" 1>&6
2224 if test "$MSGFMT" != "no"; then
2225 for ac_func
in dcgettext
2227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_func" >&5
2229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.
$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 /* System header to define __stub macros and hopefully few prototypes,
2236 which can conflict with char $ac_func(); below. */
2238 /* Override any gcc2 internal prototype to avoid an error. */
2239 /* We use char because int might match the return type of a gcc2
2240 builtin and then its argument prototype would still apply. */
2245 /* The GNU C library defines this for functions which it implements
2246 to always fail with ENOSYS. Some functions are actually named
2247 something starting with __ and the normal name is an alias. */
2248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2256 if { (eval echo configure
:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2258 eval "ac_cv_func_$ac_func=yes"
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 eval "ac_cv_func_$ac_func=no"
2268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2269 echo "$ac_t""yes" 1>&6
2270 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2271 cat >> confdefs.h
<<EOF
2272 #define $ac_tr_func 1
2276 echo "$ac_t""no" 1>&6
2280 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2281 set dummy gmsgfmt
; ac_word
=$2
2282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2283 echo "configure:2284: checking for $ac_word" >&5
2284 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2289 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2292 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2295 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2296 for ac_dir
in $PATH; do
2297 test -z "$ac_dir" && ac_dir
=.
2298 if test -f $ac_dir/$ac_word; then
2299 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2304 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2308 GMSGFMT
="$ac_cv_path_GMSGFMT"
2309 if test -n "$GMSGFMT"; then
2310 echo "$ac_t""$GMSGFMT" 1>&6
2312 echo "$ac_t""no" 1>&6
2315 # Extract the first word of "xgettext", so it can be a program name with args.
2316 set dummy xgettext
; ac_word
=$2
2317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2318 echo "configure:2319: checking for $ac_word" >&5
2319 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2324 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2327 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2328 for ac_dir
in $PATH; do
2329 test -z "$ac_dir" && ac_dir
=.
2330 if test -f $ac_dir/$ac_word; then
2331 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2332 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2338 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2342 XGETTEXT
="$ac_cv_path_XGETTEXT"
2343 if test -n "$XGETTEXT"; then
2344 echo "$ac_t""$XGETTEXT" 1>&6
2346 echo "$ac_t""no" 1>&6
2349 cat > conftest.
$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2354 extern int _nl_msg_cat_cntr;
2355 return _nl_msg_cat_cntr
2358 if { (eval echo configure
:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2363 echo "configure: failed program was:" >&5
2364 cat conftest.
$ac_ext >&5
2375 echo "$ac_t""no" 1>&6
2380 if test "$CATOBJEXT" = "NONE"; then
2381 nls_cv_use_gnu_gettext
=yes
2385 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2386 INTLOBJS
="\$(GETTOBJS)"
2387 # Extract the first word of "msgfmt", so it can be a program name with args.
2388 set dummy msgfmt
; ac_word
=$2
2389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2390 echo "configure:2391: checking for $ac_word" >&5
2391 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2396 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2399 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2400 for ac_dir
in $PATH; do
2401 test -z "$ac_dir" && ac_dir
=.
2402 if test -f $ac_dir/$ac_word; then
2403 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2404 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2410 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2414 MSGFMT
="$ac_cv_path_MSGFMT"
2415 if test -n "$MSGFMT"; then
2416 echo "$ac_t""$MSGFMT" 1>&6
2418 echo "$ac_t""no" 1>&6
2421 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2422 set dummy gmsgfmt
; ac_word
=$2
2423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_word" >&5
2425 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2430 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2433 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2436 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2437 for ac_dir
in $PATH; do
2438 test -z "$ac_dir" && ac_dir
=.
2439 if test -f $ac_dir/$ac_word; then
2440 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2445 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2449 GMSGFMT
="$ac_cv_path_GMSGFMT"
2450 if test -n "$GMSGFMT"; then
2451 echo "$ac_t""$GMSGFMT" 1>&6
2453 echo "$ac_t""no" 1>&6
2456 # Extract the first word of "xgettext", so it can be a program name with args.
2457 set dummy xgettext
; 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_XGETTEXT'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2465 ac_cv_path_XGETTEXT
="$XGETTEXT" # 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 '(HELP)'`"; then
2473 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2479 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2483 XGETTEXT
="$ac_cv_path_XGETTEXT"
2484 if test -n "$XGETTEXT"; then
2485 echo "$ac_t""$XGETTEXT" 1>&6
2487 echo "$ac_t""no" 1>&6
2491 USE_INCLUDED_LIBINTL
=yes
2495 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2497 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2498 nls_cv_header_intl
=libintl.h
2499 nls_cv_header_libgt
=libgettext.h
2502 if test "$XGETTEXT" != ":"; then
2503 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2506 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2511 # We need to process the po/ directory.
2515 nls_cv_header_intl
=libintl.h
2516 nls_cv_header_libgt
=libgettext.h
2519 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2520 # because some of the sources are only built for this goal.
2521 if test "$PACKAGE" = gettext; then
2523 USE_INCLUDED_LIBINTL
=yes
2526 for lang
in $ALL_LINGUAS; do
2527 GMOFILES
="$GMOFILES $lang.gmo"
2528 POFILES
="$POFILES $lang.po"
2544 if test "x$CATOBJEXT" != "x"; then
2545 if test "x$ALL_LINGUAS" = "x"; then
2548 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2549 echo "configure:2550: checking for catalogs to be installed" >&5
2551 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2552 case "$ALL_LINGUAS" in
2553 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2556 LINGUAS
=$NEW_LINGUAS
2557 echo "$ac_t""$LINGUAS" 1>&6
2560 if test -n "$LINGUAS"; then
2561 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2565 if test $ac_cv_header_locale_h = yes; then
2566 INCLUDE_LOCALE_H
="#include <locale.h>"
2569 /* The system does not provide the header <locale.h>. Take care yourself. */"
2573 if test -f $srcdir/po2tbl.
sed.
in; then
2574 if test "$CATOBJEXT" = ".cat"; then
2575 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2576 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2577 echo "configure:2578: checking for linux/version.h" >&5
2578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2581 cat > conftest.
$ac_ext <<EOF
2582 #line 2583 "configure"
2583 #include "confdefs.h"
2584 #include <linux/version.h>
2586 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2587 { (eval echo configure
:2588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2588 ac_err
=`grep -v '^ *+' conftest.out`
2589 if test -z "$ac_err"; then
2591 eval "ac_cv_header_$ac_safe=yes"
2594 echo "configure: failed program was:" >&5
2595 cat conftest.
$ac_ext >&5
2597 eval "ac_cv_header_$ac_safe=no"
2601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2602 echo "$ac_t""yes" 1>&6
2605 echo "$ac_t""no" 1>&6
2610 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2612 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2613 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2616 if test "$PACKAGE" = "gettext"; then
2626 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2632 if test -d $srcdir/po
; then
2633 test -d po || mkdir po
2634 if test "x$srcdir" != "x."; then
2635 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2636 posrcprefix
="$srcdir/"
2638 posrcprefix
="../$srcdir/"
2644 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2645 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2654 configdirs
="doc testsuite"
2657 .
${srcdir}/configure.
host
2659 .
${srcdir}/configure.tgt
2662 # Find a good install program. We prefer a C program (faster),
2663 # so one script is as good as another. But avoid the broken or
2664 # incompatible versions:
2665 # SysV /etc/install, /usr/sbin/install
2666 # SunOS /usr/etc/install
2667 # IRIX /sbin/install
2669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2672 # ./install, which can be erroneously created by make from ./install.sh.
2673 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2674 echo "configure:2675: checking for a BSD compatible install" >&5
2675 if test -z "$INSTALL"; then
2676 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2679 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2680 for ac_dir
in $PATH; do
2681 # Account for people who put trailing slashes in PATH elements.
2683 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2685 # OSF1 and SCO ODT 3.0 have their own names for install.
2686 # Don't use installbsd from OSF since it installs stuff as root
2688 for ac_prog
in ginstall scoinst
install; do
2689 if test -f $ac_dir/$ac_prog; then
2690 if test $ac_prog = install &&
2691 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2692 # AIX install. It has an incompatible calling convention.
2695 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2706 if test "${ac_cv_path_install+set}" = set; then
2707 INSTALL
="$ac_cv_path_install"
2709 # As a last resort, use the slow shell script. We don't cache a
2710 # path for INSTALL within a source directory, because that will
2711 # break other packages using the cache if that directory is
2712 # removed, or if the path is relative.
2713 INSTALL
="$ac_install_sh"
2716 echo "$ac_t""$INSTALL" 1>&6
2718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2719 # It thinks the first close brace ends the variable substitution.
2720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2722 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2724 if test $host != $build; then
2725 ac_tool_prefix
=${host_alias}-
2730 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2731 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2733 echo "configure:2734: checking for $ac_word" >&5
2734 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 if test -n "$AR"; then
2738 ac_cv_prog_AR
="$AR" # Let the user override the test.
2740 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2741 for ac_dir
in $PATH; do
2742 test -z "$ac_dir" && ac_dir
=.
2743 if test -f $ac_dir/$ac_word; then
2744 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2749 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2753 if test -n "$AR"; then
2754 echo "$ac_t""$AR" 1>&6
2756 echo "$ac_t""no" 1>&6
2761 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2762 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2764 echo "configure:2765: checking for $ac_word" >&5
2765 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2768 if test -n "$RANLIB"; then
2769 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2771 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2772 for ac_dir
in $PATH; do
2773 test -z "$ac_dir" && ac_dir
=.
2774 if test -f $ac_dir/$ac_word; then
2775 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2782 RANLIB
="$ac_cv_prog_RANLIB"
2783 if test -n "$RANLIB"; then
2784 echo "$ac_t""$RANLIB" 1>&6
2786 echo "$ac_t""no" 1>&6
2790 if test -z "$ac_cv_prog_RANLIB"; then
2791 if test -n "$ac_tool_prefix"; then
2792 # Extract the first word of "ranlib", so it can be a program name with args.
2793 set dummy ranlib
; ac_word
=$2
2794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2795 echo "configure:2796: checking for $ac_word" >&5
2796 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2799 if test -n "$RANLIB"; then
2800 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2802 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2803 for ac_dir
in $PATH; do
2804 test -z "$ac_dir" && ac_dir
=.
2805 if test -f $ac_dir/$ac_word; then
2806 ac_cv_prog_RANLIB
="ranlib"
2811 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2814 RANLIB
="$ac_cv_prog_RANLIB"
2815 if test -n "$RANLIB"; then
2816 echo "$ac_t""$RANLIB" 1>&6
2818 echo "$ac_t""no" 1>&6
2826 for ac_prog
in 'bison -y' byacc
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy
$ac_prog; ac_word
=$2
2830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2831 echo "configure:2832: checking for $ac_word" >&5
2832 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2835 if test -n "$YACC"; then
2836 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2838 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2839 for ac_dir
in $PATH; do
2840 test -z "$ac_dir" && ac_dir
=.
2841 if test -f $ac_dir/$ac_word; then
2842 ac_cv_prog_YACC
="$ac_prog"
2849 YACC
="$ac_cv_prog_YACC"
2850 if test -n "$YACC"; then
2851 echo "$ac_t""$YACC" 1>&6
2853 echo "$ac_t""no" 1>&6
2856 test -n "$YACC" && break
2858 test -n "$YACC" || YACC
="yacc"
2860 for ac_prog
in mawk gawk nawk
awk
2862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2863 set dummy
$ac_prog; ac_word
=$2
2864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2865 echo "configure:2866: checking for $ac_word" >&5
2866 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2869 if test -n "$AWK"; then
2870 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2872 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2873 for ac_dir
in $PATH; do
2874 test -z "$ac_dir" && ac_dir
=.
2875 if test -f $ac_dir/$ac_word; then
2876 ac_cv_prog_AWK
="$ac_prog"
2883 AWK
="$ac_cv_prog_AWK"
2884 if test -n "$AWK"; then
2885 echo "$ac_t""$AWK" 1>&6
2887 echo "$ac_t""no" 1>&6
2890 test -n "$AWK" && break
2894 if test "$program_transform_name" = s
,x
,x
,; then
2895 program_transform_name
=
2897 # Double any \ or $. echo might interpret backslashes.
2898 cat <<\EOF_SED
> conftestsed
2899 s
,\\,\\\\,g
; s
,\$
,$$
,g
2901 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2904 test "$program_prefix" != NONE
&&
2905 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2906 # Use a double $ so make ignores it.
2907 test "$program_suffix" != NONE
&&
2908 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2910 # sed with no file args requires a program.
2911 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2914 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2915 echo "configure:2916: checking return type of signal handlers" >&5
2916 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2919 cat > conftest.
$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2922 #include <sys/types.h>
2928 extern "C" void (*signal (int, void (*)(int)))(int);
2930 void (*signal ()) ();
2937 if { (eval echo configure
:2938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2939 ac_cv_type_signal
=void
2941 echo "configure: failed program was:" >&5
2942 cat conftest.
$ac_ext >&5
2944 ac_cv_type_signal
=int
2949 echo "$ac_t""$ac_cv_type_signal" 1>&6
2950 cat >> confdefs.h
<<EOF
2951 #define RETSIGTYPE $ac_cv_type_signal
2956 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2957 echo "configure:2958: checking for ANSI C header files" >&5
2958 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2961 cat > conftest.
$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2969 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2970 { (eval echo configure
:2971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2971 ac_err
=`grep -v '^ *+' conftest.out`
2972 if test -z "$ac_err"; then
2974 ac_cv_header_stdc
=yes
2977 echo "configure: failed program was:" >&5
2978 cat conftest.
$ac_ext >&5
2980 ac_cv_header_stdc
=no
2984 if test $ac_cv_header_stdc = yes; then
2985 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2986 cat > conftest.
$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2992 egrep "memchr" >/dev
/null
2>&1; then
2996 ac_cv_header_stdc
=no
3002 if test $ac_cv_header_stdc = yes; then
3003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3004 cat > conftest.
$ac_ext <<EOF
3005 #line 3006 "configure"
3006 #include "confdefs.h"
3009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3010 egrep "free" >/dev
/null
2>&1; then
3014 ac_cv_header_stdc
=no
3020 if test $ac_cv_header_stdc = yes; then
3021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3022 if test "$cross_compiling" = yes; then
3025 cat > conftest.
$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3029 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3030 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3031 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3032 int main () { int i; for (i = 0; i < 256; i++)
3033 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3037 if { (eval echo configure
:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3041 echo "configure: failed program was:" >&5
3042 cat conftest.
$ac_ext >&5
3044 ac_cv_header_stdc
=no
3052 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3053 if test $ac_cv_header_stdc = yes; then
3054 cat >> confdefs.h
<<\EOF
3055 #define STDC_HEADERS 1
3060 for ac_hdr
in limits.h memory.h string.h
strings.h unistd.h termios.h termio.h sgtty.h stddef.h stdlib.h sys
/procfs.h link.h endian.h objlist.h
3062 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3063 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3064 echo "configure:3065: checking for $ac_hdr" >&5
3065 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 cat > conftest.
$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3073 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3074 { (eval echo configure
:3075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3075 ac_err
=`grep -v '^ *+' conftest.out`
3076 if test -z "$ac_err"; then
3078 eval "ac_cv_header_$ac_safe=yes"
3081 echo "configure: failed program was:" >&5
3082 cat conftest.
$ac_ext >&5
3084 eval "ac_cv_header_$ac_safe=no"
3088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3089 echo "$ac_t""yes" 1>&6
3090 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3091 cat >> confdefs.h
<<EOF
3092 #define $ac_tr_hdr 1
3096 echo "$ac_t""no" 1>&6
3100 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3101 echo "configure:3102: checking whether stat file-mode macros are broken" >&5
3102 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3105 cat > conftest.
$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3108 #include <sys/types.h>
3109 #include <sys/stat.h>
3111 #if defined(S_ISBLK) && defined(S_IFDIR)
3112 # if S_ISBLK (S_IFDIR)
3117 #if defined(S_ISBLK) && defined(S_IFCHR)
3118 # if S_ISBLK (S_IFCHR)
3123 #if defined(S_ISLNK) && defined(S_IFREG)
3124 # if S_ISLNK (S_IFREG)
3129 #if defined(S_ISSOCK) && defined(S_IFREG)
3130 # if S_ISSOCK (S_IFREG)
3136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3137 egrep "You lose" >/dev
/null
2>&1; then
3139 ac_cv_header_stat_broken
=yes
3142 ac_cv_header_stat_broken
=no
3148 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3149 if test $ac_cv_header_stat_broken = yes; then
3150 cat >> confdefs.h
<<\EOF
3151 #define STAT_MACROS_BROKEN 1
3157 echo $ac_n "checking for working const""... $ac_c" 1>&6
3158 echo "configure:3159: checking for working const" >&5
3159 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3162 cat > conftest.
$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3168 /* Ultrix mips cc rejects this. */
3169 typedef int charset[2]; const charset x;
3170 /* SunOS 4.1.1 cc rejects this. */
3171 char const *const *ccp;
3173 /* NEC SVR4.0.2 mips cc rejects this. */
3174 struct point {int x, y;};
3175 static struct point const zero = {0,0};
3176 /* AIX XL C 1.02.0.0 rejects this.
3177 It does not let you subtract one const X* pointer from another in an arm
3178 of an if-expression whose if-part is not a constant expression */
3179 const char *g = "string";
3180 ccp = &g + (g ? g-g : 0);
3181 /* HPUX 7.0 cc rejects these. */
3184 ccp = (char const *const *) p;
3185 { /* SCO 3.2v4 cc rejects this. */
3187 char const *s = 0 ? (char *) 0 : (char const *) 0;
3191 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3193 const int *foo = &x[0];
3196 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3197 typedef const int *iptr;
3201 { /* AIX XL C 1.02.0.0 rejects this saying
3202 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3203 struct s { int j; const int *ap[3]; };
3204 struct s *b; b->j = 5;
3206 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3212 if { (eval echo configure
:3213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3216 echo "configure: failed program was:" >&5
3217 cat conftest.
$ac_ext >&5
3224 echo "$ac_t""$ac_cv_c_const" 1>&6
3225 if test $ac_cv_c_const = no
; then
3226 cat >> confdefs.h
<<\EOF
3233 for ac_func
in setpgid sbrk
select poll sigaction
3235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3236 echo "configure:3237: checking for $ac_func" >&5
3237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3240 cat > conftest.
$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 /* System header to define __stub macros and hopefully few prototypes,
3244 which can conflict with char $ac_func(); below. */
3246 /* Override any gcc2 internal prototype to avoid an error. */
3247 /* We use char because int might match the return type of a gcc2
3248 builtin and then its argument prototype would still apply. */
3253 /* The GNU C library defines this for functions which it implements
3254 to always fail with ENOSYS. Some functions are actually named
3255 something starting with __ and the normal name is an alias. */
3256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3264 if { (eval echo configure
:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3266 eval "ac_cv_func_$ac_func=yes"
3268 echo "configure: failed program was:" >&5
3269 cat conftest.
$ac_ext >&5
3271 eval "ac_cv_func_$ac_func=no"
3276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3277 echo "$ac_t""yes" 1>&6
3278 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3279 cat >> confdefs.h
<<EOF
3280 #define $ac_tr_func 1
3284 echo "$ac_t""no" 1>&6
3288 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3289 # for constant arguments. Useless!
3290 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3291 echo "configure:3292: checking for working alloca.h" >&5
3292 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3295 cat > conftest.
$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3300 char *p = alloca(2 * sizeof(int));
3303 if { (eval echo configure
:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3305 ac_cv_header_alloca_h
=yes
3307 echo "configure: failed program was:" >&5
3308 cat conftest.
$ac_ext >&5
3310 ac_cv_header_alloca_h
=no
3315 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3316 if test $ac_cv_header_alloca_h = yes; then
3317 cat >> confdefs.h
<<\EOF
3318 #define HAVE_ALLOCA_H 1
3323 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3324 echo "configure:3325: checking for alloca" >&5
3325 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3328 cat > conftest.
$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3333 # define alloca __builtin_alloca
3336 # include <alloca.h>
3341 # ifndef alloca /* predefined by HP cc +Olibcalls */
3349 char *p = (char *) alloca(1);
3352 if { (eval echo configure
:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3354 ac_cv_func_alloca_works
=yes
3356 echo "configure: failed program was:" >&5
3357 cat conftest.
$ac_ext >&5
3359 ac_cv_func_alloca_works
=no
3364 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3365 if test $ac_cv_func_alloca_works = yes; then
3366 cat >> confdefs.h
<<\EOF
3367 #define HAVE_ALLOCA 1
3372 if test $ac_cv_func_alloca_works = no
; then
3373 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3374 # that cause trouble. Some versions do not even contain alloca or
3375 # contain a buggy version. If you still want to use their alloca,
3376 # use ar to extract alloca.o from them instead of compiling alloca.c.
3378 cat >> confdefs.h
<<\EOF
3383 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3384 echo "configure:3385: checking whether alloca needs Cray hooks" >&5
3385 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 cat > conftest.
$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #if defined(CRAY) && ! defined(CRAY2)
3398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3399 egrep "webecray" >/dev
/null
2>&1; then
3410 echo "$ac_t""$ac_cv_os_cray" 1>&6
3411 if test $ac_cv_os_cray = yes; then
3412 for ac_func
in _getb67 GETB67 getb67
; do
3413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3414 echo "configure:3415: checking for $ac_func" >&5
3415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3418 cat > conftest.
$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3421 /* System header to define __stub macros and hopefully few prototypes,
3422 which can conflict with char $ac_func(); below. */
3424 /* Override any gcc2 internal prototype to avoid an error. */
3425 /* We use char because int might match the return type of a gcc2
3426 builtin and then its argument prototype would still apply. */
3431 /* The GNU C library defines this for functions which it implements
3432 to always fail with ENOSYS. Some functions are actually named
3433 something starting with __ and the normal name is an alias. */
3434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3442 if { (eval echo configure
:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3444 eval "ac_cv_func_$ac_func=yes"
3446 echo "configure: failed program was:" >&5
3447 cat conftest.
$ac_ext >&5
3449 eval "ac_cv_func_$ac_func=no"
3454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3455 echo "$ac_t""yes" 1>&6
3456 cat >> confdefs.h
<<EOF
3457 #define CRAY_STACKSEG_END $ac_func
3462 echo "$ac_t""no" 1>&6
3468 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3469 echo "configure:3470: checking stack direction for C alloca" >&5
3470 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 if test "$cross_compiling" = yes; then
3474 ac_cv_c_stack_direction
=0
3476 cat > conftest.
$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3479 find_stack_direction ()
3481 static char *addr = 0;
3486 return find_stack_direction ();
3489 return (&dummy > addr) ? 1 : -1;
3493 exit (find_stack_direction() < 0);
3496 if { (eval echo configure
:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3498 ac_cv_c_stack_direction
=1
3500 echo "configure: failed program was:" >&5
3501 cat conftest.
$ac_ext >&5
3503 ac_cv_c_stack_direction
=-1
3510 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3511 cat >> confdefs.h
<<EOF
3512 #define STACK_DIRECTION $ac_cv_c_stack_direction
3518 # If we are configured native on GNU/Linux, work around problems with sys/procfs.h
3519 if test "${target}" = "${host}"; then
3522 cat >> confdefs.h
<<\EOF
3523 #define START_INFERIOR_TRAPS_EXPECTED 2
3526 cat >> confdefs.h
<<\EOF
3527 #define sys_quotactl 1
3534 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
3535 echo "configure:3536: checking for gregset_t type" >&5
3536 if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 cat > conftest.
$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 #include <sys/procfs.h>
3544 gregset_t *gregsetp = 0
3547 if { (eval echo configure
:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3549 gdb_cv_have_gregset_t
=yes
3551 echo "configure: failed program was:" >&5
3552 cat conftest.
$ac_ext >&5
3554 gdb_cv_have_gregset_t
=no
3559 echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6
3560 if test $gdb_cv_have_gregset_t = yes; then
3561 cat >> confdefs.h
<<\EOF
3562 #define HAVE_GREGSET_T 1
3567 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
3568 echo "configure:3569: checking for fpregset_t type" >&5
3569 if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3572 cat > conftest.
$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3575 #include <sys/procfs.h>
3577 fpregset_t *fpregsetp = 0
3580 if { (eval echo configure
:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3582 gdb_cv_have_fpregset_t
=yes
3584 echo "configure: failed program was:" >&5
3585 cat conftest.
$ac_ext >&5
3587 gdb_cv_have_fpregset_t
=no
3592 echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6
3593 if test $gdb_cv_have_fpregset_t = yes; then
3594 cat >> confdefs.h
<<\EOF
3595 #define HAVE_FPREGSET_T 1
3600 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3601 echo "configure:3602: checking for main in -lm" >&5
3602 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 ac_save_LIBS
="$LIBS"
3608 cat > conftest.
$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3616 if { (eval echo configure
:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3618 eval "ac_cv_lib_$ac_lib_var=yes"
3620 echo "configure: failed program was:" >&5
3621 cat conftest.
$ac_ext >&5
3623 eval "ac_cv_lib_$ac_lib_var=no"
3626 LIBS
="$ac_save_LIBS"
3629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3630 echo "$ac_t""yes" 1>&6
3631 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3632 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3633 cat >> confdefs.h
<<EOF
3634 #define $ac_tr_lib 1
3640 echo "$ac_t""no" 1>&6
3645 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
3646 echo "configure:3647: checking for long long support in compiler" >&5
3647 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3650 cat > conftest.
$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3656 extern long long foo;
3657 switch (foo & 2) { case 0: return 1; }
3661 if { (eval echo configure
:3662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3663 gdb_cv_c_long_long
=yes
3665 echo "configure: failed program was:" >&5
3666 cat conftest.
$ac_ext >&5
3668 gdb_cv_c_long_long
=no
3673 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
3674 if test $gdb_cv_c_long_long = yes; then
3675 cat >> confdefs.h
<<\EOF
3676 #define CC_HAS_LONG_LONG 1
3682 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
3683 echo "configure:3684: checking for long long support in printf" >&5
3684 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 if test "$cross_compiling" = yes; then
3688 gdb_cv_printf_has_long_long
=no
3690 cat > conftest.
$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3697 l = (l << 16) + 0x0123;
3698 l = (l << 16) + 0x4567;
3699 l = (l << 16) + 0x89ab;
3700 l = (l << 16) + 0xcdef;
3701 sprintf (buf, "0x%016llx", l);
3702 return (strcmp ("0x0123456789abcdef", buf));
3705 if { (eval echo configure
:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3707 gdb_cv_printf_has_long_long
=yes
3709 echo "configure: failed program was:" >&5
3710 cat conftest.
$ac_ext >&5
3712 gdb_cv_printf_has_long_long
=no
3719 if test $gdb_cv_printf_has_long_long = yes; then
3720 cat >> confdefs.h
<<\EOF
3721 #define PRINTF_HAS_LONG_LONG 1
3725 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
3728 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
3729 echo "configure:3730: checking for long double support in compiler" >&5
3730 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3733 cat > conftest.
$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3741 if { (eval echo configure
:3742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3743 ac_cv_c_long_double
=yes
3745 echo "configure: failed program was:" >&5
3746 cat conftest.
$ac_ext >&5
3748 ac_cv_c_long_double
=no
3753 echo "$ac_t""$ac_cv_c_long_double" 1>&6
3754 if test $ac_cv_c_long_double = yes; then
3755 cat >> confdefs.h
<<\EOF
3756 #define HAVE_LONG_DOUBLE 1
3762 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
3763 echo "configure:3764: checking for long double support in printf" >&5
3764 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
3765 echo $ac_n "(cached) $ac_c" 1>&6
3767 if test "$cross_compiling" = yes; then
3768 gdb_cv_printf_has_long_double
=no
3770 cat > conftest.
$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3776 long double f = 3.141592653;
3777 sprintf (buf, "%Lg", f);
3778 return (strncmp ("3.14159", buf, 7));
3781 if { (eval echo configure
:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3783 gdb_cv_printf_has_long_double
=yes
3785 echo "configure: failed program was:" >&5
3786 cat conftest.
$ac_ext >&5
3788 gdb_cv_printf_has_long_double
=no
3795 if test $gdb_cv_printf_has_long_double = yes; then
3796 cat >> confdefs.h
<<\EOF
3797 #define PRINTF_HAS_LONG_DOUBLE 1
3801 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
3804 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
3805 echo "configure:3806: checking for long double support in scanf" >&5
3806 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3809 if test "$cross_compiling" = yes; then
3810 gdb_cv_scanf_has_long_double
=no
3812 cat > conftest.
$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3817 char *buf = "3.141592653";
3819 sscanf (buf, "%Lg", &f);
3820 return !(f > 3.14159 && f < 3.14160);
3823 if { (eval echo configure
:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3825 gdb_cv_scanf_has_long_double
=yes
3827 echo "configure: failed program was:" >&5
3828 cat conftest.
$ac_ext >&5
3830 gdb_cv_scanf_has_long_double
=no
3837 if test $gdb_cv_scanf_has_long_double = yes; then
3838 cat >> confdefs.h
<<\EOF
3839 #define SCANF_HAS_LONG_DOUBLE 1
3843 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
3845 for ac_hdr
in unistd.h
3847 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3849 echo "configure:3850: checking for $ac_hdr" >&5
3850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3853 cat > conftest.
$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3858 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3859 { (eval echo configure
:3860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3860 ac_err
=`grep -v '^ *+' conftest.out`
3861 if test -z "$ac_err"; then
3863 eval "ac_cv_header_$ac_safe=yes"
3866 echo "configure: failed program was:" >&5
3867 cat conftest.
$ac_ext >&5
3869 eval "ac_cv_header_$ac_safe=no"
3873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3874 echo "$ac_t""yes" 1>&6
3875 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3876 cat >> confdefs.h
<<EOF
3877 #define $ac_tr_hdr 1
3881 echo "$ac_t""no" 1>&6
3885 for ac_func
in getpagesize
3887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3888 echo "configure:3889: checking for $ac_func" >&5
3889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3892 cat > conftest.
$ac_ext <<EOF
3893 #line 3894 "configure"
3894 #include "confdefs.h"
3895 /* System header to define __stub macros and hopefully few prototypes,
3896 which can conflict with char $ac_func(); below. */
3898 /* Override any gcc2 internal prototype to avoid an error. */
3899 /* We use char because int might match the return type of a gcc2
3900 builtin and then its argument prototype would still apply. */
3905 /* The GNU C library defines this for functions which it implements
3906 to always fail with ENOSYS. Some functions are actually named
3907 something starting with __ and the normal name is an alias. */
3908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3916 if { (eval echo configure
:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3918 eval "ac_cv_func_$ac_func=yes"
3920 echo "configure: failed program was:" >&5
3921 cat conftest.
$ac_ext >&5
3923 eval "ac_cv_func_$ac_func=no"
3928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3929 echo "$ac_t""yes" 1>&6
3930 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3931 cat >> confdefs.h
<<EOF
3932 #define $ac_tr_func 1
3936 echo "$ac_t""no" 1>&6
3940 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3941 echo "configure:3942: checking for working mmap" >&5
3942 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3943 echo $ac_n "(cached) $ac_c" 1>&6
3945 if test "$cross_compiling" = yes; then
3946 ac_cv_func_mmap_fixed_mapped
=no
3948 cat > conftest.
$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3952 /* Thanks to Mike Haertel and Jim Avera for this test.
3953 Here is a matrix of mmap possibilities:
3954 mmap private not fixed
3955 mmap private fixed at somewhere currently unmapped
3956 mmap private fixed at somewhere already mapped
3957 mmap shared not fixed
3958 mmap shared fixed at somewhere currently unmapped
3959 mmap shared fixed at somewhere already mapped
3960 For private mappings, we should verify that changes cannot be read()
3961 back from the file, nor mmap's back from the file at a different
3962 address. (There have been systems where private was not correctly
3963 implemented like the infamous i386 svr4.0, and systems where the
3964 VM page cache was not coherent with the filesystem buffer cache
3965 like early versions of FreeBSD and possibly contemporary NetBSD.)
3966 For shared mappings, we should conversely verify that changes get
3967 propogated back to all the places they're supposed to be.
3969 Grep wants private fixed already mapped.
3970 The main things grep needs to know about mmap are:
3971 * does it exist and is it safe to write into the mmap'd area
3972 * how to use it (BSD variants) */
3973 #include <sys/types.h>
3975 #include <sys/mman.h>
3977 /* This mess was copied from the GNU getpagesize.h. */
3978 #ifndef HAVE_GETPAGESIZE
3979 # ifdef HAVE_UNISTD_H
3980 # include <unistd.h>
3983 /* Assume that all systems that can run configure have sys/param.h. */
3984 # ifndef HAVE_SYS_PARAM_H
3985 # define HAVE_SYS_PARAM_H 1
3988 # ifdef _SC_PAGESIZE
3989 # define getpagesize() sysconf(_SC_PAGESIZE)
3990 # else /* no _SC_PAGESIZE */
3991 # ifdef HAVE_SYS_PARAM_H
3992 # include <sys/param.h>
3993 # ifdef EXEC_PAGESIZE
3994 # define getpagesize() EXEC_PAGESIZE
3995 # else /* no EXEC_PAGESIZE */
3997 # define getpagesize() NBPG * CLSIZE
4000 # endif /* no CLSIZE */
4001 # else /* no NBPG */
4003 # define getpagesize() NBPC
4004 # else /* no NBPC */
4006 # define getpagesize() PAGESIZE
4007 # endif /* PAGESIZE */
4008 # endif /* no NBPC */
4009 # endif /* no NBPG */
4010 # endif /* no EXEC_PAGESIZE */
4011 # else /* no HAVE_SYS_PARAM_H */
4012 # define getpagesize() 8192 /* punt totally */
4013 # endif /* no HAVE_SYS_PARAM_H */
4014 # endif /* no _SC_PAGESIZE */
4016 #endif /* no HAVE_GETPAGESIZE */
4019 extern "C" { void *malloc(unsigned); }
4027 char *data, *data2, *data3;
4031 pagesize = getpagesize();
4034 * First, make a file with some known garbage in it.
4036 data = malloc(pagesize);
4039 for (i = 0; i < pagesize; ++i)
4040 *(data + i) = rand();
4042 fd = creat("conftestmmap", 0600);
4045 if (write(fd, data, pagesize) != pagesize)
4050 * Next, try to mmap the file at a fixed address which
4051 * already has something else allocated at it. If we can,
4052 * also make sure that we see the same garbage.
4054 fd = open("conftestmmap", O_RDWR);
4057 data2 = malloc(2 * pagesize);
4060 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4061 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4062 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4064 for (i = 0; i < pagesize; ++i)
4065 if (*(data + i) != *(data2 + i))
4069 * Finally, make sure that changes to the mapped area
4070 * do not percolate back to the file as seen by read().
4071 * (This is a bug on some variants of i386 svr4.0.)
4073 for (i = 0; i < pagesize; ++i)
4074 *(data2 + i) = *(data2 + i) + 1;
4075 data3 = malloc(pagesize);
4078 if (read(fd, data3, pagesize) != pagesize)
4080 for (i = 0; i < pagesize; ++i)
4081 if (*(data + i) != *(data3 + i))
4084 unlink("conftestmmap");
4089 if { (eval echo configure
:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4091 ac_cv_func_mmap_fixed_mapped
=yes
4093 echo "configure: failed program was:" >&5
4094 cat conftest.
$ac_ext >&5
4096 ac_cv_func_mmap_fixed_mapped
=no
4103 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4104 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4105 cat >> confdefs.h
<<\EOF
4112 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4113 echo "configure:4114: checking whether malloc must be declared" >&5
4114 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 cat > conftest.
$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4122 #ifdef HAVE_STRING_H
4125 #ifdef HAVE_STRINGS_H
4126 #include <strings.h>
4129 #ifdef HAVE_STDLIB_H
4132 #ifdef HAVE_UNISTD_H
4136 char *(*pfn) = (char *(*)) malloc
4139 if { (eval echo configure
:4140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4141 bfd_cv_decl_needed_malloc
=no
4143 echo "configure: failed program was:" >&5
4144 cat conftest.
$ac_ext >&5
4146 bfd_cv_decl_needed_malloc
=yes
4151 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4152 if test $bfd_cv_decl_needed_malloc = yes; then
4153 bfd_tr_decl
=NEED_DECLARATION_
`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4154 cat >> confdefs.h
<<EOF
4155 #define $bfd_tr_decl 1
4160 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4161 echo "configure:4162: checking whether realloc must be declared" >&5
4162 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4165 cat > conftest.
$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4170 #ifdef HAVE_STRING_H
4173 #ifdef HAVE_STRINGS_H
4174 #include <strings.h>
4177 #ifdef HAVE_STDLIB_H
4180 #ifdef HAVE_UNISTD_H
4184 char *(*pfn) = (char *(*)) realloc
4187 if { (eval echo configure
:4188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4189 bfd_cv_decl_needed_realloc
=no
4191 echo "configure: failed program was:" >&5
4192 cat conftest.
$ac_ext >&5
4194 bfd_cv_decl_needed_realloc
=yes
4199 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4200 if test $bfd_cv_decl_needed_realloc = yes; then
4201 bfd_tr_decl
=NEED_DECLARATION_
`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4202 cat >> confdefs.h
<<EOF
4203 #define $bfd_tr_decl 1
4208 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4209 echo "configure:4210: checking whether free must be declared" >&5
4210 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4213 cat > conftest.
$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4218 #ifdef HAVE_STRING_H
4221 #ifdef HAVE_STRINGS_H
4222 #include <strings.h>
4225 #ifdef HAVE_STDLIB_H
4228 #ifdef HAVE_UNISTD_H
4232 char *(*pfn) = (char *(*)) free
4235 if { (eval echo configure
:4236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4237 bfd_cv_decl_needed_free
=no
4239 echo "configure: failed program was:" >&5
4240 cat conftest.
$ac_ext >&5
4242 bfd_cv_decl_needed_free
=yes
4247 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4248 if test $bfd_cv_decl_needed_free = yes; then
4249 bfd_tr_decl
=NEED_DECLARATION_
`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4250 cat >> confdefs.h
<<EOF
4251 #define $bfd_tr_decl 1
4257 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4258 echo "configure:4259: checking whether strerror must be declared" >&5
4259 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 cat > conftest.
$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4267 #ifdef HAVE_STRING_H
4270 #ifdef HAVE_STRINGS_H
4271 #include <strings.h>
4274 #ifdef HAVE_STDLIB_H
4277 #ifdef HAVE_UNISTD_H
4281 char *(*pfn) = (char *(*)) strerror
4284 if { (eval echo configure
:4285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4286 bfd_cv_decl_needed_strerror
=no
4288 echo "configure: failed program was:" >&5
4289 cat conftest.
$ac_ext >&5
4291 bfd_cv_decl_needed_strerror
=yes
4296 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4297 if test $bfd_cv_decl_needed_strerror = yes; then
4298 bfd_tr_decl
=NEED_DECLARATION_
`echo strerror | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4299 cat >> confdefs.h
<<EOF
4300 #define $bfd_tr_decl 1
4308 if test ${build} = ${host} -a ${host} = ${target} ; then
4311 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
4312 echo "configure:4313: checking for HPUX/OSF thread support" >&5
4313 if test -f /usr
/include
/dce
/cma_config.h
; then
4314 if test "$GCC" = "yes" ; then
4315 echo "$ac_t""yes" 1>&6
4316 cat >> confdefs.h
<<\EOF
4317 #define HAVE_HPUX_THREAD_SUPPORT 1
4320 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
4321 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
4323 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
4326 echo "$ac_t""no" 1>&6
4330 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
4331 echo "configure:4332: checking for Solaris thread debugging library" >&5
4332 if test -f /usr
/lib
/libthread_db.so
.1 ; then
4333 echo "$ac_t""yes" 1>&6
4334 cat >> confdefs.h
<<\EOF
4335 #define HAVE_THREAD_DB_LIB 1
4338 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
4339 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
4340 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4341 echo "configure:4342: checking for dlopen in -ldl" >&5
4342 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 ac_save_LIBS
="$LIBS"
4348 cat > conftest.
$ac_ext <<EOF
4349 #line 4350 "configure"
4350 #include "confdefs.h"
4351 /* Override any gcc2 internal prototype to avoid an error. */
4352 /* We use char because int might match the return type of a gcc2
4353 builtin and then its argument prototype would still apply. */
4360 if { (eval echo configure
:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4362 eval "ac_cv_lib_$ac_lib_var=yes"
4364 echo "configure: failed program was:" >&5
4365 cat conftest.
$ac_ext >&5
4367 eval "ac_cv_lib_$ac_lib_var=no"
4370 LIBS
="$ac_save_LIBS"
4373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4374 echo "$ac_t""yes" 1>&6
4375 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4376 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4377 cat >> confdefs.h
<<EOF
4378 #define $ac_tr_lib 1
4384 echo "$ac_t""no" 1>&6
4387 if test "$GCC" = "yes" ; then
4388 # The GNU linker requires the -export-dynamic option to make
4389 # all symbols visible in the dynamic symbol table.
4390 hold_ldflags
=$LDFLAGS
4391 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
4392 echo "configure:4393: checking for the ld -export-dynamic flag" >&5
4393 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
4394 cat > conftest.
$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4402 if { (eval echo configure
:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4406 echo "configure: failed program was:" >&5
4407 cat conftest.
$ac_ext >&5
4412 LDFLAGS
=$hold_ldflags
4413 echo "$ac_t""$found" 1>&6
4414 if test $found = yes; then
4415 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
4419 echo "$ac_t""no" 1>&6
4428 # Check whether --enable-netrom or --disable-netrom was given.
4429 if test "${enable_netrom+set}" = set; then
4430 enableval
="$enable_netrom"
4431 case "${enableval}" in
4432 yes) enable_netrom
=yes ;;
4433 no
) enable_netrom
=no
;;
4434 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
4439 if test "${enable_netrom}" = "yes"; then
4440 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
4441 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
4449 # Check whether --with-mmalloc or --without-mmalloc was given.
4450 if test "${with_mmalloc+set}" = set; then
4451 withval
="$with_mmalloc"
4452 case "${withval}" in
4453 yes) want_mmalloc
=true
;;
4454 no
) want_mmalloc
=false
;;
4455 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
4461 if test x
$want_mmalloc = xtrue
; then
4462 cat >> confdefs.h
<<\EOF
4463 #define USE_MMALLOC 1
4466 cat >> confdefs.h
<<\EOF
4467 #define MMCHECK_FORCE 1
4470 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
4471 MMALLOC
='../mmalloc/libmmalloc.a'
4474 # start-sanitize-gdbtk
4476 # Check whether --enable-ide or --disable-ide was given.
4477 if test "${enable_ide+set}" = set; then
4478 enableval
="$enable_ide"
4482 if test "$enable_ide" = yes; then
4492 # Check whether --enable-gdbtk or --disable-gdbtk was given.
4493 if test "${enable_gdbtk+set}" = set; then
4494 enableval
="$enable_gdbtk"
4495 case "${enableval}" in
4499 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
4502 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
4510 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
4514 # Default is on for everything but go32 and cygwin32
4525 # In the cygwin32 environment, we need some additional flags.
4526 echo $ac_n "checking for cygwin32""... $ac_c" 1>&6
4527 echo "configure:4528: checking for cygwin32" >&5
4528 if eval "test \"`echo '$''{'gdb_cv_os_cygwin32'+set}'`\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4531 cat > conftest.
$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4540 egrep "lose" >/dev
/null
2>&1; then
4542 gdb_cv_os_cygwin32
=yes
4545 gdb_cv_os_cygwin32
=no
4551 echo "$ac_t""$gdb_cv_os_cygwin32" 1>&6
4558 WINDRES
=${WINDRES-windres}
4561 if test x
$gdb_cv_os_cygwin32 = xyes
; then
4562 if test x
$enable_ide = xyes
; then
4563 WIN32LIBS
="-ladvapi32"
4570 if test "${enable_gdbtk}" = "yes"; then
4574 # Ok, lets find the tcl configuration
4575 # First, look for one uninstalled.
4576 # the alternative search directory is invoked by --with-tclconfig
4579 if test x
"${no_tcl}" = x
; then
4580 # we reset no_tcl in case something fails here
4582 # Check whether --with-tclconfig or --without-tclconfig was given.
4583 if test "${with_tclconfig+set}" = set; then
4584 withval
="$with_tclconfig"
4585 with_tclconfig
=${withval}
4588 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
4589 echo "configure:4590: checking for Tcl configuration" >&5
4590 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4595 # First check to see if --with-tclconfig was specified.
4596 if test x
"${with_tclconfig}" != x
; then
4597 if test -f "${with_tclconfig}/tclConfig.sh" ; then
4598 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
4600 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
4604 # then check for a private Tcl installation
4605 if test x
"${ac_cv_c_tclconfig}" = x
; then
4608 `ls -dr ../tcl[7-9]* 2>/dev/null` \
4610 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
4612 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
4613 if test -f "$i/${configdir}/tclConfig.sh" ; then
4614 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
4619 # check in a few common install locations
4620 if test x
"${ac_cv_c_tclconfig}" = x
; then
4621 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
4622 if test -f "$i/tclConfig.sh" ; then
4623 ac_cv_c_tclconfig
=`(cd $i; pwd)`
4628 # check in a few other private locations
4629 if test x
"${ac_cv_c_tclconfig}" = x
; then
4632 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
4633 if test -f "$i/${configdir}/tclConfig.sh" ; then
4634 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
4642 if test x
"${ac_cv_c_tclconfig}" = x
; then
4643 TCLCONFIG
="# no Tcl configs found"
4644 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
4647 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
4648 echo "$ac_t""found $TCLCONFIG" 1>&6
4652 if test -z "${no_tcl}"; then
4682 # Ok, lets find the tk configuration
4683 # First, look for one uninstalled.
4684 # the alternative search directory is invoked by --with-tkconfig
4687 if test x
"${no_tk}" = x
; then
4688 # we reset no_tk in case something fails here
4690 # Check whether --with-tkconfig or --without-tkconfig was given.
4691 if test "${with_tkconfig+set}" = set; then
4692 withval
="$with_tkconfig"
4693 with_tkconfig
=${withval}
4696 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
4697 echo "configure:4698: checking for Tk configuration" >&5
4698 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4703 # First check to see if --with-tkconfig was specified.
4704 if test x
"${with_tkconfig}" != x
; then
4705 if test -f "${with_tkconfig}/tkConfig.sh" ; then
4706 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
4708 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
4712 # then check for a private Tk library
4713 if test x
"${ac_cv_c_tkconfig}" = x
; then
4716 `ls -dr ../tk[4-9]* 2>/dev/null` \
4718 `ls -dr ../../tk[4-9]* 2>/dev/null` \
4720 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
4721 if test -f "$i/${configdir}/tkConfig.sh" ; then
4722 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
4727 # check in a few common install locations
4728 if test x
"${ac_cv_c_tkconfig}" = x
; then
4729 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
4730 if test -f "$i/tkConfig.sh" ; then
4731 ac_cv_c_tkconfig
=`(cd $i; pwd)`
4736 # check in a few other private locations
4737 if test x
"${ac_cv_c_tkconfig}" = x
; then
4740 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
4741 if test -f "$i/${configdir}/tkConfig.sh" ; then
4742 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
4750 if test x
"${ac_cv_c_tkconfig}" = x
; then
4751 TKCONFIG
="# no Tk configs found"
4752 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
4755 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
4756 echo "$ac_t""found $TKCONFIG" 1>&6
4762 # If $no_tk is nonempty, then we can't do Tk, and there is no
4763 # point to doing Tcl.
4764 if test -z "${no_tk}"; then
4766 if test -f "$TKCONFIG" ; then
4784 # Ok, lets find the tcl source trees so we can use the headers
4785 # Warning: transition of version 9 to 10 will break this algorithm
4786 # because 10 sorts before 9. We also look for just tcl. We have to
4787 # be careful that we don't match stuff like tclX by accident.
4788 # the alternative search directory is involked by --with-tclinclude
4792 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
4793 echo "configure:4794: checking for Tcl private headers. dir=${configdir}" >&5
4794 # Check whether --with-tclinclude or --without-tclinclude was given.
4795 if test "${with_tclinclude+set}" = set; then
4796 withval
="$with_tclinclude"
4797 with_tclinclude
=${withval}
4800 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
4801 echo $ac_n "(cached) $ac_c" 1>&6
4804 # first check to see if --with-tclinclude was specified
4805 if test x
"${with_tclinclude}" != x
; then
4806 if test -f ${with_tclinclude}/tclInt.h
; then
4807 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
4808 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
4809 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
4811 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
4815 # next check if it came with Tcl configuration file
4816 if test x
"${ac_cv_c_tclconfig}" = x
; then
4817 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
4818 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
4822 # next check in private source directory
4824 # since ls returns lowest version numbers first, reverse its output
4825 if test x
"${ac_cv_c_tclh}" = x
; then
4828 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
4829 ${srcdir}/..
/..
/tcl \
4830 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
4831 ${srcdir}/..
/..
/..
/tcl \
4832 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
4833 if test -f $i/generic
/tclInt.h
; then
4834 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
4839 # finally check in a few common install locations
4841 # since ls returns lowest version numbers first, reverse its output
4842 if test x
"${ac_cv_c_tclh}" = x
; then
4844 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
4845 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
4846 /usr
/local
/src
/tcl \
4847 /usr
/local
/lib
/tcl \
4848 ${prefix}/include
; do
4849 if test -f $i/generic
/tclInt.h
; then
4850 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
4855 # see if one is installed
4856 if test x
"${ac_cv_c_tclh}" = x
; then
4857 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
4858 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
4859 echo "configure:4860: checking for tclInt.h" >&5
4860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4863 cat > conftest.
$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4868 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4869 { (eval echo configure
:4870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4870 ac_err
=`grep -v '^ *+' conftest.out`
4871 if test -z "$ac_err"; then
4873 eval "ac_cv_header_$ac_safe=yes"
4876 echo "configure: failed program was:" >&5
4877 cat conftest.
$ac_ext >&5
4879 eval "ac_cv_header_$ac_safe=no"
4883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4884 echo "$ac_t""yes" 1>&6
4885 ac_cv_c_tclh
=installed
4887 echo "$ac_t""no" 1>&6
4895 if test x
"${ac_cv_c_tclh}" = x
; then
4896 TCLHDIR
="# no Tcl private headers found"
4897 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
4899 if test x
"${ac_cv_c_tclh}" != x
; then
4901 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
4902 echo "$ac_t""is installed" 1>&6
4905 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
4906 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
4907 TCLHDIR
="-I${ac_cv_c_tclh}"
4915 # Ok, lets find the tk source trees so we can use the headers
4916 # If the directory (presumably symlink) named "tk" exists, use that one
4917 # in preference to any others. Same logic is used when choosing library
4918 # and again with Tcl. The search order is the best place to look first, then in
4919 # decreasing significance. The loop breaks if the trigger file is found.
4920 # Note the gross little conversion here of srcdir by cd'ing to the found
4921 # directory. This converts the path from a relative to an absolute, so
4922 # recursive cache variables for the path will work right. We check all
4923 # the possible paths in one loop rather than many seperate loops to speed
4925 # the alternative search directory is involked by --with-tkinclude
4928 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
4929 echo "configure:4930: checking for Tk private headers" >&5
4930 # Check whether --with-tkinclude or --without-tkinclude was given.
4931 if test "${with_tkinclude+set}" = set; then
4932 withval
="$with_tkinclude"
4933 with_tkinclude
=${withval}
4936 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
4940 # first check to see if --with-tkinclude was specified
4941 if test x
"${with_tkinclude}" != x
; then
4942 if test -f ${with_tkinclude}/tk.h
; then
4943 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
4944 elif test -f ${with_tkinclude}/generic
/tk.h
; then
4945 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
4947 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
4951 # next check if it came with Tk configuration file
4952 if test x
"${ac_cv_c_tkconfig}" = x
; then
4953 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
4954 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
4958 # next check in private source directory
4960 # since ls returns lowest version numbers first, reverse its output
4961 if test x
"${ac_cv_c_tkh}" = x
; then
4964 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
4965 ${srcdir}/..
/..
/tk \
4966 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
4967 ${srcdir}/..
/..
/..
/tk \
4968 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
4969 if test -f $i/generic
/tk.h
; then
4970 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
4975 # finally check in a few common install locations
4977 # since ls returns lowest version numbers first, reverse its output
4978 if test x
"${ac_cv_c_tkh}" = x
; then
4980 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
4981 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
4984 ${prefix}/include
; do
4985 if test -f $i/generic
/tk.h
; then
4986 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
4991 # see if one is installed
4992 if test x
"${ac_cv_c_tkh}" = x
; then
4993 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
4994 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
4995 echo "configure:4996: checking for tk.h" >&5
4996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4999 cat > conftest.
$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5004 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5005 { (eval echo configure
:5006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5006 ac_err
=`grep -v '^ *+' conftest.out`
5007 if test -z "$ac_err"; then
5009 eval "ac_cv_header_$ac_safe=yes"
5012 echo "configure: failed program was:" >&5
5013 cat conftest.
$ac_ext >&5
5015 eval "ac_cv_header_$ac_safe=no"
5019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5020 echo "$ac_t""yes" 1>&6
5021 ac_cv_c_tkh
=installed
5023 echo "$ac_t""no" 1>&6
5031 if test x
"${ac_cv_c_tkh}" != x
; then
5033 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
5034 echo "$ac_t""is installed" 1>&6
5037 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
5038 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
5039 TKHDIR
="-I${ac_cv_c_tkh}"
5042 TKHDIR
="# no Tk directory found"
5043 echo "configure: warning: Can't find Tk private headers" 1>&2
5050 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5051 echo "configure:5052: checking for Itcl private headers. srcdir=${srcdir}" >&5
5052 if test x
"${ac_cv_c_itclh}" = x
; then
5053 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/..
/..
/..
/itcl
; do
5054 if test -f $i/src
/itcl.h
; then
5055 ac_cv_c_itclh
=`(cd $i/src; pwd)`
5060 if test x
"${ac_cv_c_itclh}" = x
; then
5061 ITCLHDIR
="# no Itcl private headers found"
5062 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
5064 if test x
"${ac_cv_c_itclh}" != x
; then
5065 ITCLHDIR
="-I${ac_cv_c_itclh}"
5067 # should always be here
5068 ITCLLIB
="../itcl/src/libitcl.a"
5073 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5074 echo "configure:5075: checking for Tix private headers. srcdir=${srcdir}" >&5
5075 if test x
"${ac_cv_c_tixh}" = x
; then
5076 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
5077 if test -f $i/generic
/tix.h
; then
5078 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
5083 if test x
"${ac_cv_c_tixh}" = x
; then
5084 TIXHDIR
="# no Tix private headers found"
5085 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
5087 if test x
"${ac_cv_c_tixh}" != x
; then
5088 TIXHDIR
="-I${ac_cv_c_tixh}"
5093 # now look for tix library stuff
5095 .
${ac_cv_c_tclconfig}/tclConfig.sh
5098 tixdir
=..
/tix
/win
/tcl8.0
5101 tixdir
=..
/tix
/unix
/tk8.0
5104 if test "${TCL_SHARED_BUILD}" = "1"; then
5105 TIX_LIB_EXT
="${TCL_SHLIB_SUFFIX}"
5107 # Can't win them all: SunOS 4 (others?) appends a version
5108 # number after the ".so"
5111 TIX_LIB_EXT
="${TIX_LIB_EXT}.1.0" ;;
5118 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
5119 TIXLIB
="-L${tixdir} -ltix${TIXVERSION}"
5120 TIX_DEPS
="${tixdir}/libtix${TIXVERSION}${TIX_LIB_EXT}"
5122 TIXLIB
="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
5123 TIX_DEPS
="${tixdir}/libtix`echo ${TIXVERSION} | tr -d .`${TIX_LIB_EXT}"
5128 # Include some libraries that Tcl and Tk want.
5129 if test "${enable_ide}" = "yes"; then
5130 TCL_LIBS
='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
5131 CONFIG_DEPS
='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
5133 TCL_LIBS
='$(LIBGUI) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
5134 CONFIG_DEPS
='$(LIBGUI) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
5136 # Yes, the ordering seems wrong here. But it isn't.
5137 # TK_LIBS is the list of libraries that need to be linked
5138 # after Tcl/Tk. Note that this isn't put into LIBS. If it
5139 # were in LIBS then any link tests after this point would
5140 # try to include things like `$(LIBGUI)', which wouldn't work.
5141 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
5142 CONFIG_OBS
="${CONFIG_OBS} gdbtk.o"
5144 if test x
$gdb_cv_os_cygwin32 = xyes
; then
5145 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32"
5146 WIN32LDAPP
="-Wl,--subsystem,windows"
5147 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
5160 # end-sanitize-gdbtk
5162 # If we find X, set shell vars x_includes and x_libraries to the
5163 # paths, otherwise set no_x=yes.
5164 # Uses ac_ vars as temps to allow command line to override cache and checks.
5165 # --without-x overrides everything else, but does not touch the cache.
5166 echo $ac_n "checking for X""... $ac_c" 1>&6
5167 echo "configure:5168: checking for X" >&5
5169 # Check whether --with-x or --without-x was given.
5170 if test "${with_x+set}" = set; then
5175 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5176 if test "x$with_x" = xno
; then
5177 # The user explicitly disabled X.
5180 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5181 # Both variables are already set.
5184 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5185 echo $ac_n "(cached) $ac_c" 1>&6
5187 # One or both of the vars are not set, and there is no cached value.
5188 ac_x_includes
=NO ac_x_libraries
=NO
5190 if mkdir conftestdir
; then
5192 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5193 cat > Imakefile
<<'EOF'
5195 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5197 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5199 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5200 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5201 for ac_extension
in a so sl
; do
5202 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5203 test -f $ac_im_libdir/libX11.
$ac_extension; then
5204 ac_im_usrlibdir
=$ac_im_libdir; break
5207 # Screen out bogus values from the imake configuration. They are
5208 # bogus both because they are the default anyway, and because
5209 # using them would break gcc on systems where it needs fixed includes.
5210 case "$ac_im_incroot" in
5212 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
5214 case "$ac_im_usrlibdir" in
5216 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
5223 if test "$ac_x_includes" = NO
; then
5224 # Guess where to find include files, by looking for this one X11 .h file.
5225 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
5227 # First, try using that file with no special directory specified.
5228 cat > conftest.
$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5231 #include <$x_direct_test_include>
5233 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5234 { (eval echo configure
:5235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5235 ac_err
=`grep -v '^ *+' conftest.out`
5236 if test -z "$ac_err"; then
5238 # We can compile using X headers with no special include directory.
5242 echo "configure: failed program was:" >&5
5243 cat conftest.
$ac_ext >&5
5245 # Look for the header file in a standard set of common directories.
5246 # Check X11 before X11Rn because it is often a symlink to the current release.
5249 /usr
/X11R
6/include \
5250 /usr
/X11R
5/include \
5251 /usr
/X11R
4/include \
5254 /usr
/include
/X11R6 \
5255 /usr
/include
/X11R5 \
5256 /usr
/include
/X11R4 \
5258 /usr
/local
/X11
/include \
5259 /usr
/local
/X11R
6/include \
5260 /usr
/local
/X11R
5/include \
5261 /usr
/local
/X11R
4/include \
5263 /usr
/local
/include
/X11 \
5264 /usr
/local
/include
/X11R6 \
5265 /usr
/local
/include
/X11R5 \
5266 /usr
/local
/include
/X11R4 \
5270 /usr
/XFree86
/include
/X11 \
5273 /usr
/local
/include \
5274 /usr
/unsupported
/include \
5275 /usr
/athena
/include \
5276 /usr
/local
/x11r
5/include \
5277 /usr
/lpp
/Xamples
/include \
5279 /usr
/openwin
/include \
5280 /usr
/openwin
/share
/include \
5283 if test -r "$ac_dir/$x_direct_test_include"; then
5284 ac_x_includes
=$ac_dir
5290 fi # $ac_x_includes = NO
5292 if test "$ac_x_libraries" = NO
; then
5293 # Check for the libraries.
5295 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
5296 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
5298 # See if we find them without any special options.
5299 # Don't add to $LIBS permanently.
5300 ac_save_LIBS
="$LIBS"
5301 LIBS
="-l$x_direct_test_library $LIBS"
5302 cat > conftest.
$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5307 ${x_direct_test_function}()
5310 if { (eval echo configure
:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5312 LIBS
="$ac_save_LIBS"
5313 # We can link X programs with no special library path.
5316 echo "configure: failed program was:" >&5
5317 cat conftest.
$ac_ext >&5
5319 LIBS
="$ac_save_LIBS"
5320 # First see if replacing the include by lib works.
5321 # Check X11 before X11Rn because it is often a symlink to the current release.
5322 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
5333 /usr
/local
/X11
/lib \
5334 /usr
/local
/X11R
6/lib \
5335 /usr
/local
/X11R
5/lib \
5336 /usr
/local
/X11R
4/lib \
5338 /usr
/local
/lib
/X11 \
5339 /usr
/local
/lib
/X11R6 \
5340 /usr
/local
/lib
/X11R5 \
5341 /usr
/local
/lib
/X11R4 \
5345 /usr
/XFree86
/lib
/X11 \
5349 /usr
/unsupported
/lib \
5351 /usr
/local
/x11r
5/lib \
5352 /usr
/lpp
/Xamples
/lib \
5356 /usr
/openwin
/share
/lib \
5359 for ac_extension
in a so sl
; do
5360 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
5361 ac_x_libraries
=$ac_dir
5368 fi # $ac_x_libraries = NO
5370 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
5371 # Didn't find X anywhere. Cache the known absence of X.
5372 ac_cv_have_x
="have_x=no"
5374 # Record where we found X for the cache.
5375 ac_cv_have_x
="have_x=yes \
5376 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5380 eval "$ac_cv_have_x"
5383 if test "$have_x" != yes; then
5384 echo "$ac_t""$have_x" 1>&6
5387 # If each of the values was on the command line, it overrides each guess.
5388 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5389 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5390 # Update the cache value to reflect the command line values.
5391 ac_cv_have_x
="have_x=yes \
5392 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5393 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5396 # start-sanitize-sky
5397 # Enable GPU2 library for MIPS simulator
5398 # Check whether --with-sim-gpu2 or --without-sim-gpu2 was given.
5399 if test "${with_sim_gpu2+set}" = set; then
5400 withval
="$with_sim_gpu2"
5403 if test -d "${withval}"
5405 LIBS
="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11"
5407 echo "configure: warning: Directory ${withval} does not exist." 1>&2
5409 *) echo "configure: warning: --with-sim-gpu2 option invalid for target ${target}" 1>&2
5413 # Enable target accurate FP library
5414 # Check whether --with-sim-funit or --without-sim-funit was given.
5415 if test "${with_sim_funit+set}" = set; then
5416 withval
="$with_sim_funit"
5419 if test -d "${withval}"
5421 LIBS
="${LIBS} -L${withval}/lib -lfunit"
5423 echo "configure: warning: Directory ${withval} does not exist." 1>&2
5425 *) echo "configure: warning: --with-sim-funit option invalid for target ${target}" 1>&2
5436 # Begin stuff to support --enable-shared
5437 # Check whether --enable-shared or --disable-shared was given.
5438 if test "${enable_shared+set}" = set; then
5439 enableval
="$enable_shared"
5440 case "${enableval}" in
5449 # If we have shared libraries, try to set rpath reasonably.
5450 if test "${shared}" = "true"; then
5453 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
5455 *-*-irix5* |
*-*-irix6*)
5456 HLDFLAGS
='-Wl,-rpath,$(libdir)'
5460 *-*-linux* |
*-pc-linux-gnu)
5461 HLDFLAGS
='-Wl,-rpath,$(libdir)'
5464 HLDFLAGS
='-R $(libdir)'
5467 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;'
5472 # On SunOS, if the linker supports the -rpath option, use it to
5473 # prevent ../bfd and ../opcodes from being included in the run time
5477 echo 'main () { }' > conftest.c
5478 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
5479 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
5481 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
5483 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
5485 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
5487 elif test "${shared}" = "true"; then
5488 HLDFLAGS
='-Wl,-rpath=$(libdir)'
5490 HLDFLAGS
='-Wl,-rpath='
5492 rm -f conftest.t conftest.c conftest
5497 # End stuff to support --enable-shared
5499 # target_subdir is used by the testsuite to find the target libraries.
5501 if test "${host}" != "${target}"; then
5502 target_subdir
="${target_alias}/"
5507 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
5508 if test ! -f ${host_makefile_frag}; then
5509 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
5511 frags
="$frags $host_makefile_frag"
5513 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
5514 if test ! -f ${target_makefile_frag}; then
5515 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
5517 frags
="$frags $target_makefile_frag"
5524 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5525 ' ${host_makefile_frag}`
5527 targetfile
=`sed -n '
5528 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5529 ' ${target_makefile_frag}`
5531 # these really aren't orthogonal true/false values of the same condition,
5532 # but shells are slow enough that I like to reuse the test conditions
5534 if test "${target}" = "${host}"; then
5535 nativefile
=`sed -n '
5536 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5537 ' ${host_makefile_frag}`
5539 # GDBserver is only useful in a "native" enviroment
5540 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
5544 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
5545 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
5546 # corresponding links. But we have to remove the xm.h files and tm.h
5547 # files anyway, e.g. when switching from "configure host" to
5553 if test "${hostfile}" != ""; then
5554 files
="${files} config/${gdb_host_cpu}/${hostfile}"
5555 links
="${links} xm.h"
5558 if test "${targetfile}" != ""; then
5559 files
="${files} config/${gdb_target_cpu}/${targetfile}"
5560 links
="${links} tm.h"
5563 if test "${nativefile}" != ""; then
5564 files
="${files} config/${gdb_host_cpu}/${nativefile}"
5565 links
="${links} nm.h"
5567 # A cross-only configuration.
5568 files
="${files} config/nm-empty.h"
5569 links
="${links} nm.h"
5571 # start-sanitize-gdbtk
5572 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
5573 echo "configure:5574: checking whether ln -s works" >&5
5574 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
5575 echo $ac_n "(cached) $ac_c" 1>&6
5578 if ln -s X conftestdata
2>/dev
/null
5581 ac_cv_prog_LN_S
="ln -s"
5586 LN_S
="$ac_cv_prog_LN_S"
5587 if test "$ac_cv_prog_LN_S" = "ln -s"; then
5588 echo "$ac_t""yes" 1>&6
5590 echo "$ac_t""no" 1>&6
5593 # Make it possible to use the GUI without doing a full install
5594 if test "${enable_gdbtk}" = "yes" -a ! -d gdbtcl
; then
5595 if test "$LN_S" = "ln -s" -a ! -f gdbtcl
; then
5596 echo linking
$srcdir/gdbtcl to gdbtcl
5597 $LN_S $srcdir/gdbtcl gdbtcl
5599 echo Warning
: Unable to link
$srcdir/gdbtcl to gdbtcl. You will need to
do a
5600 echo " " make install before you are able to run the GUI.
5603 # end-sanitize-gdbtk
5607 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
5608 echo "configure:5609: checking for Cygwin32 environment" >&5
5609 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
5610 echo $ac_n "(cached) $ac_c" 1>&6
5612 cat > conftest.
$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5617 return __CYGWIN32__;
5620 if { (eval echo configure
:5621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5624 echo "configure: failed program was:" >&5
5625 cat conftest.
$ac_ext >&5
5633 echo "$ac_t""$am_cv_cygwin32" 1>&6
5635 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
5636 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
5637 echo "configure:5638: checking for Mingw32 environment" >&5
5638 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 cat > conftest.
$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5649 if { (eval echo configure
:5650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5653 echo "configure: failed program was:" >&5
5654 cat conftest.
$ac_ext >&5
5662 echo "$ac_t""$am_cv_mingw32" 1>&6
5664 test "$am_cv_mingw32" = yes && MINGW32
=yes
5667 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5668 echo "configure:5669: checking for executable suffix" >&5
5669 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5672 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
5675 cat > am_c_test.c
<< 'EOF'
5677 /* Nothing needed here
*/
5680 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
5682 for file in am_c_test.
*; do
5686 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
5692 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
5695 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
5696 echo "$ac_t""${am_cv_exeext}" 1>&6
5699 subdirs
="$configdirs"
5702 cat > confcache
<<\EOF
5703 # This file is a shell script that caches the results of configure
5704 # tests run on this system so they can be shared between configure
5705 # scripts and configure runs. It is not useful on other systems.
5706 # If it contains results you don't want to keep, you may remove or edit it.
5708 # By default, configure uses ./config.cache as the cache file,
5709 # creating it if it does not exist already. You can give configure
5710 # the --cache-file=FILE option to use a different cache file; that is
5711 # what configure does when it calls configure scripts in
5712 # subdirectories, so they share the cache.
5713 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5714 # config.status only pays attention to the cache file if you give it the
5715 # --recheck option to rerun configure.
5718 # The following way of writing the cache mishandles newlines in values,
5719 # but we know of no workaround that is simple, portable, and efficient.
5720 # So, don't put newlines in cache variables' values.
5721 # Ultrix sh set writes to stderr and can't be redirected directly,
5722 # and sets the high bit in the cache file unless we assign to the vars.
5724 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5726 # `set' does not quote correctly, so add quotes (double-quote substitution
5727 # turns \\\\ into \\, and sed turns \\ into \).
5729 -e "s/'/'\\\\''/g" \
5730 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5733 # `set' quotes correctly as required by POSIX, so do not add quotes.
5734 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5737 if cmp -s $cache_file confcache
; then
5740 if test -w $cache_file; then
5741 echo "updating cache $cache_file"
5742 cat confcache
> $cache_file
5744 echo "not updating unwritable cache $cache_file"
5749 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5751 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5752 # Let make expand exec_prefix.
5753 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5755 # Any assignment to VPATH causes Sun make to only execute
5756 # the first set of double-colon rules, so remove it if not needed.
5757 # If there is a colon in the path, we need to keep it.
5758 if test "x$srcdir" = x.
; then
5759 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5762 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5764 DEFS
=-DHAVE_CONFIG_H
5766 # Without the "./", some shells look in PATH for config.status.
5767 : ${CONFIG_STATUS=./config.status}
5769 echo creating
$CONFIG_STATUS
5770 rm -f $CONFIG_STATUS
5771 cat > $CONFIG_STATUS <<EOF
5773 # Generated automatically by configure.
5774 # Run this file to recreate the current configuration.
5775 # This directory was configured as follows,
5776 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5778 # $0 $ac_configure_args
5780 # Compiler output produced by configure, useful for debugging
5781 # configure, is in ./config.log if it exists.
5783 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5786 case "\$ac_option" in
5787 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5788 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5789 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5790 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5791 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
5793 -help | --help | --hel | --he | --h)
5794 echo "\$ac_cs_usage"; exit 0 ;;
5795 *) echo "\$ac_cs_usage"; exit 1 ;;
5799 ac_given_srcdir=$srcdir
5800 ac_given_INSTALL="$INSTALL"
5802 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5804 cat >> $CONFIG_STATUS <<EOF
5806 # Protect against being on the right side of a sed subst in config.status.
5807 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5808 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5812 s%@CFLAGS@%$CFLAGS%g
5813 s%@CPPFLAGS@%$CPPFLAGS%g
5814 s%@CXXFLAGS@%$CXXFLAGS%g
5816 s%@LDFLAGS@%$LDFLAGS%g
5818 s%@exec_prefix@%$exec_prefix%g
5819 s%@prefix@%$prefix%g
5820 s%@program_transform_name@%$program_transform_name%g
5821 s%@bindir@%$bindir%g
5822 s%@sbindir@%$sbindir%g
5823 s%@libexecdir@%$libexecdir%g
5824 s%@datadir@%$datadir%g
5825 s%@sysconfdir@%$sysconfdir%g
5826 s%@sharedstatedir@%$sharedstatedir%g
5827 s%@localstatedir@%$localstatedir%g
5828 s%@libdir@%$libdir%g
5829 s%@includedir@%$includedir%g
5830 s%@oldincludedir@%$oldincludedir%g
5831 s%@infodir@%$infodir%g
5832 s%@mandir@%$mandir%g
5835 s%@DLLTOOL@%$DLLTOOL%g
5837 s%@host_alias@%$host_alias%g
5838 s%@host_cpu@%$host_cpu%g
5839 s%@host_vendor@%$host_vendor%g
5840 s%@host_os@%$host_os%g
5841 s%@target@%$target%g
5842 s%@target_alias@%$target_alias%g
5843 s%@target_cpu@%$target_cpu%g
5844 s%@target_vendor@%$target_vendor%g
5845 s%@target_os@%$target_os%g
5847 s%@build_alias@%$build_alias%g
5848 s%@build_cpu@%$build_cpu%g
5849 s%@build_vendor@%$build_vendor%g
5850 s%@build_os@%$build_os%g
5851 s%@SET_MAKE@%$SET_MAKE%g
5852 s%@RANLIB@%$RANLIB%g
5853 s%@ALLOCA@%$ALLOCA%g
5854 s%@USE_NLS@%$USE_NLS%g
5855 s%@MSGFMT@%$MSGFMT%g
5856 s%@GMSGFMT@%$GMSGFMT%g
5857 s%@XGETTEXT@%$XGETTEXT%g
5858 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5859 s%@CATALOGS@%$CATALOGS%g
5860 s%@CATOBJEXT@%$CATOBJEXT%g
5861 s%@DATADIRNAME@%$DATADIRNAME%g
5862 s%@GMOFILES@%$GMOFILES%g
5863 s%@INSTOBJEXT@%$INSTOBJEXT%g
5864 s%@INTLDEPS@%$INTLDEPS%g
5865 s%@INTLLIBS@%$INTLLIBS%g
5866 s%@INTLOBJS@%$INTLOBJS%g
5867 s%@POFILES@%$POFILES%g
5869 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5871 s%@GT_YES@%$GT_YES%g
5872 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5874 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5875 s%@INSTALL_DATA@%$INSTALL_DATA%g
5879 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
5880 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
5881 s%@MMALLOC@%$MMALLOC%g
5882 s%@ENABLE_IDE@%$ENABLE_IDE%g
5883 s%@WIN32LIBS@%$WIN32LIBS%g
5884 s%@WIN32LDAPP@%$WIN32LDAPP%g
5885 s%@WINDRES@%$WINDRES%g
5886 s%@TCL_VERSION@%$TCL_VERSION%g
5887 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
5888 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
5889 s%@TCL_CC@%$TCL_CC%g
5890 s%@TCL_DEFS@%$TCL_DEFS%g
5891 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
5892 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
5893 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
5894 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
5895 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
5896 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
5897 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
5898 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
5899 s%@TCL_RANLIB@%$TCL_RANLIB%g
5900 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
5901 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
5902 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
5903 s%@TK_VERSION@%$TK_VERSION%g
5904 s%@TK_DEFS@%$TK_DEFS%g
5905 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
5906 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
5907 s%@TK_XLIBSW@%$TK_XLIBSW%g
5908 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
5909 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
5910 s%@TCLHDIR@%$TCLHDIR%g
5911 s%@TKHDIR@%$TKHDIR%g
5912 s%@ITCLHDIR@%$ITCLHDIR%g
5913 s%@ITCLLIB@%$ITCLLIB%g
5914 s%@TIXHDIR@%$TIXHDIR%g
5915 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
5916 s%@X_CFLAGS@%$X_CFLAGS%g
5917 s%@X_LDFLAGS@%$X_LDFLAGS%g
5918 s%@X_LIBS@%$X_LIBS%g
5919 s%@TIXLIB@%$TIXLIB%g
5920 s%@TIX_DEPS@%$TIX_DEPS%g
5921 s%@GDBTKLIBS@%$GDBTKLIBS%g
5922 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
5923 s%@CONFIG_OBS@%$CONFIG_OBS%g
5924 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
5925 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
5926 s%@HLDFLAGS@%$HLDFLAGS%g
5927 s%@HLDENV@%$HLDENV%g
5928 s%@target_subdir@%$target_subdir%g
5929 /@host_makefile_frag@/r $host_makefile_frag
5930 s%@host_makefile_frag@%%g
5931 /@target_makefile_frag@/r $target_makefile_frag
5932 s%@target_makefile_frag@%%g
5935 s%@EXEEXT@%$EXEEXT%g
5936 s%@subdirs@%$subdirs%g
5941 cat >> $CONFIG_STATUS <<\EOF
5943 # Split the substitutions into bite-sized pieces for seds with
5944 # small command number limits, like on Digital OSF/1 and HP-UX.
5945 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5946 ac_file
=1 # Number of current file.
5947 ac_beg
=1 # First line for current file.
5948 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5951 while $ac_more_lines; do
5952 if test $ac_beg -gt 1; then
5953 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5955 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5957 if test ! -s conftest.s
$ac_file; then
5959 rm -f conftest.s
$ac_file
5961 if test -z "$ac_sed_cmds"; then
5962 ac_sed_cmds
="sed -f conftest.s$ac_file"
5964 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5966 ac_file
=`expr $ac_file + 1`
5968 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5971 if test -z "$ac_sed_cmds"; then
5976 cat >> $CONFIG_STATUS <<EOF
5978 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
5980 cat >> $CONFIG_STATUS <<\EOF
5981 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5984 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5985 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5986 *) ac_file_in
="${ac_file}.in" ;;
5989 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5991 # Remove last slash and all that follows it. Not all systems have dirname.
5992 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5993 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5994 # The file is in a subdirectory.
5995 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5996 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5997 # A "../" for each directory in $ac_dir_suffix.
5998 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6000 ac_dir_suffix
= ac_dots
=
6003 case "$ac_given_srcdir" in
6005 if test -z "$ac_dots"; then top_srcdir
=.
6006 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6007 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6009 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6010 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6013 case "$ac_given_INSTALL" in
6014 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6015 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6018 echo creating
"$ac_file"
6020 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6022 *Makefile
*) ac_comsub
="1i\\
6023 # $configure_input" ;;
6027 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6029 s%@configure_input@%$configure_input%g
6030 s%@srcdir@%$srcdir%g
6031 s%@top_srcdir@%$top_srcdir%g
6032 s%@INSTALL@%$INSTALL%g
6033 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6037 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6038 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6040 # ac_d sets the value in "#define NAME VALUE" lines.
6041 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6042 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6045 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6046 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6047 ac_uB
='\([ ]\)%\1#\2define\3'
6050 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6051 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6052 ac_eB
='$%\1#\2define\3'
6056 if test "${CONFIG_HEADERS+set}" != set; then
6058 cat >> $CONFIG_STATUS <<EOF
6059 CONFIG_HEADERS="config.h:config.in"
6061 cat >> $CONFIG_STATUS <<\EOF
6063 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6064 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6066 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6067 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6068 *) ac_file_in
="${ac_file}.in" ;;
6071 echo creating
$ac_file
6073 rm -f conftest.frag conftest.
in conftest.out
6074 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6075 cat $ac_file_inputs > conftest.
in
6079 # Transform confdefs.h into a sed script conftest.vals that substitutes
6080 # the proper values into config.h.in to produce config.h. And first:
6081 # Protect against being on the right side of a sed subst in config.status.
6082 # Protect against being in an unquoted here document in config.status.
6084 cat > conftest.hdr
<<\EOF
6087 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6091 sed -n -f conftest.hdr confdefs.h > conftest.vals
6094 # This sed command replaces #undef with comments. This is necessary, for
6095 # example, in the case of _POSIX_SOURCE, which is predefined and required
6096 # on some systems where configure will not decide to define it.
6097 cat >> conftest.vals <<\EOF
6098 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6101 # Break up conftest.vals because some shells have a limit on
6102 # the size of here documents, and old seds have small limits too.
6107 ac_lines=`grep -c . conftest.vals
`
6108 # grep -c gives empty output for an empty file on some AIX systems.
6109 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6110 # Write a limited-size here document to conftest.frag.
6111 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6112 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6114 sed -f conftest.frag conftest.in > conftest.out
6116 mv conftest.out conftest.in
6118 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6120 mv conftest.tail conftest.vals
6124 cat >> $CONFIG_STATUS <<\EOF
6125 rm -f conftest.frag conftest.h
6126 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6127 cat conftest.in >> conftest.h
6129 if cmp -s $ac_file conftest.h 2>/dev/null; then
6130 echo "$ac_file is unchanged"
6133 # Remove last slash and all that follows it. Not all systems have dirname.
6134 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6135 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6136 # The file is in a subdirectory.
6137 test ! -d "$ac_dir" && mkdir "$ac_dir"
6140 mv conftest.h $ac_file
6146 cat >> $CONFIG_STATUS <<EOF
6151 cat >> $CONFIG_STATUS <<\EOF
6152 srcdir=$ac_given_srcdir
6153 while test -n "$ac_sources"; do
6154 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6155 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6157 echo "linking $srcdir/$ac_source to $ac_dest"
6159 if test ! -r $srcdir/$ac_source; then
6160 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6164 # Make relative symlinks.
6165 # Remove last slash and all that follows it. Not all systems have dirname.
6166 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
6167 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6168 # The dest file is in a subdirectory.
6169 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6170 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
6171 # A "../" for each directory in $ac_dest_dir_suffix.
6172 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
6174 ac_dest_dir_suffix= ac_dots=
6178 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6179 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6182 # Make a symlink if possible; otherwise try a hard link.
6183 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6184 ln $srcdir/$ac_source $ac_dest; then :
6186 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6190 cat >> $CONFIG_STATUS <<EOF
6192 gdb_host_cpu=$gdb_host_cpu
6193 gdb_target_cpu=$gdb_target_cpu
6194 nativefile=$nativefile
6197 cat >> $CONFIG_STATUS <<\EOF
6199 if test "${nativefile}" = ""; then
6200 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
6201 < Makefile > Makefile.tem
6202 mv -f Makefile.tem Makefile
6205 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
6206 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
6207 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
6208 mv -f Makefile.tmp Makefile
6210 case x$CONFIG_HEADERS in
6211 xconfig.h:config.in)
6217 chmod +x $CONFIG_STATUS
6218 rm -fr confdefs* $ac_clean_files
6219 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6221 if test "$no_recursion" != yes; then
6223 # Remove --cache-file and --srcdir arguments so they do not pile up.
6224 ac_sub_configure_args=
6226 for ac_arg in $ac_configure_args; do
6227 if test -n "$ac_prev"; then
6232 -cache-file | --cache-file | --cache-fil | --cache-fi \
6233 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6234 ac_prev=cache_file ;;
6235 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6236 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6242 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6246 for ac_config_dir in $configdirs; do
6248 # Do not complain, so a configure script can configure whichever
6249 # parts of a large source tree are present.
6250 if test ! -d $srcdir/$ac_config_dir; then
6254 echo configuring in $ac_config_dir
6259 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6261 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6269 # A "../" for each directory in /$ac_config_dir.
6270 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6273 .) # No --srcdir option. We are building in place.
6274 ac_sub_srcdir=$srcdir ;;
6275 /*) # Absolute path.
6276 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6278 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6281 # Check for guested configure; otherwise get Cygnus style configure.
6282 if test -f $ac_sub_srcdir/configure; then
6283 ac_sub_configure=$ac_sub_srcdir/configure
6284 elif test -f $ac_sub_srcdir/configure.in; then
6285 ac_sub_configure=$ac_configure
6287 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6291 # The recursion is here.
6292 if test -n "$ac_sub_configure"; then
6294 # Make the cache file name correct relative to the subdirectory.
6295 case "$cache_file" in
6296 /*) ac_sub_cache_file=$cache_file ;;
6298 ac_sub_cache_file="$ac_dots$cache_file" ;;
6300 case "$ac_given_INSTALL" in
6301 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6302 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6305 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6306 # The eval makes quoting arguments work.
6307 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6310 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }