3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.2
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --disable-nls do not use Native Language Support"
17 --with-included-gettext use the GNU gettext library included here"
19 --enable-tui Enable full-screen terminal user interface"
21 --enable-netrom Enable NetROM support"
23 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
25 --with-mmalloc Use memory mapped malloc package"
27 --enable-carp Configure alternative readaptive paradigm "
29 --enable-targets alternative target configurations"
31 --enable-ide Enable IDE support"
33 --with-foundry-libs=DIR Use the Foundry SDK in DIR"
35 --enable-gdbtk Enable GDBTK GUI front end"
37 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
39 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
41 --with-tclinclude=DIR Directory where tcl private headers are"
43 --with-tkinclude=DIR Directory where tk private headers are"
45 --with-x use the X Window System"
47 --with-sim-gpu2=DIR Use GPU2 library under given DIR"
49 --with-sim-funit=DIR Use target FP lib under given DIR"
51 --enable-shared Use shared libraries"
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
57 cache_file
=.
/config.cache
66 program_transform_name
=s
,x
,x
,
74 bindir
='${exec_prefix}/bin'
75 sbindir
='${exec_prefix}/sbin'
76 libexecdir
='${exec_prefix}/libexec'
77 datadir
='${prefix}/share'
78 sysconfdir
='${prefix}/etc'
79 sharedstatedir
='${prefix}/com'
80 localstatedir
='${prefix}/var'
81 libdir
='${exec_prefix}/lib'
82 includedir
='${prefix}/include'
83 oldincludedir
='/usr/include'
84 infodir
='${prefix}/info'
85 mandir
='${prefix}/man'
87 # Initialize some other variables.
90 SHELL
=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
106 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110 # Accept the important Cygnus configure options, so we can diagnose typos.
114 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
116 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
117 bindir
="$ac_optarg" ;;
119 -build |
--build |
--buil |
--bui |
--bu)
121 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
122 build
="$ac_optarg" ;;
124 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
125 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
126 ac_prev
=cache_file
;;
127 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
128 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
129 cache_file
="$ac_optarg" ;;
131 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
133 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
135 datadir
="$ac_optarg" ;;
137 -disable-* |
--disable-*)
138 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}=no" ;;
146 -enable-* |
--enable-*)
147 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
159 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
160 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
161 |
--exec |
--exe |
--ex)
162 ac_prev
=exec_prefix
;;
163 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
164 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
165 |
--exec=* |
--exe=* |
--ex=*)
166 exec_prefix
="$ac_optarg" ;;
168 -gas |
--gas |
--ga |
--g)
169 # Obsolete; use --with-gas.
172 -help |
--help |
--hel |
--he)
173 # Omit some internal or obsolete options to make the list less imposing.
174 # This message is too long to be a string in the A/UX 3.1 sh.
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
179 --cache-file=FILE cache test results in FILE
180 --help print this message
181 --no-create do not create output files
182 --quiet, --silent do not print \`checking...' messages
183 --version print the version of autoconf that created configure
184 Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214 Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
227 -host |
--host |
--hos |
--ho)
229 -host=* |
--host=* |
--hos=* |
--ho=*)
232 -includedir |
--includedir |
--includedi |
--included |
--include \
233 |
--includ |
--inclu |
--incl |
--inc)
234 ac_prev
=includedir
;;
235 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
236 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
237 includedir
="$ac_optarg" ;;
239 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
241 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
242 infodir
="$ac_optarg" ;;
244 -libdir |
--libdir |
--libdi |
--libd)
246 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
247 libdir
="$ac_optarg" ;;
249 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
250 |
--libexe |
--libex |
--libe)
251 ac_prev
=libexecdir
;;
252 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
253 |
--libexe=* |
--libex=* |
--libe=*)
254 libexecdir
="$ac_optarg" ;;
256 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
257 |
--localstate |
--localstat |
--localsta |
--localst \
258 |
--locals |
--local |
--loca |
--loc |
--lo)
259 ac_prev
=localstatedir
;;
260 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
261 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
262 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
263 localstatedir
="$ac_optarg" ;;
265 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
267 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
268 mandir
="$ac_optarg" ;;
271 # Obsolete; use --without-fp.
274 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
278 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
279 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
282 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
283 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
284 |
--oldin |
--oldi |
--old |
--ol |
--o)
285 ac_prev
=oldincludedir
;;
286 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
287 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
288 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
289 oldincludedir
="$ac_optarg" ;;
291 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
293 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
294 prefix
="$ac_optarg" ;;
296 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
297 |
--program-pre |
--program-pr |
--program-p)
298 ac_prev
=program_prefix
;;
299 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
300 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
301 program_prefix
="$ac_optarg" ;;
303 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
304 |
--program-suf |
--program-su |
--program-s)
305 ac_prev
=program_suffix
;;
306 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
307 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
308 program_suffix
="$ac_optarg" ;;
310 -program-transform-name |
--program-transform-name \
311 |
--program-transform-nam |
--program-transform-na \
312 |
--program-transform-n |
--program-transform- \
313 |
--program-transform |
--program-transfor \
314 |
--program-transfo |
--program-transf \
315 |
--program-trans |
--program-tran \
316 |
--progr-tra |
--program-tr |
--program-t)
317 ac_prev
=program_transform_name
;;
318 -program-transform-name=* |
--program-transform-name=* \
319 |
--program-transform-nam=* |
--program-transform-na=* \
320 |
--program-transform-n=* |
--program-transform-=* \
321 |
--program-transform=* |
--program-transfor=* \
322 |
--program-transfo=* |
--program-transf=* \
323 |
--program-trans=* |
--program-tran=* \
324 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
325 program_transform_name
="$ac_optarg" ;;
327 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
328 |
-silent |
--silent |
--silen |
--sile |
--sil)
331 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
333 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
335 sbindir
="$ac_optarg" ;;
337 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
338 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
339 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
341 ac_prev
=sharedstatedir
;;
342 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
343 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
344 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
346 sharedstatedir
="$ac_optarg" ;;
348 -site |
--site |
--sit)
350 -site=* |
--site=* |
--sit=*)
353 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
355 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
356 srcdir
="$ac_optarg" ;;
358 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
359 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
360 ac_prev
=sysconfdir
;;
361 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
362 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
363 sysconfdir
="$ac_optarg" ;;
365 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
367 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
368 target
="$ac_optarg" ;;
370 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
373 -version |
--version |
--versio |
--versi |
--vers)
374 echo "configure generated by autoconf version 2.12.2"
378 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}='$ac_optarg'" ;;
390 -without-* |
--without-*)
391 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package
=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
400 # Obsolete; use --with-x.
403 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
404 |
--x-incl |
--x-inc |
--x-in |
--x-i)
405 ac_prev
=x_includes
;;
406 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
407 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
408 x_includes
="$ac_optarg" ;;
410 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
411 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
412 ac_prev
=x_libraries
;;
413 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
414 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
415 x_libraries
="$ac_optarg" ;;
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
424 if test "x$nonopt" != xNONE
; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433 if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439 # File descriptor usage:
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
465 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
466 |
--no-cr |
--no-c) ;;
467 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
468 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
469 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
476 # Only set these to C if already set. These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
481 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
483 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest
* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file
=main.c
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496 ac_srcdir_defaulted
=yes
497 # Try the directory containing this script, then its parent.
499 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
502 if test ! -r $srcdir/$ac_unique_file; then
506 ac_srcdir_defaulted
=no
508 if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE
; then
520 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
522 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 for ac_site_file
in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
536 echo "creating cache $cache_file"
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp
='$CPP $CPPFLAGS'
543 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling
=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
558 ac_n
= ac_c
='\c' ac_t
=
564 # Extract the first word of "gcc", so it can be a program name with args.
565 set dummy gcc
; ac_word
=$2
566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
567 echo "configure:568: checking for $ac_word" >&5
568 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
569 echo $ac_n "(cached) $ac_c" 1>&6
571 if test -n "$CC"; then
572 ac_cv_prog_CC
="$CC" # Let the user override the test.
574 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
575 for ac_dir
in $PATH; do
576 test -z "$ac_dir" && ac_dir
=.
577 if test -f $ac_dir/$ac_word; then
586 if test -n "$CC"; then
587 echo "$ac_t""$CC" 1>&6
589 echo "$ac_t""no" 1>&6
592 if test -z "$CC"; then
593 # Extract the first word of "cc", so it can be a program name with args.
594 set dummy cc
; ac_word
=$2
595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
596 echo "configure:597: checking for $ac_word" >&5
597 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
598 echo $ac_n "(cached) $ac_c" 1>&6
600 if test -n "$CC"; then
601 ac_cv_prog_CC
="$CC" # Let the user override the test.
603 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
605 for ac_dir
in $PATH; do
606 test -z "$ac_dir" && ac_dir
=.
607 if test -f $ac_dir/$ac_word; then
608 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
617 if test $ac_prog_rejected = yes; then
618 # We found a bogon in the path, so make sure we never use it.
619 set dummy
$ac_cv_prog_CC
621 if test $# -gt 0; then
622 # We chose a different compiler from the bogus one.
623 # However, it has the same basename, so the bogon will be chosen
624 # first if we set CC to just the basename; use the full file name.
626 set dummy
"$ac_dir/$ac_word" "$@"
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
637 echo "$ac_t""no" 1>&6
640 if test -z "$CC"; then
643 # Extract the first word of "cl", so it can be a program name with args.
644 set dummy cl
; ac_word
=$2
645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
646 echo "configure:647: checking for $ac_word" >&5
647 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
650 if test -n "$CC"; then
651 ac_cv_prog_CC
="$CC" # Let the user override the test.
653 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
654 for ac_dir
in $PATH; do
655 test -z "$ac_dir" && ac_dir
=.
656 if test -f $ac_dir/$ac_word; then
665 if test -n "$CC"; then
666 echo "$ac_t""$CC" 1>&6
668 echo "$ac_t""no" 1>&6
673 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
676 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
677 echo "configure:678: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
681 ac_cpp
='$CPP $CPPFLAGS'
682 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
683 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
684 cross_compiling
=$ac_cv_prog_cc_cross
686 cat > conftest.
$ac_ext <<EOF
687 #line 688 "configure"
688 #include "confdefs.h"
691 if { (eval echo configure
:692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
692 ac_cv_prog_cc_works
=yes
693 # If we can't run a trivial program, we are probably using a cross compiler.
694 if (.
/conftest
; exit) 2>/dev
/null
; then
695 ac_cv_prog_cc_cross
=no
697 ac_cv_prog_cc_cross
=yes
700 echo "configure: failed program was:" >&5
701 cat conftest.
$ac_ext >&5
702 ac_cv_prog_cc_works
=no
706 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
707 if test $ac_cv_prog_cc_works = no
; then
708 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
711 echo "configure:712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
712 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
713 cross_compiling
=$ac_cv_prog_cc_cross
715 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
716 echo "configure:717: checking whether we are using GNU C" >&5
717 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
720 cat > conftest.c
<<EOF
725 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
732 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
734 if test $ac_cv_prog_gcc = yes; then
740 ac_test_CFLAGS
="${CFLAGS+set}"
741 ac_save_CFLAGS
="$CFLAGS"
743 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
744 echo "configure:745: checking whether ${CC-cc} accepts -g" >&5
745 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
746 echo $ac_n "(cached) $ac_c" 1>&6
748 echo 'void f(){}' > conftest.c
749 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
758 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
759 if test "$ac_test_CFLAGS" = set; then
760 CFLAGS
="$ac_save_CFLAGS"
761 elif test $ac_cv_prog_cc_g = yes; then
762 if test "$GCC" = yes; then
768 if test "$GCC" = yes; then
775 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
776 echo "configure:777: checking how to run the C preprocessor" >&5
777 # On Suns, sometimes $CPP names a directory.
778 if test -n "$CPP" && test -d "$CPP"; then
781 if test -z "$CPP"; then
782 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 # This must be in double quotes, not single quotes, because CPP may get
786 # substituted into the Makefile and "${CC-cc}" will confuse make.
788 # On the NeXT, cc -E runs the code through the compiler's parser,
789 # not just through cpp.
790 cat > conftest.
$ac_ext <<EOF
791 #line 792 "configure"
792 #include "confdefs.h"
796 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
797 { (eval echo configure
:798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
798 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
799 if test -z "$ac_err"; then
803 echo "configure: failed program was:" >&5
804 cat conftest.
$ac_ext >&5
806 CPP
="${CC-cc} -E -traditional-cpp"
807 cat > conftest.
$ac_ext <<EOF
808 #line 809 "configure"
809 #include "confdefs.h"
813 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
814 { (eval echo configure
:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
815 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
816 if test -z "$ac_err"; then
820 echo "configure: failed program was:" >&5
821 cat conftest.
$ac_ext >&5
823 CPP
="${CC-cc} -nologo -E"
824 cat > conftest.
$ac_ext <<EOF
825 #line 826 "configure"
826 #include "confdefs.h"
830 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831 { (eval echo configure
:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
832 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
833 if test -z "$ac_err"; then
837 echo "configure: failed program was:" >&5
838 cat conftest.
$ac_ext >&5
847 ac_cv_prog_CPP
="$CPP"
849 CPP
="$ac_cv_prog_CPP"
851 ac_cv_prog_CPP
="$CPP"
853 echo "$ac_t""$CPP" 1>&6
855 echo $ac_n "checking for AIX""... $ac_c" 1>&6
856 echo "configure:857: checking for AIX" >&5
857 cat > conftest.
$ac_ext <<EOF
858 #line 859 "configure"
859 #include "confdefs.h"
865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
866 egrep "yes" >/dev
/null
2>&1; then
868 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
869 #define _ALL_SOURCE 1
874 echo "$ac_t""no" 1>&6
879 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
880 echo "configure:881: checking for POSIXized ISC" >&5
881 if test -d /etc
/conf
/kconfig.d
&&
882 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
884 echo "$ac_t""yes" 1>&6
885 ISC
=yes # If later tests want to check for ISC.
886 cat >> confdefs.h
<<\EOF
887 #define _POSIX_SOURCE 1
890 if test "$GCC" = yes; then
896 echo "$ac_t""no" 1>&6
903 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
904 if test -f $ac_dir/install-sh
; then
906 ac_install_sh
="$ac_aux_dir/install-sh -c"
908 elif test -f $ac_dir/install.sh
; then
910 ac_install_sh
="$ac_aux_dir/install.sh -c"
914 if test -z "$ac_aux_dir"; then
915 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
917 ac_config_guess
=$ac_aux_dir/config.guess
918 ac_config_sub
=$ac_aux_dir/config.sub
919 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
922 # Do some error checking and defaulting for the host and target type.
924 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
927 # 1. You are not allowed to specify --host, --target, and nonopt at the
929 # 2. Host defaults to nonopt.
930 # 3. If nonopt is not specified, then host defaults to the current host,
931 # as determined by config.guess.
932 # 4. Target and build default to nonopt.
933 # 5. If nonopt is not specified, then target and build default to host.
935 # The aliases save the names the user supplied, while $host etc.
936 # will get canonicalized.
937 case $host---$target---$nonopt in
938 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
939 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
943 # Make sure we can run config.sub.
944 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
945 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
948 echo $ac_n "checking host system type""... $ac_c" 1>&6
949 echo "configure:950: checking host system type" >&5
952 case "$host_alias" in
956 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
957 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
959 *) host_alias
=$nonopt ;;
963 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
964 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
965 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
966 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
967 echo "$ac_t""$host" 1>&6
969 echo $ac_n "checking target system type""... $ac_c" 1>&6
970 echo "configure:971: checking target system type" >&5
973 case "$target_alias" in
976 NONE
) target_alias
=$host_alias ;;
977 *) target_alias
=$nonopt ;;
981 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
982 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
983 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
984 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
985 echo "$ac_t""$target" 1>&6
987 echo $ac_n "checking build system type""... $ac_c" 1>&6
988 echo "configure:989: checking build system type" >&5
991 case "$build_alias" in
994 NONE
) build_alias
=$host_alias ;;
995 *) build_alias
=$nonopt ;;
999 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1000 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1001 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1002 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1003 echo "$ac_t""$build" 1>&6
1005 test "$host_alias" != "$target_alias" &&
1006 test "$program_prefix$program_suffix$program_transform_name" = \
1008 program_prefix
=${target_alias}-
1012 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1013 echo "configure:1014: checking whether ${MAKE-make} sets \${MAKE}" >&5
1014 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1015 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1018 cat > conftestmake
<<\EOF
1020 @
echo 'ac_maketemp="${MAKE}"'
1022 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1023 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1024 if test -n "$ac_maketemp"; then
1025 eval ac_cv_prog_make_
${ac_make}_set
=yes
1027 eval ac_cv_prog_make_
${ac_make}_set
=no
1031 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1032 echo "$ac_t""yes" 1>&6
1035 echo "$ac_t""no" 1>&6
1036 SET_MAKE
="MAKE=${MAKE-make}"
1039 # Extract the first word of "ranlib", so it can be a program name with args.
1040 set dummy ranlib
; ac_word
=$2
1041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042 echo "configure:1043: checking for $ac_word" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 if test -n "$RANLIB"; then
1047 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1049 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1050 for ac_dir
in $PATH; do
1051 test -z "$ac_dir" && ac_dir
=.
1052 if test -f $ac_dir/$ac_word; then
1053 ac_cv_prog_RANLIB
="ranlib"
1058 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1061 RANLIB
="$ac_cv_prog_RANLIB"
1062 if test -n "$RANLIB"; then
1063 echo "$ac_t""$RANLIB" 1>&6
1065 echo "$ac_t""no" 1>&6
1068 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1069 echo "configure:1070: checking for ANSI C header files" >&5
1070 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1073 cat > conftest.
$ac_ext <<EOF
1074 #line 1075 "configure"
1075 #include "confdefs.h"
1081 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1082 { (eval echo configure
:1083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1083 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1084 if test -z "$ac_err"; then
1086 ac_cv_header_stdc
=yes
1089 echo "configure: failed program was:" >&5
1090 cat conftest.
$ac_ext >&5
1092 ac_cv_header_stdc
=no
1096 if test $ac_cv_header_stdc = yes; then
1097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1098 cat > conftest.
$ac_ext <<EOF
1099 #line 1100 "configure"
1100 #include "confdefs.h"
1103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1104 egrep "memchr" >/dev
/null
2>&1; then
1108 ac_cv_header_stdc
=no
1114 if test $ac_cv_header_stdc = yes; then
1115 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1116 cat > conftest.
$ac_ext <<EOF
1117 #line 1118 "configure"
1118 #include "confdefs.h"
1121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1122 egrep "free" >/dev
/null
2>&1; then
1126 ac_cv_header_stdc
=no
1132 if test $ac_cv_header_stdc = yes; then
1133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1134 if test "$cross_compiling" = yes; then
1137 cat > conftest.
$ac_ext <<EOF
1138 #line 1139 "configure"
1139 #include "confdefs.h"
1141 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1142 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1143 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1144 int main () { int i; for (i = 0; i < 256; i++)
1145 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1149 if { (eval echo configure
:1150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1153 echo "configure: failed program was:" >&5
1154 cat conftest.
$ac_ext >&5
1156 ac_cv_header_stdc
=no
1164 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1165 if test $ac_cv_header_stdc = yes; then
1166 cat >> confdefs.h
<<\EOF
1167 #define STDC_HEADERS 1
1172 echo $ac_n "checking for working const""... $ac_c" 1>&6
1173 echo "configure:1174: checking for working const" >&5
1174 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 cat > conftest.
$ac_ext <<EOF
1178 #line 1179 "configure"
1179 #include "confdefs.h"
1183 /* Ultrix mips cc rejects this. */
1184 typedef int charset[2]; const charset x;
1185 /* SunOS 4.1.1 cc rejects this. */
1186 char const *const *ccp;
1188 /* NEC SVR4.0.2 mips cc rejects this. */
1189 struct point {int x, y;};
1190 static struct point const zero = {0,0};
1191 /* AIX XL C 1.02.0.0 rejects this.
1192 It does not let you subtract one const X* pointer from another in an arm
1193 of an if-expression whose if-part is not a constant expression */
1194 const char *g = "string";
1195 ccp = &g + (g ? g-g : 0);
1196 /* HPUX 7.0 cc rejects these. */
1199 ccp = (char const *const *) p;
1200 { /* SCO 3.2v4 cc rejects this. */
1202 char const *s = 0 ? (char *) 0 : (char const *) 0;
1206 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1208 const int *foo = &x[0];
1211 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1212 typedef const int *iptr;
1216 { /* AIX XL C 1.02.0.0 rejects this saying
1217 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1218 struct s { int j; const int *ap[3]; };
1219 struct s *b; b->j = 5;
1221 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1227 if { (eval echo configure
:1228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1231 echo "configure: failed program was:" >&5
1232 cat conftest.
$ac_ext >&5
1239 echo "$ac_t""$ac_cv_c_const" 1>&6
1240 if test $ac_cv_c_const = no
; then
1241 cat >> confdefs.h
<<\EOF
1247 echo $ac_n "checking for inline""... $ac_c" 1>&6
1248 echo "configure:1249: checking for inline" >&5
1249 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1253 for ac_kw
in inline __inline__ __inline
; do
1254 cat > conftest.
$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1262 if { (eval echo configure
:1263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1264 ac_cv_c_inline
=$ac_kw; break
1266 echo "configure: failed program was:" >&5
1267 cat conftest.
$ac_ext >&5
1274 echo "$ac_t""$ac_cv_c_inline" 1>&6
1275 case "$ac_cv_c_inline" in
1277 no
) cat >> confdefs.h
<<\EOF
1281 *) cat >> confdefs.h
<<EOF
1282 #define inline $ac_cv_c_inline
1287 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1288 echo "configure:1289: checking for off_t" >&5
1289 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 cat > conftest.
$ac_ext <<EOF
1293 #line 1294 "configure"
1294 #include "confdefs.h"
1295 #include <sys/types.h>
1301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1302 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1304 ac_cv_type_off_t
=yes
1312 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1313 if test $ac_cv_type_off_t = no
; then
1314 cat >> confdefs.h
<<\EOF
1320 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1321 echo "configure:1322: checking for size_t" >&5
1322 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1323 echo $ac_n "(cached) $ac_c" 1>&6
1325 cat > conftest.
$ac_ext <<EOF
1326 #line 1327 "configure"
1327 #include "confdefs.h"
1328 #include <sys/types.h>
1334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1335 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1337 ac_cv_type_size_t
=yes
1340 ac_cv_type_size_t
=no
1345 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1346 if test $ac_cv_type_size_t = no
; then
1347 cat >> confdefs.h
<<\EOF
1348 #define size_t unsigned
1353 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1354 # for constant arguments. Useless!
1355 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1356 echo "configure:1357: checking for working alloca.h" >&5
1357 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 cat > conftest.
$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1365 char *p = alloca(2 * sizeof(int));
1368 if { (eval echo configure
:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1370 ac_cv_header_alloca_h
=yes
1372 echo "configure: failed program was:" >&5
1373 cat conftest.
$ac_ext >&5
1375 ac_cv_header_alloca_h
=no
1380 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1381 if test $ac_cv_header_alloca_h = yes; then
1382 cat >> confdefs.h
<<\EOF
1383 #define HAVE_ALLOCA_H 1
1388 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1389 echo "configure:1390: checking for alloca" >&5
1390 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 cat > conftest.
$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1398 # define alloca __builtin_alloca
1401 # include <malloc.h>
1402 # define alloca _alloca
1405 # include <alloca.h>
1410 # ifndef alloca /* predefined by HP cc +Olibcalls */
1419 char *p = (char *) alloca(1);
1422 if { (eval echo configure
:1423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1424 ac_cv_func_alloca_works
=yes
1426 echo "configure: failed program was:" >&5
1427 cat conftest.
$ac_ext >&5
1429 ac_cv_func_alloca_works
=no
1434 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1435 if test $ac_cv_func_alloca_works = yes; then
1436 cat >> confdefs.h
<<\EOF
1437 #define HAVE_ALLOCA 1
1442 if test $ac_cv_func_alloca_works = no
; then
1443 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1444 # that cause trouble. Some versions do not even contain alloca or
1445 # contain a buggy version. If you still want to use their alloca,
1446 # use ar to extract alloca.o from them instead of compiling alloca.c.
1447 ALLOCA
=alloca.
${ac_objext}
1448 cat >> confdefs.h
<<\EOF
1453 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1454 echo "configure:1455: checking whether alloca needs Cray hooks" >&5
1455 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 cat > conftest.
$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1461 #if defined(CRAY) && ! defined(CRAY2)
1468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1469 egrep "webecray" >/dev
/null
2>&1; then
1480 echo "$ac_t""$ac_cv_os_cray" 1>&6
1481 if test $ac_cv_os_cray = yes; then
1482 for ac_func
in _getb67 GETB67 getb67
; do
1483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1484 echo "configure:1485: checking for $ac_func" >&5
1485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1488 cat > conftest.
$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1491 /* System header to define __stub macros and hopefully few prototypes,
1492 which can conflict with char $ac_func(); below. */
1494 /* Override any gcc2 internal prototype to avoid an error. */
1495 /* We use char because int might match the return type of a gcc2
1496 builtin and then its argument prototype would still apply. */
1501 /* The GNU C library defines this for functions which it implements
1502 to always fail with ENOSYS. Some functions are actually named
1503 something starting with __ and the normal name is an alias. */
1504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1512 if { (eval echo configure
:1513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1514 eval "ac_cv_func_$ac_func=yes"
1516 echo "configure: failed program was:" >&5
1517 cat conftest.
$ac_ext >&5
1519 eval "ac_cv_func_$ac_func=no"
1524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1525 echo "$ac_t""yes" 1>&6
1526 cat >> confdefs.h
<<EOF
1527 #define CRAY_STACKSEG_END $ac_func
1532 echo "$ac_t""no" 1>&6
1538 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1539 echo "configure:1540: checking stack direction for C alloca" >&5
1540 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1543 if test "$cross_compiling" = yes; then
1544 ac_cv_c_stack_direction
=0
1546 cat > conftest.
$ac_ext <<EOF
1547 #line 1548 "configure"
1548 #include "confdefs.h"
1549 find_stack_direction ()
1551 static char *addr = 0;
1556 return find_stack_direction ();
1559 return (&dummy > addr) ? 1 : -1;
1563 exit (find_stack_direction() < 0);
1566 if { (eval echo configure
:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1568 ac_cv_c_stack_direction
=1
1570 echo "configure: failed program was:" >&5
1571 cat conftest.
$ac_ext >&5
1573 ac_cv_c_stack_direction
=-1
1580 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1581 cat >> confdefs.h
<<EOF
1582 #define STACK_DIRECTION $ac_cv_c_stack_direction
1587 for ac_hdr
in unistd.h
1589 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1591 echo "configure:1592: checking for $ac_hdr" >&5
1592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 cat > conftest.
$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1600 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601 { (eval echo configure
:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1603 if test -z "$ac_err"; then
1605 eval "ac_cv_header_$ac_safe=yes"
1608 echo "configure: failed program was:" >&5
1609 cat conftest.
$ac_ext >&5
1611 eval "ac_cv_header_$ac_safe=no"
1615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1617 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1618 cat >> confdefs.h
<<EOF
1619 #define $ac_tr_hdr 1
1623 echo "$ac_t""no" 1>&6
1627 for ac_func
in getpagesize
1629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1630 echo "configure:1631: checking for $ac_func" >&5
1631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1634 cat > conftest.
$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1637 /* System header to define __stub macros and hopefully few prototypes,
1638 which can conflict with char $ac_func(); below. */
1640 /* Override any gcc2 internal prototype to avoid an error. */
1641 /* We use char because int might match the return type of a gcc2
1642 builtin and then its argument prototype would still apply. */
1647 /* The GNU C library defines this for functions which it implements
1648 to always fail with ENOSYS. Some functions are actually named
1649 something starting with __ and the normal name is an alias. */
1650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1658 if { (eval echo configure
:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1660 eval "ac_cv_func_$ac_func=yes"
1662 echo "configure: failed program was:" >&5
1663 cat conftest.
$ac_ext >&5
1665 eval "ac_cv_func_$ac_func=no"
1670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1671 echo "$ac_t""yes" 1>&6
1672 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1673 cat >> confdefs.h
<<EOF
1674 #define $ac_tr_func 1
1678 echo "$ac_t""no" 1>&6
1682 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1683 echo "configure:1684: checking for working mmap" >&5
1684 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1687 if test "$cross_compiling" = yes; then
1688 ac_cv_func_mmap_fixed_mapped
=no
1690 cat > conftest.
$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1694 /* Thanks to Mike Haertel and Jim Avera for this test.
1695 Here is a matrix of mmap possibilities:
1696 mmap private not fixed
1697 mmap private fixed at somewhere currently unmapped
1698 mmap private fixed at somewhere already mapped
1699 mmap shared not fixed
1700 mmap shared fixed at somewhere currently unmapped
1701 mmap shared fixed at somewhere already mapped
1702 For private mappings, we should verify that changes cannot be read()
1703 back from the file, nor mmap's back from the file at a different
1704 address. (There have been systems where private was not correctly
1705 implemented like the infamous i386 svr4.0, and systems where the
1706 VM page cache was not coherent with the filesystem buffer cache
1707 like early versions of FreeBSD and possibly contemporary NetBSD.)
1708 For shared mappings, we should conversely verify that changes get
1709 propogated back to all the places they're supposed to be.
1711 Grep wants private fixed already mapped.
1712 The main things grep needs to know about mmap are:
1713 * does it exist and is it safe to write into the mmap'd area
1714 * how to use it (BSD variants) */
1715 #include <sys/types.h>
1717 #include <sys/mman.h>
1719 /* This mess was copied from the GNU getpagesize.h. */
1720 #ifndef HAVE_GETPAGESIZE
1721 # ifdef HAVE_UNISTD_H
1722 # include <unistd.h>
1725 /* Assume that all systems that can run configure have sys/param.h. */
1726 # ifndef HAVE_SYS_PARAM_H
1727 # define HAVE_SYS_PARAM_H 1
1730 # ifdef _SC_PAGESIZE
1731 # define getpagesize() sysconf(_SC_PAGESIZE)
1732 # else /* no _SC_PAGESIZE */
1733 # ifdef HAVE_SYS_PARAM_H
1734 # include <sys/param.h>
1735 # ifdef EXEC_PAGESIZE
1736 # define getpagesize() EXEC_PAGESIZE
1737 # else /* no EXEC_PAGESIZE */
1739 # define getpagesize() NBPG * CLSIZE
1742 # endif /* no CLSIZE */
1743 # else /* no NBPG */
1745 # define getpagesize() NBPC
1746 # else /* no NBPC */
1748 # define getpagesize() PAGESIZE
1749 # endif /* PAGESIZE */
1750 # endif /* no NBPC */
1751 # endif /* no NBPG */
1752 # endif /* no EXEC_PAGESIZE */
1753 # else /* no HAVE_SYS_PARAM_H */
1754 # define getpagesize() 8192 /* punt totally */
1755 # endif /* no HAVE_SYS_PARAM_H */
1756 # endif /* no _SC_PAGESIZE */
1758 #endif /* no HAVE_GETPAGESIZE */
1761 extern "C" { void *malloc(unsigned); }
1769 char *data, *data2, *data3;
1773 pagesize = getpagesize();
1776 * First, make a file with some known garbage in it.
1778 data = malloc(pagesize);
1781 for (i = 0; i < pagesize; ++i)
1782 *(data + i) = rand();
1784 fd = creat("conftestmmap", 0600);
1787 if (write(fd, data, pagesize) != pagesize)
1792 * Next, try to mmap the file at a fixed address which
1793 * already has something else allocated at it. If we can,
1794 * also make sure that we see the same garbage.
1796 fd = open("conftestmmap", O_RDWR);
1799 data2 = malloc(2 * pagesize);
1802 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1803 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1804 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1806 for (i = 0; i < pagesize; ++i)
1807 if (*(data + i) != *(data2 + i))
1811 * Finally, make sure that changes to the mapped area
1812 * do not percolate back to the file as seen by read().
1813 * (This is a bug on some variants of i386 svr4.0.)
1815 for (i = 0; i < pagesize; ++i)
1816 *(data2 + i) = *(data2 + i) + 1;
1817 data3 = malloc(pagesize);
1820 if (read(fd, data3, pagesize) != pagesize)
1822 for (i = 0; i < pagesize; ++i)
1823 if (*(data + i) != *(data3 + i))
1826 unlink("conftestmmap");
1831 if { (eval echo configure
:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1833 ac_cv_func_mmap_fixed_mapped
=yes
1835 echo "configure: failed program was:" >&5
1836 cat conftest.
$ac_ext >&5
1838 ac_cv_func_mmap_fixed_mapped
=no
1845 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1846 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1847 cat >> confdefs.h
<<\EOF
1854 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1855 unistd.h values.h sys
/param.h
1857 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1859 echo "configure:1860: checking for $ac_hdr" >&5
1860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 cat > conftest.
$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1868 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure
:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871 if test -z "$ac_err"; then
1873 eval "ac_cv_header_$ac_safe=yes"
1876 echo "configure: failed program was:" >&5
1877 cat conftest.
$ac_ext >&5
1879 eval "ac_cv_header_$ac_safe=no"
1883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1884 echo "$ac_t""yes" 1>&6
1885 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1886 cat >> confdefs.h
<<EOF
1887 #define $ac_tr_hdr 1
1891 echo "$ac_t""no" 1>&6
1895 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1896 __argz_count __argz_stringify __argz_next
1898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1899 echo "configure:1900: checking for $ac_func" >&5
1900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1901 echo $ac_n "(cached) $ac_c" 1>&6
1903 cat > conftest.
$ac_ext <<EOF
1904 #line 1905 "configure"
1905 #include "confdefs.h"
1906 /* System header to define __stub macros and hopefully few prototypes,
1907 which can conflict with char $ac_func(); below. */
1909 /* Override any gcc2 internal prototype to avoid an error. */
1910 /* We use char because int might match the return type of a gcc2
1911 builtin and then its argument prototype would still apply. */
1916 /* The GNU C library defines this for functions which it implements
1917 to always fail with ENOSYS. Some functions are actually named
1918 something starting with __ and the normal name is an alias. */
1919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1927 if { (eval echo configure
:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1929 eval "ac_cv_func_$ac_func=yes"
1931 echo "configure: failed program was:" >&5
1932 cat conftest.
$ac_ext >&5
1934 eval "ac_cv_func_$ac_func=no"
1939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1940 echo "$ac_t""yes" 1>&6
1941 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1942 cat >> confdefs.h
<<EOF
1943 #define $ac_tr_func 1
1947 echo "$ac_t""no" 1>&6
1952 if test "${ac_cv_func_stpcpy+set}" != "set"; then
1953 for ac_func
in stpcpy
1955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1956 echo "configure:1957: checking for $ac_func" >&5
1957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1960 cat > conftest.
$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1963 /* System header to define __stub macros and hopefully few prototypes,
1964 which can conflict with char $ac_func(); below. */
1966 /* Override any gcc2 internal prototype to avoid an error. */
1967 /* We use char because int might match the return type of a gcc2
1968 builtin and then its argument prototype would still apply. */
1973 /* The GNU C library defines this for functions which it implements
1974 to always fail with ENOSYS. Some functions are actually named
1975 something starting with __ and the normal name is an alias. */
1976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1984 if { (eval echo configure
:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1986 eval "ac_cv_func_$ac_func=yes"
1988 echo "configure: failed program was:" >&5
1989 cat conftest.
$ac_ext >&5
1991 eval "ac_cv_func_$ac_func=no"
1996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1997 echo "$ac_t""yes" 1>&6
1998 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1999 cat >> confdefs.h
<<EOF
2000 #define $ac_tr_func 1
2004 echo "$ac_t""no" 1>&6
2009 if test "${ac_cv_func_stpcpy}" = "yes"; then
2010 cat >> confdefs.h
<<\EOF
2011 #define HAVE_STPCPY 1
2016 if test $ac_cv_header_locale_h = yes; then
2017 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2018 echo "configure:2019: checking for LC_MESSAGES" >&5
2019 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 cat > conftest.
$ac_ext <<EOF
2023 #line 2024 "configure"
2024 #include "confdefs.h"
2030 if { (eval echo configure
:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2032 am_cv_val_LC_MESSAGES
=yes
2034 echo "configure: failed program was:" >&5
2035 cat conftest.
$ac_ext >&5
2037 am_cv_val_LC_MESSAGES
=no
2042 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2043 if test $am_cv_val_LC_MESSAGES = yes; then
2044 cat >> confdefs.h
<<\EOF
2045 #define HAVE_LC_MESSAGES 1
2050 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2051 echo "configure:2052: checking whether NLS is requested" >&5
2052 # Check whether --enable-nls or --disable-nls was given.
2053 if test "${enable_nls+set}" = set; then
2054 enableval
="$enable_nls"
2060 echo "$ac_t""$USE_NLS" 1>&6
2063 USE_INCLUDED_LIBINTL
=no
2065 if test "$USE_NLS" = "yes"; then
2066 cat >> confdefs.h
<<\EOF
2067 #define ENABLE_NLS 1
2070 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2071 echo "configure:2072: checking whether included gettext is requested" >&5
2072 # Check whether --with-included-gettext or --without-included-gettext was given.
2073 if test "${with_included_gettext+set}" = set; then
2074 withval
="$with_included_gettext"
2075 nls_cv_force_use_gnu_gettext
=$withval
2077 nls_cv_force_use_gnu_gettext
=no
2080 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2082 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2083 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2085 nls_cv_header_libgt
=
2088 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2089 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2090 echo "configure:2091: checking for libintl.h" >&5
2091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 cat > conftest.
$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2097 #include <libintl.h>
2099 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2100 { (eval echo configure
:2101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2101 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2102 if test -z "$ac_err"; then
2104 eval "ac_cv_header_$ac_safe=yes"
2107 echo "configure: failed program was:" >&5
2108 cat conftest.
$ac_ext >&5
2110 eval "ac_cv_header_$ac_safe=no"
2114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2115 echo "$ac_t""yes" 1>&6
2116 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2117 echo "configure:2118: checking for gettext in libc" >&5
2118 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 cat > conftest.
$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 #include <libintl.h>
2126 return (int) gettext ("")
2129 if { (eval echo configure
:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2131 gt_cv_func_gettext_libc
=yes
2133 echo "configure: failed program was:" >&5
2134 cat conftest.
$ac_ext >&5
2136 gt_cv_func_gettext_libc
=no
2141 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2143 if test "$gt_cv_func_gettext_libc" != "yes"; then
2144 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2145 echo "configure:2146: checking for bindtextdomain in -lintl" >&5
2146 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2150 ac_save_LIBS
="$LIBS"
2152 cat > conftest.
$ac_ext <<EOF
2153 #line 2154 "configure"
2154 #include "confdefs.h"
2155 /* Override any gcc2 internal prototype to avoid an error. */
2156 /* We use char because int might match the return type of a gcc2
2157 builtin and then its argument prototype would still apply. */
2158 char bindtextdomain();
2164 if { (eval echo configure
:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2166 eval "ac_cv_lib_$ac_lib_var=yes"
2168 echo "configure: failed program was:" >&5
2169 cat conftest.
$ac_ext >&5
2171 eval "ac_cv_lib_$ac_lib_var=no"
2174 LIBS
="$ac_save_LIBS"
2177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2178 echo "$ac_t""yes" 1>&6
2179 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2180 echo "configure:2181: checking for gettext in libintl" >&5
2181 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat > conftest.
$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2189 return (int) gettext ("")
2192 if { (eval echo configure
:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2194 gt_cv_func_gettext_libintl
=yes
2196 echo "configure: failed program was:" >&5
2197 cat conftest.
$ac_ext >&5
2199 gt_cv_func_gettext_libintl
=no
2204 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2206 echo "$ac_t""no" 1>&6
2211 if test "$gt_cv_func_gettext_libc" = "yes" \
2212 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2213 cat >> confdefs.h
<<\EOF
2214 #define HAVE_GETTEXT 1
2217 # Extract the first word of "msgfmt", so it can be a program name with args.
2218 set dummy msgfmt
; ac_word
=$2
2219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2220 echo "configure:2221: checking for $ac_word" >&5
2221 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2226 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2229 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2230 for ac_dir
in $PATH; do
2231 test -z "$ac_dir" && ac_dir
=.
2232 if test -f $ac_dir/$ac_word; then
2233 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2234 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2240 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2244 MSGFMT
="$ac_cv_path_MSGFMT"
2245 if test -n "$MSGFMT"; then
2246 echo "$ac_t""$MSGFMT" 1>&6
2248 echo "$ac_t""no" 1>&6
2250 if test "$MSGFMT" != "no"; then
2251 for ac_func
in dcgettext
2253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_func" >&5
2255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 cat > conftest.
$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2261 /* System header to define __stub macros and hopefully few prototypes,
2262 which can conflict with char $ac_func(); below. */
2264 /* Override any gcc2 internal prototype to avoid an error. */
2265 /* We use char because int might match the return type of a gcc2
2266 builtin and then its argument prototype would still apply. */
2271 /* The GNU C library defines this for functions which it implements
2272 to always fail with ENOSYS. Some functions are actually named
2273 something starting with __ and the normal name is an alias. */
2274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2282 if { (eval echo configure
:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2284 eval "ac_cv_func_$ac_func=yes"
2286 echo "configure: failed program was:" >&5
2287 cat conftest.
$ac_ext >&5
2289 eval "ac_cv_func_$ac_func=no"
2294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2295 echo "$ac_t""yes" 1>&6
2296 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2297 cat >> confdefs.h
<<EOF
2298 #define $ac_tr_func 1
2302 echo "$ac_t""no" 1>&6
2306 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2307 set dummy gmsgfmt
; ac_word
=$2
2308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2309 echo "configure:2310: checking for $ac_word" >&5
2310 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2315 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2318 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2321 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2322 for ac_dir
in $PATH; do
2323 test -z "$ac_dir" && ac_dir
=.
2324 if test -f $ac_dir/$ac_word; then
2325 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2330 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2334 GMSGFMT
="$ac_cv_path_GMSGFMT"
2335 if test -n "$GMSGFMT"; then
2336 echo "$ac_t""$GMSGFMT" 1>&6
2338 echo "$ac_t""no" 1>&6
2341 # Extract the first word of "xgettext", so it can be a program name with args.
2342 set dummy xgettext
; ac_word
=$2
2343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_word" >&5
2345 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2350 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2353 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2354 for ac_dir
in $PATH; do
2355 test -z "$ac_dir" && ac_dir
=.
2356 if test -f $ac_dir/$ac_word; then
2357 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2358 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2364 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2368 XGETTEXT
="$ac_cv_path_XGETTEXT"
2369 if test -n "$XGETTEXT"; then
2370 echo "$ac_t""$XGETTEXT" 1>&6
2372 echo "$ac_t""no" 1>&6
2375 cat > conftest.
$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2380 extern int _nl_msg_cat_cntr;
2381 return _nl_msg_cat_cntr
2384 if { (eval echo configure
:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2389 echo "configure: failed program was:" >&5
2390 cat conftest.
$ac_ext >&5
2401 echo "$ac_t""no" 1>&6
2406 if test "$CATOBJEXT" = "NONE"; then
2407 nls_cv_use_gnu_gettext
=yes
2411 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2412 INTLOBJS
="\$(GETTOBJS)"
2413 # Extract the first word of "msgfmt", so it can be a program name with args.
2414 set dummy msgfmt
; ac_word
=$2
2415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2416 echo "configure:2417: checking for $ac_word" >&5
2417 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2422 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2425 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2426 for ac_dir
in $PATH; do
2427 test -z "$ac_dir" && ac_dir
=.
2428 if test -f $ac_dir/$ac_word; then
2429 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2430 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2436 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2440 MSGFMT
="$ac_cv_path_MSGFMT"
2441 if test -n "$MSGFMT"; then
2442 echo "$ac_t""$MSGFMT" 1>&6
2444 echo "$ac_t""no" 1>&6
2447 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2448 set dummy gmsgfmt
; ac_word
=$2
2449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2450 echo "configure:2451: checking for $ac_word" >&5
2451 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2456 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2459 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2462 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2463 for ac_dir
in $PATH; do
2464 test -z "$ac_dir" && ac_dir
=.
2465 if test -f $ac_dir/$ac_word; then
2466 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2471 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2475 GMSGFMT
="$ac_cv_path_GMSGFMT"
2476 if test -n "$GMSGFMT"; then
2477 echo "$ac_t""$GMSGFMT" 1>&6
2479 echo "$ac_t""no" 1>&6
2482 # Extract the first word of "xgettext", so it can be a program name with args.
2483 set dummy xgettext
; ac_word
=$2
2484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2485 echo "configure:2486: checking for $ac_word" >&5
2486 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2491 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2494 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2495 for ac_dir
in $PATH; do
2496 test -z "$ac_dir" && ac_dir
=.
2497 if test -f $ac_dir/$ac_word; then
2498 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2499 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2505 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2509 XGETTEXT
="$ac_cv_path_XGETTEXT"
2510 if test -n "$XGETTEXT"; then
2511 echo "$ac_t""$XGETTEXT" 1>&6
2513 echo "$ac_t""no" 1>&6
2517 USE_INCLUDED_LIBINTL
=yes
2521 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2523 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2524 nls_cv_header_intl
=libintl.h
2525 nls_cv_header_libgt
=libgettext.h
2528 if test "$XGETTEXT" != ":"; then
2529 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2532 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2537 # We need to process the po/ directory.
2541 nls_cv_header_intl
=libintl.h
2542 nls_cv_header_libgt
=libgettext.h
2545 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2546 # because some of the sources are only built for this goal.
2547 if test "$PACKAGE" = gettext; then
2549 USE_INCLUDED_LIBINTL
=yes
2552 for lang
in $ALL_LINGUAS; do
2553 GMOFILES
="$GMOFILES $lang.gmo"
2554 POFILES
="$POFILES $lang.po"
2570 if test "x$CATOBJEXT" != "x"; then
2571 if test "x$ALL_LINGUAS" = "x"; then
2574 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2575 echo "configure:2576: checking for catalogs to be installed" >&5
2577 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2578 case "$ALL_LINGUAS" in
2579 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2582 LINGUAS
=$NEW_LINGUAS
2583 echo "$ac_t""$LINGUAS" 1>&6
2586 if test -n "$LINGUAS"; then
2587 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2591 if test $ac_cv_header_locale_h = yes; then
2592 INCLUDE_LOCALE_H
="#include <locale.h>"
2595 /* The system does not provide the header <locale.h>. Take care yourself. */"
2599 if test -f $srcdir/po2tbl.
sed.
in; then
2600 if test "$CATOBJEXT" = ".cat"; then
2601 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2602 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2603 echo "configure:2604: checking for linux/version.h" >&5
2604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2607 cat > conftest.
$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610 #include <linux/version.h>
2612 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2613 { (eval echo configure
:2614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2614 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2615 if test -z "$ac_err"; then
2617 eval "ac_cv_header_$ac_safe=yes"
2620 echo "configure: failed program was:" >&5
2621 cat conftest.
$ac_ext >&5
2623 eval "ac_cv_header_$ac_safe=no"
2627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2628 echo "$ac_t""yes" 1>&6
2631 echo "$ac_t""no" 1>&6
2636 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2638 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2639 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2642 if test "$PACKAGE" = "gettext"; then
2652 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2658 if test -d $srcdir/po
; then
2659 test -d po || mkdir po
2660 if test "x$srcdir" != "x."; then
2661 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2662 posrcprefix
="$srcdir/"
2664 posrcprefix
="../$srcdir/"
2670 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2671 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2680 configdirs
="doc testsuite"
2683 .
${srcdir}/configure.
host
2685 .
${srcdir}/configure.tgt
2688 # Find a good install program. We prefer a C program (faster),
2689 # so one script is as good as another. But avoid the broken or
2690 # incompatible versions:
2691 # SysV /etc/install, /usr/sbin/install
2692 # SunOS /usr/etc/install
2693 # IRIX /sbin/install
2695 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2696 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2697 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2698 # ./install, which can be erroneously created by make from ./install.sh.
2699 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2700 echo "configure:2701: checking for a BSD compatible install" >&5
2701 if test -z "$INSTALL"; then
2702 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2705 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2706 for ac_dir
in $PATH; do
2707 # Account for people who put trailing slashes in PATH elements.
2709 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2711 # OSF1 and SCO ODT 3.0 have their own names for install.
2712 # Don't use installbsd from OSF since it installs stuff as root
2714 for ac_prog
in ginstall scoinst
install; do
2715 if test -f $ac_dir/$ac_prog; then
2716 if test $ac_prog = install &&
2717 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2718 # AIX install. It has an incompatible calling convention.
2721 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2732 if test "${ac_cv_path_install+set}" = set; then
2733 INSTALL
="$ac_cv_path_install"
2735 # As a last resort, use the slow shell script. We don't cache a
2736 # path for INSTALL within a source directory, because that will
2737 # break other packages using the cache if that directory is
2738 # removed, or if the path is relative.
2739 INSTALL
="$ac_install_sh"
2742 echo "$ac_t""$INSTALL" 1>&6
2744 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2745 # It thinks the first close brace ends the variable substitution.
2746 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2748 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2750 if test $host != $build; then
2751 ac_tool_prefix
=${host_alias}-
2756 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2757 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2759 echo "configure:2760: checking for $ac_word" >&5
2760 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2763 if test -n "$AR"; then
2764 ac_cv_prog_AR
="$AR" # Let the user override the test.
2766 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2767 for ac_dir
in $PATH; do
2768 test -z "$ac_dir" && ac_dir
=.
2769 if test -f $ac_dir/$ac_word; then
2770 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2775 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2779 if test -n "$AR"; then
2780 echo "$ac_t""$AR" 1>&6
2782 echo "$ac_t""no" 1>&6
2787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2788 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2790 echo "configure:2791: checking for $ac_word" >&5
2791 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2794 if test -n "$RANLIB"; then
2795 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2797 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2798 for ac_dir
in $PATH; do
2799 test -z "$ac_dir" && ac_dir
=.
2800 if test -f $ac_dir/$ac_word; then
2801 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2808 RANLIB
="$ac_cv_prog_RANLIB"
2809 if test -n "$RANLIB"; then
2810 echo "$ac_t""$RANLIB" 1>&6
2812 echo "$ac_t""no" 1>&6
2816 if test -z "$ac_cv_prog_RANLIB"; then
2817 if test -n "$ac_tool_prefix"; then
2818 # Extract the first word of "ranlib", so it can be a program name with args.
2819 set dummy ranlib
; ac_word
=$2
2820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2821 echo "configure:2822: checking for $ac_word" >&5
2822 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 if test -n "$RANLIB"; then
2826 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2828 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2829 for ac_dir
in $PATH; do
2830 test -z "$ac_dir" && ac_dir
=.
2831 if test -f $ac_dir/$ac_word; then
2832 ac_cv_prog_RANLIB
="ranlib"
2837 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2840 RANLIB
="$ac_cv_prog_RANLIB"
2841 if test -n "$RANLIB"; then
2842 echo "$ac_t""$RANLIB" 1>&6
2844 echo "$ac_t""no" 1>&6
2852 for ac_prog
in 'bison -y' byacc
2854 # Extract the first word of "$ac_prog", so it can be a program name with args.
2855 set dummy
$ac_prog; ac_word
=$2
2856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2857 echo "configure:2858: checking for $ac_word" >&5
2858 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 if test -n "$YACC"; then
2862 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2864 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2865 for ac_dir
in $PATH; do
2866 test -z "$ac_dir" && ac_dir
=.
2867 if test -f $ac_dir/$ac_word; then
2868 ac_cv_prog_YACC
="$ac_prog"
2875 YACC
="$ac_cv_prog_YACC"
2876 if test -n "$YACC"; then
2877 echo "$ac_t""$YACC" 1>&6
2879 echo "$ac_t""no" 1>&6
2882 test -n "$YACC" && break
2884 test -n "$YACC" || YACC
="yacc"
2887 if test "$program_transform_name" = s
,x
,x
,; then
2888 program_transform_name
=
2890 # Double any \ or $. echo might interpret backslashes.
2891 cat <<\EOF_SED
> conftestsed
2892 s
,\\,\\\\,g
; s
,\$
,$$
,g
2894 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2897 test "$program_prefix" != NONE
&&
2898 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2899 # Use a double $ so make ignores it.
2900 test "$program_suffix" != NONE
&&
2901 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2903 # sed with no file args requires a program.
2904 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2907 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2908 echo "configure:2909: checking return type of signal handlers" >&5
2909 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2912 cat > conftest.
$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2915 #include <sys/types.h>
2921 extern "C" void (*signal (int, void (*)(int)))(int);
2923 void (*signal ()) ();
2930 if { (eval echo configure
:2931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2932 ac_cv_type_signal
=void
2934 echo "configure: failed program was:" >&5
2935 cat conftest.
$ac_ext >&5
2937 ac_cv_type_signal
=int
2942 echo "$ac_t""$ac_cv_type_signal" 1>&6
2943 cat >> confdefs.h
<<EOF
2944 #define RETSIGTYPE $ac_cv_type_signal
2949 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2950 echo "configure:2951: checking for ANSI C header files" >&5
2951 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2954 cat > conftest.
$ac_ext <<EOF
2955 #line 2956 "configure"
2956 #include "confdefs.h"
2962 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2963 { (eval echo configure
:2964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2964 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2965 if test -z "$ac_err"; then
2967 ac_cv_header_stdc
=yes
2970 echo "configure: failed program was:" >&5
2971 cat conftest.
$ac_ext >&5
2973 ac_cv_header_stdc
=no
2977 if test $ac_cv_header_stdc = yes; then
2978 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2979 cat > conftest.
$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2985 egrep "memchr" >/dev
/null
2>&1; then
2989 ac_cv_header_stdc
=no
2995 if test $ac_cv_header_stdc = yes; then
2996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2997 cat > conftest.
$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3003 egrep "free" >/dev
/null
2>&1; then
3007 ac_cv_header_stdc
=no
3013 if test $ac_cv_header_stdc = yes; then
3014 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3015 if test "$cross_compiling" = yes; then
3018 cat > conftest.
$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3022 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3023 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3025 int main () { int i; for (i = 0; i < 256; i++)
3026 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3030 if { (eval echo configure
:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3034 echo "configure: failed program was:" >&5
3035 cat conftest.
$ac_ext >&5
3037 ac_cv_header_stdc
=no
3045 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3046 if test $ac_cv_header_stdc = yes; then
3047 cat >> confdefs.h
<<\EOF
3048 #define STDC_HEADERS 1
3053 for ac_hdr
in ctype.h curses.h endian.h libintl.h link.h \
3054 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3055 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h \
3056 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3057 wchar.h wctype.h asm
/debugreg.h
3059 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3060 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3061 echo "configure:3062: checking for $ac_hdr" >&5
3062 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 cat > conftest.
$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3070 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3071 { (eval echo configure
:3072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3072 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3073 if test -z "$ac_err"; then
3075 eval "ac_cv_header_$ac_safe=yes"
3078 echo "configure: failed program was:" >&5
3079 cat conftest.
$ac_ext >&5
3081 eval "ac_cv_header_$ac_safe=no"
3085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3086 echo "$ac_t""yes" 1>&6
3087 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3088 cat >> confdefs.h
<<EOF
3089 #define $ac_tr_hdr 1
3093 echo "$ac_t""no" 1>&6
3098 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3099 echo "configure:3100: checking whether stat file-mode macros are broken" >&5
3100 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3103 cat > conftest.
$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3106 #include <sys/types.h>
3107 #include <sys/stat.h>
3109 #if defined(S_ISBLK) && defined(S_IFDIR)
3110 # if S_ISBLK (S_IFDIR)
3115 #if defined(S_ISBLK) && defined(S_IFCHR)
3116 # if S_ISBLK (S_IFCHR)
3121 #if defined(S_ISLNK) && defined(S_IFREG)
3122 # if S_ISLNK (S_IFREG)
3127 #if defined(S_ISSOCK) && defined(S_IFREG)
3128 # if S_ISSOCK (S_IFREG)
3134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3135 egrep "You lose" >/dev
/null
2>&1; then
3137 ac_cv_header_stat_broken
=yes
3140 ac_cv_header_stat_broken
=no
3146 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3147 if test $ac_cv_header_stat_broken = yes; then
3148 cat >> confdefs.h
<<\EOF
3149 #define STAT_MACROS_BROKEN 1
3155 echo $ac_n "checking for working const""... $ac_c" 1>&6
3156 echo "configure:3157: checking for working const" >&5
3157 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3158 echo $ac_n "(cached) $ac_c" 1>&6
3160 cat > conftest.
$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3166 /* Ultrix mips cc rejects this. */
3167 typedef int charset[2]; const charset x;
3168 /* SunOS 4.1.1 cc rejects this. */
3169 char const *const *ccp;
3171 /* NEC SVR4.0.2 mips cc rejects this. */
3172 struct point {int x, y;};
3173 static struct point const zero = {0,0};
3174 /* AIX XL C 1.02.0.0 rejects this.
3175 It does not let you subtract one const X* pointer from another in an arm
3176 of an if-expression whose if-part is not a constant expression */
3177 const char *g = "string";
3178 ccp = &g + (g ? g-g : 0);
3179 /* HPUX 7.0 cc rejects these. */
3182 ccp = (char const *const *) p;
3183 { /* SCO 3.2v4 cc rejects this. */
3185 char const *s = 0 ? (char *) 0 : (char const *) 0;
3189 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3191 const int *foo = &x[0];
3194 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3195 typedef const int *iptr;
3199 { /* AIX XL C 1.02.0.0 rejects this saying
3200 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3201 struct s { int j; const int *ap[3]; };
3202 struct s *b; b->j = 5;
3204 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3210 if { (eval echo configure
:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3214 echo "configure: failed program was:" >&5
3215 cat conftest.
$ac_ext >&5
3222 echo "$ac_t""$ac_cv_c_const" 1>&6
3223 if test $ac_cv_c_const = no
; then
3224 cat >> confdefs.h
<<\EOF
3231 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc
3233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_func" >&5
3235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 cat > conftest.
$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 /* System header to define __stub macros and hopefully few prototypes,
3242 which can conflict with char $ac_func(); below. */
3244 /* Override any gcc2 internal prototype to avoid an error. */
3245 /* We use char because int might match the return type of a gcc2
3246 builtin and then its argument prototype would still apply. */
3251 /* The GNU C library defines this for functions which it implements
3252 to always fail with ENOSYS. Some functions are actually named
3253 something starting with __ and the normal name is an alias. */
3254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3262 if { (eval echo configure
:3263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3264 eval "ac_cv_func_$ac_func=yes"
3266 echo "configure: failed program was:" >&5
3267 cat conftest.
$ac_ext >&5
3269 eval "ac_cv_func_$ac_func=no"
3274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3275 echo "$ac_t""yes" 1>&6
3276 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3277 cat >> confdefs.h
<<EOF
3278 #define $ac_tr_func 1
3282 echo "$ac_t""no" 1>&6
3286 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3287 # for constant arguments. Useless!
3288 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3289 echo "configure:3290: checking for working alloca.h" >&5
3290 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 cat > conftest.
$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3298 char *p = alloca(2 * sizeof(int));
3301 if { (eval echo configure
:3302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3303 ac_cv_header_alloca_h
=yes
3305 echo "configure: failed program was:" >&5
3306 cat conftest.
$ac_ext >&5
3308 ac_cv_header_alloca_h
=no
3313 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3314 if test $ac_cv_header_alloca_h = yes; then
3315 cat >> confdefs.h
<<\EOF
3316 #define HAVE_ALLOCA_H 1
3321 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3322 echo "configure:3323: checking for alloca" >&5
3323 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3324 echo $ac_n "(cached) $ac_c" 1>&6
3326 cat > conftest.
$ac_ext <<EOF
3327 #line 3328 "configure"
3328 #include "confdefs.h"
3331 # define alloca __builtin_alloca
3334 # include <malloc.h>
3335 # define alloca _alloca
3338 # include <alloca.h>
3343 # ifndef alloca /* predefined by HP cc +Olibcalls */
3352 char *p = (char *) alloca(1);
3355 if { (eval echo configure
:3356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3357 ac_cv_func_alloca_works
=yes
3359 echo "configure: failed program was:" >&5
3360 cat conftest.
$ac_ext >&5
3362 ac_cv_func_alloca_works
=no
3367 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3368 if test $ac_cv_func_alloca_works = yes; then
3369 cat >> confdefs.h
<<\EOF
3370 #define HAVE_ALLOCA 1
3375 if test $ac_cv_func_alloca_works = no
; then
3376 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3377 # that cause trouble. Some versions do not even contain alloca or
3378 # contain a buggy version. If you still want to use their alloca,
3379 # use ar to extract alloca.o from them instead of compiling alloca.c.
3380 ALLOCA
=alloca.
${ac_objext}
3381 cat >> confdefs.h
<<\EOF
3386 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3387 echo "configure:3388: checking whether alloca needs Cray hooks" >&5
3388 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3391 cat > conftest.
$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3394 #if defined(CRAY) && ! defined(CRAY2)
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402 egrep "webecray" >/dev
/null
2>&1; then
3413 echo "$ac_t""$ac_cv_os_cray" 1>&6
3414 if test $ac_cv_os_cray = yes; then
3415 for ac_func
in _getb67 GETB67 getb67
; do
3416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3417 echo "configure:3418: checking for $ac_func" >&5
3418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 cat > conftest.
$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 /* System header to define __stub macros and hopefully few prototypes,
3425 which can conflict with char $ac_func(); below. */
3427 /* Override any gcc2 internal prototype to avoid an error. */
3428 /* We use char because int might match the return type of a gcc2
3429 builtin and then its argument prototype would still apply. */
3434 /* The GNU C library defines this for functions which it implements
3435 to always fail with ENOSYS. Some functions are actually named
3436 something starting with __ and the normal name is an alias. */
3437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3445 if { (eval echo configure
:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3447 eval "ac_cv_func_$ac_func=yes"
3449 echo "configure: failed program was:" >&5
3450 cat conftest.
$ac_ext >&5
3452 eval "ac_cv_func_$ac_func=no"
3457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3458 echo "$ac_t""yes" 1>&6
3459 cat >> confdefs.h
<<EOF
3460 #define CRAY_STACKSEG_END $ac_func
3465 echo "$ac_t""no" 1>&6
3471 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3472 echo "configure:3473: checking stack direction for C alloca" >&5
3473 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 if test "$cross_compiling" = yes; then
3477 ac_cv_c_stack_direction
=0
3479 cat > conftest.
$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3482 find_stack_direction ()
3484 static char *addr = 0;
3489 return find_stack_direction ();
3492 return (&dummy > addr) ? 1 : -1;
3496 exit (find_stack_direction() < 0);
3499 if { (eval echo configure
:3500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3501 ac_cv_c_stack_direction
=1
3503 echo "configure: failed program was:" >&5
3504 cat conftest.
$ac_ext >&5
3506 ac_cv_c_stack_direction
=-1
3513 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3514 cat >> confdefs.h
<<EOF
3515 #define STACK_DIRECTION $ac_cv_c_stack_direction
3521 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3522 echo "configure:3523: checking whether malloc must be declared" >&5
3523 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3524 echo $ac_n "(cached) $ac_c" 1>&6
3526 cat > conftest.
$ac_ext <<EOF
3527 #line 3528 "configure"
3528 #include "confdefs.h"
3531 #ifdef HAVE_STRING_H
3534 #ifdef HAVE_STRINGS_H
3535 #include <strings.h>
3538 #ifdef HAVE_STDLIB_H
3541 #ifdef HAVE_UNISTD_H
3545 char *(*pfn) = (char *(*)) malloc
3548 if { (eval echo configure
:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3550 bfd_cv_decl_needed_malloc
=no
3552 echo "configure: failed program was:" >&5
3553 cat conftest.
$ac_ext >&5
3555 bfd_cv_decl_needed_malloc
=yes
3560 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3561 if test $bfd_cv_decl_needed_malloc = yes; then
3562 bfd_tr_decl
=NEED_DECLARATION_
`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3563 cat >> confdefs.h
<<EOF
3564 #define $bfd_tr_decl 1
3569 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3570 echo "configure:3571: checking whether realloc must be declared" >&5
3571 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3574 cat > conftest.
$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3579 #ifdef HAVE_STRING_H
3582 #ifdef HAVE_STRINGS_H
3583 #include <strings.h>
3586 #ifdef HAVE_STDLIB_H
3589 #ifdef HAVE_UNISTD_H
3593 char *(*pfn) = (char *(*)) realloc
3596 if { (eval echo configure
:3597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3598 bfd_cv_decl_needed_realloc
=no
3600 echo "configure: failed program was:" >&5
3601 cat conftest.
$ac_ext >&5
3603 bfd_cv_decl_needed_realloc
=yes
3608 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3609 if test $bfd_cv_decl_needed_realloc = yes; then
3610 bfd_tr_decl
=NEED_DECLARATION_
`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3611 cat >> confdefs.h
<<EOF
3612 #define $bfd_tr_decl 1
3617 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3618 echo "configure:3619: checking whether free must be declared" >&5
3619 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3622 cat > conftest.
$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3627 #ifdef HAVE_STRING_H
3630 #ifdef HAVE_STRINGS_H
3631 #include <strings.h>
3634 #ifdef HAVE_STDLIB_H
3637 #ifdef HAVE_UNISTD_H
3641 char *(*pfn) = (char *(*)) free
3644 if { (eval echo configure
:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3646 bfd_cv_decl_needed_free
=no
3648 echo "configure: failed program was:" >&5
3649 cat conftest.
$ac_ext >&5
3651 bfd_cv_decl_needed_free
=yes
3656 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
3657 if test $bfd_cv_decl_needed_free = yes; then
3658 bfd_tr_decl
=NEED_DECLARATION_
`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3659 cat >> confdefs.h
<<EOF
3660 #define $bfd_tr_decl 1
3665 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
3666 echo "configure:3667: checking whether strerror must be declared" >&5
3667 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3670 cat > conftest.
$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3675 #ifdef HAVE_STRING_H
3678 #ifdef HAVE_STRINGS_H
3679 #include <strings.h>
3682 #ifdef HAVE_STDLIB_H
3685 #ifdef HAVE_UNISTD_H
3689 char *(*pfn) = (char *(*)) strerror
3692 if { (eval echo configure
:3693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3694 bfd_cv_decl_needed_strerror
=no
3696 echo "configure: failed program was:" >&5
3697 cat conftest.
$ac_ext >&5
3699 bfd_cv_decl_needed_strerror
=yes
3704 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
3705 if test $bfd_cv_decl_needed_strerror = yes; then
3706 bfd_tr_decl
=NEED_DECLARATION_
`echo strerror | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3707 cat >> confdefs.h
<<EOF
3708 #define $bfd_tr_decl 1
3713 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
3714 echo "configure:3715: checking whether strdup must be declared" >&5
3715 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3718 cat > conftest.
$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3723 #ifdef HAVE_STRING_H
3726 #ifdef HAVE_STRINGS_H
3727 #include <strings.h>
3730 #ifdef HAVE_STDLIB_H
3733 #ifdef HAVE_UNISTD_H
3737 char *(*pfn) = (char *(*)) strdup
3740 if { (eval echo configure
:3741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3742 bfd_cv_decl_needed_strdup
=no
3744 echo "configure: failed program was:" >&5
3745 cat conftest.
$ac_ext >&5
3747 bfd_cv_decl_needed_strdup
=yes
3752 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
3753 if test $bfd_cv_decl_needed_strdup = yes; then
3754 bfd_tr_decl
=NEED_DECLARATION_
`echo strdup | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3755 cat >> confdefs.h
<<EOF
3756 #define $bfd_tr_decl 1
3762 # If we are configured native on GNU/Linux, work around problems with sys/procfs.h
3763 if test "${target}" = "${host}"; then
3766 cat >> confdefs.h
<<\EOF
3767 #define START_INFERIOR_TRAPS_EXPECTED 2
3770 cat >> confdefs.h
<<\EOF
3771 #define sys_quotactl 1
3778 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
3779 echo "configure:3780: checking for gregset_t type" >&5
3780 if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3783 cat > conftest.
$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3786 #include <sys/procfs.h>
3788 gregset_t *gregsetp = 0
3791 if { (eval echo configure
:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3793 gdb_cv_have_gregset_t
=yes
3795 echo "configure: failed program was:" >&5
3796 cat conftest.
$ac_ext >&5
3798 gdb_cv_have_gregset_t
=no
3803 echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6
3804 if test $gdb_cv_have_gregset_t = yes; then
3805 cat >> confdefs.h
<<\EOF
3806 #define HAVE_GREGSET_T 1
3811 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
3812 echo "configure:3813: checking for fpregset_t type" >&5
3813 if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3816 cat > conftest.
$ac_ext <<EOF
3817 #line 3818 "configure"
3818 #include "confdefs.h"
3819 #include <sys/procfs.h>
3821 fpregset_t *fpregsetp = 0
3824 if { (eval echo configure
:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3826 gdb_cv_have_fpregset_t
=yes
3828 echo "configure: failed program was:" >&5
3829 cat conftest.
$ac_ext >&5
3831 gdb_cv_have_fpregset_t
=no
3836 echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6
3837 if test $gdb_cv_have_fpregset_t = yes; then
3838 cat >> confdefs.h
<<\EOF
3839 #define HAVE_FPREGSET_T 1
3844 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3845 echo "configure:3846: checking for main in -lm" >&5
3846 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3848 echo $ac_n "(cached) $ac_c" 1>&6
3850 ac_save_LIBS
="$LIBS"
3852 cat > conftest.
$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3860 if { (eval echo configure
:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3862 eval "ac_cv_lib_$ac_lib_var=yes"
3864 echo "configure: failed program was:" >&5
3865 cat conftest.
$ac_ext >&5
3867 eval "ac_cv_lib_$ac_lib_var=no"
3870 LIBS
="$ac_save_LIBS"
3873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3874 echo "$ac_t""yes" 1>&6
3875 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3876 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3877 cat >> confdefs.h
<<EOF
3878 #define $ac_tr_lib 1
3884 echo "$ac_t""no" 1>&6
3888 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
3889 echo "configure:3890: checking for wctype in -lc" >&5
3890 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
3891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3894 ac_save_LIBS
="$LIBS"
3896 cat > conftest.
$ac_ext <<EOF
3897 #line 3898 "configure"
3898 #include "confdefs.h"
3899 /* Override any gcc2 internal prototype to avoid an error. */
3900 /* We use char because int might match the return type of a gcc2
3901 builtin and then its argument prototype would still apply. */
3908 if { (eval echo configure
:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3910 eval "ac_cv_lib_$ac_lib_var=yes"
3912 echo "configure: failed program was:" >&5
3913 cat conftest.
$ac_ext >&5
3915 eval "ac_cv_lib_$ac_lib_var=no"
3918 LIBS
="$ac_save_LIBS"
3921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3922 echo "$ac_t""yes" 1>&6
3925 echo "$ac_t""no" 1>&6
3926 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3927 echo "configure:3928: checking for wctype in -lw" >&5
3928 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3932 ac_save_LIBS
="$LIBS"
3934 cat > conftest.
$ac_ext <<EOF
3935 #line 3936 "configure"
3936 #include "confdefs.h"
3937 /* Override any gcc2 internal prototype to avoid an error. */
3938 /* We use char because int might match the return type of a gcc2
3939 builtin and then its argument prototype would still apply. */
3946 if { (eval echo configure
:3947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3948 eval "ac_cv_lib_$ac_lib_var=yes"
3950 echo "configure: failed program was:" >&5
3951 cat conftest.
$ac_ext >&5
3953 eval "ac_cv_lib_$ac_lib_var=no"
3956 LIBS
="$ac_save_LIBS"
3959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3960 echo "$ac_t""yes" 1>&6
3961 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
3962 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3963 cat >> confdefs.h
<<EOF
3964 #define $ac_tr_lib 1
3970 echo "$ac_t""no" 1>&6
3977 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
3978 echo "configure:3979: checking for tgetent in -lncurses" >&5
3979 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
3980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3983 ac_save_LIBS
="$LIBS"
3984 LIBS
="-lncurses $LIBS"
3985 cat > conftest.
$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3988 /* Override any gcc2 internal prototype to avoid an error. */
3989 /* We use char because int might match the return type of a gcc2
3990 builtin and then its argument prototype would still apply. */
3997 if { (eval echo configure
:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3999 eval "ac_cv_lib_$ac_lib_var=yes"
4001 echo "configure: failed program was:" >&5
4002 cat conftest.
$ac_ext >&5
4004 eval "ac_cv_lib_$ac_lib_var=no"
4007 LIBS
="$ac_save_LIBS"
4010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4011 echo "$ac_t""yes" 1>&6
4014 echo "$ac_t""no" 1>&6
4015 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
4016 echo "configure:4017: checking for tgetent in -ltermlib" >&5
4017 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
4018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4019 echo $ac_n "(cached) $ac_c" 1>&6
4021 ac_save_LIBS
="$LIBS"
4022 LIBS
="-ltermlib $LIBS"
4023 cat > conftest.
$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4026 /* Override any gcc2 internal prototype to avoid an error. */
4027 /* We use char because int might match the return type of a gcc2
4028 builtin and then its argument prototype would still apply. */
4035 if { (eval echo configure
:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4037 eval "ac_cv_lib_$ac_lib_var=yes"
4039 echo "configure: failed program was:" >&5
4040 cat conftest.
$ac_ext >&5
4042 eval "ac_cv_lib_$ac_lib_var=no"
4045 LIBS
="$ac_save_LIBS"
4048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4049 echo "$ac_t""yes" 1>&6
4052 echo "$ac_t""no" 1>&6
4053 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
4054 echo "configure:4055: checking for tgetent in -ltermcap" >&5
4055 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
4056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4059 ac_save_LIBS
="$LIBS"
4060 LIBS
="-ltermcap $LIBS"
4061 cat > conftest.
$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4064 /* Override any gcc2 internal prototype to avoid an error. */
4065 /* We use char because int might match the return type of a gcc2
4066 builtin and then its argument prototype would still apply. */
4073 if { (eval echo configure
:4074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4075 eval "ac_cv_lib_$ac_lib_var=yes"
4077 echo "configure: failed program was:" >&5
4078 cat conftest.
$ac_ext >&5
4080 eval "ac_cv_lib_$ac_lib_var=no"
4083 LIBS
="$ac_save_LIBS"
4086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4087 echo "$ac_t""yes" 1>&6
4090 echo "$ac_t""no" 1>&6
4091 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
4092 echo "configure:4093: checking for tgetent in -lcurses" >&5
4093 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
4094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4097 ac_save_LIBS
="$LIBS"
4098 LIBS
="-lcurses $LIBS"
4099 cat > conftest.
$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4102 /* Override any gcc2 internal prototype to avoid an error. */
4103 /* We use char because int might match the return type of a gcc2
4104 builtin and then its argument prototype would still apply. */
4111 if { (eval echo configure
:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4113 eval "ac_cv_lib_$ac_lib_var=yes"
4115 echo "configure: failed program was:" >&5
4116 cat conftest.
$ac_ext >&5
4118 eval "ac_cv_lib_$ac_lib_var=no"
4121 LIBS
="$ac_save_LIBS"
4124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4125 echo "$ac_t""yes" 1>&6
4128 echo "$ac_t""no" 1>&6
4129 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
4130 echo "configure:4131: checking for tgetent in -lterminfo" >&5
4131 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
4132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4135 ac_save_LIBS
="$LIBS"
4136 LIBS
="-lterminfo $LIBS"
4137 cat > conftest.
$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 /* Override any gcc2 internal prototype to avoid an error. */
4141 /* We use char because int might match the return type of a gcc2
4142 builtin and then its argument prototype would still apply. */
4149 if { (eval echo configure
:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4151 eval "ac_cv_lib_$ac_lib_var=yes"
4153 echo "configure: failed program was:" >&5
4154 cat conftest.
$ac_ext >&5
4156 eval "ac_cv_lib_$ac_lib_var=no"
4159 LIBS
="$ac_save_LIBS"
4162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4163 echo "$ac_t""yes" 1>&6
4166 echo "$ac_t""no" 1>&6
4178 if test "x$TERM_LIB" = x
4180 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
4186 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4187 echo "configure:4188: checking for long long support in compiler" >&5
4188 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4191 cat > conftest.
$ac_ext <<EOF
4192 #line 4193 "configure"
4193 #include "confdefs.h"
4197 extern long long foo;
4198 switch (foo & 2) { case 0: return 1; }
4202 if { (eval echo configure
:4203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4204 gdb_cv_c_long_long
=yes
4206 echo "configure: failed program was:" >&5
4207 cat conftest.
$ac_ext >&5
4209 gdb_cv_c_long_long
=no
4214 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4215 if test $gdb_cv_c_long_long = yes; then
4216 cat >> confdefs.h
<<\EOF
4217 #define CC_HAS_LONG_LONG 1
4223 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4224 echo "configure:4225: checking for long long support in printf" >&5
4225 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 if test "$cross_compiling" = yes; then
4229 gdb_cv_printf_has_long_long
=no
4231 cat > conftest.
$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4238 l = (l << 16) + 0x0123;
4239 l = (l << 16) + 0x4567;
4240 l = (l << 16) + 0x89ab;
4241 l = (l << 16) + 0xcdef;
4242 sprintf (buf, "0x%016llx", l);
4243 return (strcmp ("0x0123456789abcdef", buf));
4246 if { (eval echo configure
:4247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4248 gdb_cv_printf_has_long_long
=yes
4250 echo "configure: failed program was:" >&5
4251 cat conftest.
$ac_ext >&5
4253 gdb_cv_printf_has_long_long
=no
4260 if test $gdb_cv_printf_has_long_long = yes; then
4261 cat >> confdefs.h
<<\EOF
4262 #define PRINTF_HAS_LONG_LONG 1
4266 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4269 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4270 echo "configure:4271: checking for long double support in compiler" >&5
4271 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4272 echo $ac_n "(cached) $ac_c" 1>&6
4274 cat > conftest.
$ac_ext <<EOF
4275 #line 4276 "configure"
4276 #include "confdefs.h"
4282 if { (eval echo configure
:4283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4284 ac_cv_c_long_double
=yes
4286 echo "configure: failed program was:" >&5
4287 cat conftest.
$ac_ext >&5
4289 ac_cv_c_long_double
=no
4294 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4295 if test $ac_cv_c_long_double = yes; then
4296 cat >> confdefs.h
<<\EOF
4297 #define HAVE_LONG_DOUBLE 1
4303 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4304 echo "configure:4305: checking for long double support in printf" >&5
4305 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 if test "$cross_compiling" = yes; then
4309 gdb_cv_printf_has_long_double
=no
4311 cat > conftest.
$ac_ext <<EOF
4312 #line 4313 "configure"
4313 #include "confdefs.h"
4317 long double f = 3.141592653;
4318 sprintf (buf, "%Lg", f);
4319 return (strncmp ("3.14159", buf, 7));
4322 if { (eval echo configure
:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4324 gdb_cv_printf_has_long_double
=yes
4326 echo "configure: failed program was:" >&5
4327 cat conftest.
$ac_ext >&5
4329 gdb_cv_printf_has_long_double
=no
4336 if test $gdb_cv_printf_has_long_double = yes; then
4337 cat >> confdefs.h
<<\EOF
4338 #define PRINTF_HAS_LONG_DOUBLE 1
4342 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4345 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4346 echo "configure:4347: checking for long double support in scanf" >&5
4347 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 if test "$cross_compiling" = yes; then
4351 gdb_cv_scanf_has_long_double
=no
4353 cat > conftest.
$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4358 char *buf = "3.141592653";
4360 sscanf (buf, "%Lg", &f);
4361 return !(f > 3.14159 && f < 3.14160);
4364 if { (eval echo configure
:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4366 gdb_cv_scanf_has_long_double
=yes
4368 echo "configure: failed program was:" >&5
4369 cat conftest.
$ac_ext >&5
4371 gdb_cv_scanf_has_long_double
=no
4378 if test $gdb_cv_scanf_has_long_double = yes; then
4379 cat >> confdefs.h
<<\EOF
4380 #define SCANF_HAS_LONG_DOUBLE 1
4384 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4386 for ac_hdr
in unistd.h
4388 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4390 echo "configure:4391: checking for $ac_hdr" >&5
4391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4394 cat > conftest.
$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4399 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4400 { (eval echo configure
:4401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4401 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4402 if test -z "$ac_err"; then
4404 eval "ac_cv_header_$ac_safe=yes"
4407 echo "configure: failed program was:" >&5
4408 cat conftest.
$ac_ext >&5
4410 eval "ac_cv_header_$ac_safe=no"
4414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4415 echo "$ac_t""yes" 1>&6
4416 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4417 cat >> confdefs.h
<<EOF
4418 #define $ac_tr_hdr 1
4422 echo "$ac_t""no" 1>&6
4426 for ac_func
in getpagesize
4428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4429 echo "configure:4430: checking for $ac_func" >&5
4430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4431 echo $ac_n "(cached) $ac_c" 1>&6
4433 cat > conftest.
$ac_ext <<EOF
4434 #line 4435 "configure"
4435 #include "confdefs.h"
4436 /* System header to define __stub macros and hopefully few prototypes,
4437 which can conflict with char $ac_func(); below. */
4439 /* Override any gcc2 internal prototype to avoid an error. */
4440 /* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */
4446 /* The GNU C library defines this for functions which it implements
4447 to always fail with ENOSYS. Some functions are actually named
4448 something starting with __ and the normal name is an alias. */
4449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4457 if { (eval echo configure
:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4459 eval "ac_cv_func_$ac_func=yes"
4461 echo "configure: failed program was:" >&5
4462 cat conftest.
$ac_ext >&5
4464 eval "ac_cv_func_$ac_func=no"
4469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4470 echo "$ac_t""yes" 1>&6
4471 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4472 cat >> confdefs.h
<<EOF
4473 #define $ac_tr_func 1
4477 echo "$ac_t""no" 1>&6
4481 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4482 echo "configure:4483: checking for working mmap" >&5
4483 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 if test "$cross_compiling" = yes; then
4487 ac_cv_func_mmap_fixed_mapped
=no
4489 cat > conftest.
$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4493 /* Thanks to Mike Haertel and Jim Avera for this test.
4494 Here is a matrix of mmap possibilities:
4495 mmap private not fixed
4496 mmap private fixed at somewhere currently unmapped
4497 mmap private fixed at somewhere already mapped
4498 mmap shared not fixed
4499 mmap shared fixed at somewhere currently unmapped
4500 mmap shared fixed at somewhere already mapped
4501 For private mappings, we should verify that changes cannot be read()
4502 back from the file, nor mmap's back from the file at a different
4503 address. (There have been systems where private was not correctly
4504 implemented like the infamous i386 svr4.0, and systems where the
4505 VM page cache was not coherent with the filesystem buffer cache
4506 like early versions of FreeBSD and possibly contemporary NetBSD.)
4507 For shared mappings, we should conversely verify that changes get
4508 propogated back to all the places they're supposed to be.
4510 Grep wants private fixed already mapped.
4511 The main things grep needs to know about mmap are:
4512 * does it exist and is it safe to write into the mmap'd area
4513 * how to use it (BSD variants) */
4514 #include <sys/types.h>
4516 #include <sys/mman.h>
4518 /* This mess was copied from the GNU getpagesize.h. */
4519 #ifndef HAVE_GETPAGESIZE
4520 # ifdef HAVE_UNISTD_H
4521 # include <unistd.h>
4524 /* Assume that all systems that can run configure have sys/param.h. */
4525 # ifndef HAVE_SYS_PARAM_H
4526 # define HAVE_SYS_PARAM_H 1
4529 # ifdef _SC_PAGESIZE
4530 # define getpagesize() sysconf(_SC_PAGESIZE)
4531 # else /* no _SC_PAGESIZE */
4532 # ifdef HAVE_SYS_PARAM_H
4533 # include <sys/param.h>
4534 # ifdef EXEC_PAGESIZE
4535 # define getpagesize() EXEC_PAGESIZE
4536 # else /* no EXEC_PAGESIZE */
4538 # define getpagesize() NBPG * CLSIZE
4541 # endif /* no CLSIZE */
4542 # else /* no NBPG */
4544 # define getpagesize() NBPC
4545 # else /* no NBPC */
4547 # define getpagesize() PAGESIZE
4548 # endif /* PAGESIZE */
4549 # endif /* no NBPC */
4550 # endif /* no NBPG */
4551 # endif /* no EXEC_PAGESIZE */
4552 # else /* no HAVE_SYS_PARAM_H */
4553 # define getpagesize() 8192 /* punt totally */
4554 # endif /* no HAVE_SYS_PARAM_H */
4555 # endif /* no _SC_PAGESIZE */
4557 #endif /* no HAVE_GETPAGESIZE */
4560 extern "C" { void *malloc(unsigned); }
4568 char *data, *data2, *data3;
4572 pagesize = getpagesize();
4575 * First, make a file with some known garbage in it.
4577 data = malloc(pagesize);
4580 for (i = 0; i < pagesize; ++i)
4581 *(data + i) = rand();
4583 fd = creat("conftestmmap", 0600);
4586 if (write(fd, data, pagesize) != pagesize)
4591 * Next, try to mmap the file at a fixed address which
4592 * already has something else allocated at it. If we can,
4593 * also make sure that we see the same garbage.
4595 fd = open("conftestmmap", O_RDWR);
4598 data2 = malloc(2 * pagesize);
4601 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4602 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4603 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4605 for (i = 0; i < pagesize; ++i)
4606 if (*(data + i) != *(data2 + i))
4610 * Finally, make sure that changes to the mapped area
4611 * do not percolate back to the file as seen by read().
4612 * (This is a bug on some variants of i386 svr4.0.)
4614 for (i = 0; i < pagesize; ++i)
4615 *(data2 + i) = *(data2 + i) + 1;
4616 data3 = malloc(pagesize);
4619 if (read(fd, data3, pagesize) != pagesize)
4621 for (i = 0; i < pagesize; ++i)
4622 if (*(data + i) != *(data3 + i))
4625 unlink("conftestmmap");
4630 if { (eval echo configure
:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4632 ac_cv_func_mmap_fixed_mapped
=yes
4634 echo "configure: failed program was:" >&5
4635 cat conftest.
$ac_ext >&5
4637 ac_cv_func_mmap_fixed_mapped
=no
4644 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4645 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4646 cat >> confdefs.h
<<\EOF
4655 if test ${build} = ${host} -a ${host} = ${target} ; then
4658 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
4659 echo "configure:4660: checking for HPUX/OSF thread support" >&5
4660 if test -f /usr
/include
/dce
/cma_config.h
; then
4661 if test "$GCC" = "yes" ; then
4662 echo "$ac_t""yes" 1>&6
4663 cat >> confdefs.h
<<\EOF
4664 #define HAVE_HPUX_THREAD_SUPPORT 1
4667 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
4668 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
4670 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
4673 echo "$ac_t""no" 1>&6
4677 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
4678 echo "configure:4679: checking for Solaris thread debugging library" >&5
4679 if test -f /usr
/lib
/libthread_db.so
.1 ; then
4680 echo "$ac_t""yes" 1>&6
4681 cat >> confdefs.h
<<\EOF
4682 #define HAVE_THREAD_DB_LIB 1
4685 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
4686 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
4687 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4688 echo "configure:4689: checking for dlopen in -ldl" >&5
4689 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4691 echo $ac_n "(cached) $ac_c" 1>&6
4693 ac_save_LIBS
="$LIBS"
4695 cat > conftest.
$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 /* Override any gcc2 internal prototype to avoid an error. */
4699 /* We use char because int might match the return type of a gcc2
4700 builtin and then its argument prototype would still apply. */
4707 if { (eval echo configure
:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4709 eval "ac_cv_lib_$ac_lib_var=yes"
4711 echo "configure: failed program was:" >&5
4712 cat conftest.
$ac_ext >&5
4714 eval "ac_cv_lib_$ac_lib_var=no"
4717 LIBS
="$ac_save_LIBS"
4720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4721 echo "$ac_t""yes" 1>&6
4722 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4723 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4724 cat >> confdefs.h
<<EOF
4725 #define $ac_tr_lib 1
4731 echo "$ac_t""no" 1>&6
4734 if test "$GCC" = "yes" ; then
4735 # The GNU linker requires the -export-dynamic option to make
4736 # all symbols visible in the dynamic symbol table.
4737 hold_ldflags
=$LDFLAGS
4738 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
4739 echo "configure:4740: checking for the ld -export-dynamic flag" >&5
4740 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
4741 cat > conftest.
$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4749 if { (eval echo configure
:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4753 echo "configure: failed program was:" >&5
4754 cat conftest.
$ac_ext >&5
4759 LDFLAGS
=$hold_ldflags
4760 echo "$ac_t""$found" 1>&6
4761 if test $found = yes; then
4762 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
4765 # Sun randomly tweaked the prototypes in <proc_service.h>
4767 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
4768 echo "configure:4769: checking if <proc_service.h> is old" >&5
4769 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4773 cat > conftest.
$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4777 #include <proc_service.h>
4779 (struct ps_prochandle*, psaddr_t, const void*, size_t);
4785 if { (eval echo configure
:4786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4787 gdb_cv_proc_service_is_old
=no
4789 echo "configure: failed program was:" >&5
4790 cat conftest.
$ac_ext >&5
4792 gdb_cv_proc_service_is_old
=yes
4798 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
4799 if test $gdb_cv_proc_service_is_old = yes; then
4800 cat >> confdefs.h
<<\EOF
4801 #define PROC_SERVICE_IS_OLD 1
4806 echo "$ac_t""no" 1>&6
4815 # Check whether --enable-tui or --disable-tui was given.
4816 if test "${enable_tui+set}" = set; then
4817 enableval
="$enable_tui"
4819 case "${enable_tui}" in
4821 "") enable_tui
=yes ;;
4823 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
4829 case ${enable_tui} in
4831 cat >> confdefs.h
<<\EOF
4836 TUI_LIBRARY
=tui
/libtui.a
4846 # Check whether --enable-netrom or --disable-netrom was given.
4847 if test "${enable_netrom+set}" = set; then
4848 enableval
="$enable_netrom"
4849 case "${enableval}" in
4850 yes) enable_netrom
=yes ;;
4851 no
) enable_netrom
=no
;;
4852 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
4857 if test "${enable_netrom}" = "yes"; then
4858 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
4859 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
4862 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4863 if test "${enable_build_warnings+set}" = set; then
4864 enableval
="$enable_build_warnings"
4865 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
4866 case "${enableval}" in
4868 no
) build_warnings
="-w";;
4869 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4870 build_warnings
="${build_warnings} ${t}";;
4871 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4872 build_warnings
="${t} ${build_warnings}";;
4873 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4879 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
4881 WARN_CFLAGS
="${build_warnings}"
4892 # Check whether --with-mmalloc or --without-mmalloc was given.
4893 if test "${with_mmalloc+set}" = set; then
4894 withval
="$with_mmalloc"
4895 case "${withval}" in
4896 yes) want_mmalloc
=true
;;
4897 no
) want_mmalloc
=false
;;
4898 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
4904 if test x
$want_mmalloc = xtrue
; then
4905 cat >> confdefs.h
<<\EOF
4906 #define USE_MMALLOC 1
4909 cat >> confdefs.h
<<\EOF
4910 #define MMCHECK_FORCE 1
4913 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
4914 MMALLOC
='../mmalloc/libmmalloc.a'
4917 # start-sanitize-carp
4918 # The below takes an educated guess at the targets that
4919 # should be built. It is an interum version that provides
4920 # significant backward compatibility.
4922 # Check whether --enable-carp or --disable-carp was given.
4923 if test "${enable_carp+set}" = set; then
4924 enableval
="$enable_carp"
4925 case "${enableval}" in
4926 yes) enable_carp
=yes ;;
4927 no
) enable_carp
=no
;;
4928 *) { echo "configure: error: bad value ${enableval} for carp option" 1>&2; exit 1; } ;;
4934 # Check whether --enable-targets or --disable-targets was given.
4935 if test "${enable_targets+set}" = set; then
4936 enableval
="$enable_targets"
4937 case "${enableval}" in
4938 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
4940 no
) enable_targets
= ;;
4941 *) enable_targets
="$enableval" ;;
4945 # Canonicalize the secondary target names.
4947 if test -n "$enable_targets" ; then
4948 if test "$enable_targets" = all
; then
4951 for targ
in `echo $enable_targets | sed 's/,/ /g'`
4953 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
4954 if test -n "$result" ; then
4955 canon_targets
="$canon_targets $result"
4961 # Convert the target names into GDB [*]-tdep.c names
4963 for targ
in $target $canon_targets
4965 if test "x$targ" = "xall" ; then
4968 t_cpu
=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4969 t_vendor
=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4970 t_os
=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4974 target_vendor=$t_vendor
4976 . ${srcdir}/configure.tgt
4977 echo ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt`
4978 if test -r ${mt} ; then
4979 # This gets confused over .mt files that have multiple -tdep.o
4981 s/^.*[ =]\([^ ]*\)-tdep.o.*/\1/p
4983 selarchs
="$selarchs $tdep"
4988 # We don't do any links based on the target system, just makefile config.
4990 if test x
${all_targets} = xfalse
; then
4992 # Target architecture .o files.
4995 for arch
in $selarchs
4997 archdefs
="$archdefs -DARCH_$arch"
4998 ta
="$ta ${arch}-tdep.o"
5001 dvp
) ta
="$ta mips-tdep.o dvp-tdep.o" ;;
5005 # Weed out duplicate .o files.
5015 # And duplicate -D flags.
5017 for i
in $archdefs ; do
5027 else # all_targets is true
5029 MACHINE_OBS
='$(ALL_MACHINES)'
5032 if test "${enable_carp}" = yes ; then
5036 MACHINE_OBS
="# $MACHINE_OBS"
5041 # start-sanitize-gdbtk
5042 # start-sanitize-ide
5044 # Check whether --enable-ide or --disable-ide was given.
5045 if test "${enable_ide+set}" = set; then
5046 enableval
="$enable_ide"
5050 if test "$enable_ide" = yes; then
5058 # Check whether --with-foundry-libs or --without-foundry-libs was given.
5059 if test "${with_foundry_libs+set}" = set; then
5060 withval
="$with_foundry_libs"
5061 FOUNDRY_LIB_BASE
=${withval}
5067 # This is the Foundry SDK
5069 # These variables are used to determine where the Foundry libs and
5070 # header files are located.
5072 if test "$FOUNDRY_LIB_BASE" != ""; then
5073 LIBGUI
="${FOUNDRY_LIB_BASE}/lib/libgui.a"
5074 GUI_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include"
5075 if test x
$enable_ide = xyes
; then
5076 IDE_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include -DIDE"
5077 IDE_X
="-L${FOUNDRY_LIB_BASE}/lib -lilu-Tk -lilu-c -lilu"
5079 IDE_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include"
5081 LIBIDETCL
="${FOUNDRY_LIB_BASE}/lib/libidetcl.a"
5082 LIBIDE
="${FOUNDRY_LIB_BASE}/lib/libide.a"
5083 IDE_DEPS
="${FOUNDRY_LIB_BASE}/lib/libilu-Tk.a ${FOUNDRY_LIB_BASE}/lib/libilu-c.a ${FOUNDRY_LIB_BASE}/lib/libilu.a"
5086 LIBGUI
="../libgui/src/libgui.a"
5087 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
5088 # start-sanitize-ide
5089 if test x
$enable_ide = xyes
; then
5090 IDE_CFLAGS_X
="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src -DIDE -I${srcdir}/../ilu/runtime/mainloop"
5091 IDE_X
="-L../ilu/runtime/mainloop -lilu-Tk -L../ilu/runtime/c -lilu-c -L../ilu/runtime/kernel -lilu"
5093 IDE_CFLAGS_X
="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src"
5095 LIBIDETCL
="../libidetcl/src/libidetcl.a"
5096 LIBIDE
="../libide/src/libide.a"
5097 IDE_DEPS
="../ilu/runtime/mainloop/libilu-Tk.a ../ilu/runtime/c/libilu-c.a ../ilu/runtime/kernel/libilu.a"
5103 # start-sanitize-ide
5113 # Check whether --enable-gdbtk or --disable-gdbtk was given.
5114 if test "${enable_gdbtk+set}" = set; then
5115 enableval
="$enable_gdbtk"
5116 case "${enableval}" in
5120 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5123 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5131 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
5135 # Default is on for everything but go32 and Cygwin
5146 # In the Cygwin environment, we need some additional flags.
5147 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5148 echo "configure:5149: checking for cygwin" >&5
5149 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5150 echo $ac_n "(cached) $ac_c" 1>&6
5152 cat > conftest.
$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161 egrep "lose" >/dev
/null
2>&1; then
5163 gdb_cv_os_cygwin
=yes
5172 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5179 DLLTOOL
=${DLLTOOL-dlltool}
5180 WINDRES
=${WINDRES-windres}
5184 if test x
$gdb_cv_os_cygwin = xyes
; then
5185 WIN32LIBS
="-luser32"
5186 if test x
$enable_ide = xyes
; then
5187 WIN32LIBS
="$WIN32LIBS -ladvapi32"
5194 if test "${enable_gdbtk}" = "yes"; then
5198 # Ok, lets find the tcl configuration
5199 # First, look for one uninstalled.
5200 # the alternative search directory is invoked by --with-tclconfig
5203 if test x
"${no_tcl}" = x
; then
5204 # we reset no_tcl in case something fails here
5206 # Check whether --with-tclconfig or --without-tclconfig was given.
5207 if test "${with_tclconfig+set}" = set; then
5208 withval
="$with_tclconfig"
5209 with_tclconfig
=${withval}
5212 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
5213 echo "configure:5214: checking for Tcl configuration" >&5
5214 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
5215 echo $ac_n "(cached) $ac_c" 1>&6
5219 # First check to see if --with-tclconfig was specified.
5220 if test x
"${with_tclconfig}" != x
; then
5221 if test -f "${with_tclconfig}/tclConfig.sh" ; then
5222 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
5224 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
5228 # then check for a private Tcl installation
5229 if test x
"${ac_cv_c_tclconfig}" = x
; then
5232 `ls -dr ../tcl[7-9]* 2>/dev/null` \
5234 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
5236 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
5237 if test -f "$i/${configdir}/tclConfig.sh" ; then
5238 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5243 # check in a few common install locations
5244 if test x
"${ac_cv_c_tclconfig}" = x
; then
5245 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5246 if test -f "$i/tclConfig.sh" ; then
5247 ac_cv_c_tclconfig
=`(cd $i; pwd)`
5252 # check in a few other private locations
5253 if test x
"${ac_cv_c_tclconfig}" = x
; then
5256 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
5257 if test -f "$i/${configdir}/tclConfig.sh" ; then
5258 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5266 if test x
"${ac_cv_c_tclconfig}" = x
; then
5267 TCLCONFIG
="# no Tcl configs found"
5268 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
5271 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
5272 echo "$ac_t""found $TCLCONFIG" 1>&6
5276 if test -z "${no_tcl}"; then
5306 # Ok, lets find the tk configuration
5307 # First, look for one uninstalled.
5308 # the alternative search directory is invoked by --with-tkconfig
5311 if test x
"${no_tk}" = x
; then
5312 # we reset no_tk in case something fails here
5314 # Check whether --with-tkconfig or --without-tkconfig was given.
5315 if test "${with_tkconfig+set}" = set; then
5316 withval
="$with_tkconfig"
5317 with_tkconfig
=${withval}
5320 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
5321 echo "configure:5322: checking for Tk configuration" >&5
5322 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
5323 echo $ac_n "(cached) $ac_c" 1>&6
5327 # First check to see if --with-tkconfig was specified.
5328 if test x
"${with_tkconfig}" != x
; then
5329 if test -f "${with_tkconfig}/tkConfig.sh" ; then
5330 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
5332 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
5336 # then check for a private Tk library
5337 if test x
"${ac_cv_c_tkconfig}" = x
; then
5340 `ls -dr ../tk[4-9]* 2>/dev/null` \
5342 `ls -dr ../../tk[4-9]* 2>/dev/null` \
5344 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
5345 if test -f "$i/${configdir}/tkConfig.sh" ; then
5346 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
5351 # check in a few common install locations
5352 if test x
"${ac_cv_c_tkconfig}" = x
; then
5353 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5354 if test -f "$i/tkConfig.sh" ; then
5355 ac_cv_c_tkconfig
=`(cd $i; pwd)`
5360 # check in a few other private locations
5361 if test x
"${ac_cv_c_tkconfig}" = x
; then
5364 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
5365 if test -f "$i/${configdir}/tkConfig.sh" ; then
5366 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
5374 if test x
"${ac_cv_c_tkconfig}" = x
; then
5375 TKCONFIG
="# no Tk configs found"
5376 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
5379 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
5380 echo "$ac_t""found $TKCONFIG" 1>&6
5386 # If $no_tk is nonempty, then we can't do Tk, and there is no
5387 # point to doing Tcl.
5388 if test -z "${no_tk}"; then
5390 if test -f "$TKCONFIG" ; then
5408 # Ok, lets find the tcl source trees so we can use the headers
5409 # Warning: transition of version 9 to 10 will break this algorithm
5410 # because 10 sorts before 9. We also look for just tcl. We have to
5411 # be careful that we don't match stuff like tclX by accident.
5412 # the alternative search directory is involked by --with-tclinclude
5416 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
5417 echo "configure:5418: checking for Tcl private headers. dir=${configdir}" >&5
5418 # Check whether --with-tclinclude or --without-tclinclude was given.
5419 if test "${with_tclinclude+set}" = set; then
5420 withval
="$with_tclinclude"
5421 with_tclinclude
=${withval}
5424 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5428 # first check to see if --with-tclinclude was specified
5429 if test x
"${with_tclinclude}" != x
; then
5430 if test -f ${with_tclinclude}/tclInt.h
; then
5431 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
5432 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
5433 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
5435 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
5439 # next check if it came with Tcl configuration file
5440 if test x
"${ac_cv_c_tclconfig}" = x
; then
5441 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
5442 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
5446 # next check in private source directory
5448 # since ls returns lowest version numbers first, reverse its output
5449 if test x
"${ac_cv_c_tclh}" = x
; then
5452 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
5453 ${srcdir}/..
/..
/tcl \
5454 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
5455 ${srcdir}/..
/..
/..
/tcl \
5456 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
5457 if test -f $i/generic
/tclInt.h
; then
5458 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
5463 # finally check in a few common install locations
5465 # since ls returns lowest version numbers first, reverse its output
5466 if test x
"${ac_cv_c_tclh}" = x
; then
5468 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
5469 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
5470 /usr
/local
/src
/tcl \
5471 /usr
/local
/lib
/tcl \
5472 ${prefix}/include
; do
5473 if test -f $i/generic
/tclInt.h
; then
5474 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
5479 # see if one is installed
5480 if test x
"${ac_cv_c_tclh}" = x
; then
5481 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
5482 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
5483 echo "configure:5484: checking for tclInt.h" >&5
5484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5485 echo $ac_n "(cached) $ac_c" 1>&6
5487 cat > conftest.
$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5492 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5493 { (eval echo configure
:5494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5494 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5495 if test -z "$ac_err"; then
5497 eval "ac_cv_header_$ac_safe=yes"
5500 echo "configure: failed program was:" >&5
5501 cat conftest.
$ac_ext >&5
5503 eval "ac_cv_header_$ac_safe=no"
5507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5508 echo "$ac_t""yes" 1>&6
5509 ac_cv_c_tclh
=installed
5511 echo "$ac_t""no" 1>&6
5519 if test x
"${ac_cv_c_tclh}" = x
; then
5520 TCLHDIR
="# no Tcl private headers found"
5521 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
5523 if test x
"${ac_cv_c_tclh}" != x
; then
5525 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
5526 echo "$ac_t""is installed" 1>&6
5529 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
5530 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
5531 TCLHDIR
="-I${ac_cv_c_tclh}"
5539 # Ok, lets find the tk source trees so we can use the headers
5540 # If the directory (presumably symlink) named "tk" exists, use that one
5541 # in preference to any others. Same logic is used when choosing library
5542 # and again with Tcl. The search order is the best place to look first, then in
5543 # decreasing significance. The loop breaks if the trigger file is found.
5544 # Note the gross little conversion here of srcdir by cd'ing to the found
5545 # directory. This converts the path from a relative to an absolute, so
5546 # recursive cache variables for the path will work right. We check all
5547 # the possible paths in one loop rather than many seperate loops to speed
5549 # the alternative search directory is involked by --with-tkinclude
5552 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
5553 echo "configure:5554: checking for Tk private headers" >&5
5554 # Check whether --with-tkinclude or --without-tkinclude was given.
5555 if test "${with_tkinclude+set}" = set; then
5556 withval
="$with_tkinclude"
5557 with_tkinclude
=${withval}
5560 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5564 # first check to see if --with-tkinclude was specified
5565 if test x
"${with_tkinclude}" != x
; then
5566 if test -f ${with_tkinclude}/tk.h
; then
5567 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
5568 elif test -f ${with_tkinclude}/generic
/tk.h
; then
5569 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
5571 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
5575 # next check if it came with Tk configuration file
5576 if test x
"${ac_cv_c_tkconfig}" = x
; then
5577 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
5578 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
5582 # next check in private source directory
5584 # since ls returns lowest version numbers first, reverse its output
5585 if test x
"${ac_cv_c_tkh}" = x
; then
5588 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
5589 ${srcdir}/..
/..
/tk \
5590 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
5591 ${srcdir}/..
/..
/..
/tk \
5592 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
5593 if test -f $i/generic
/tk.h
; then
5594 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
5599 # finally check in a few common install locations
5601 # since ls returns lowest version numbers first, reverse its output
5602 if test x
"${ac_cv_c_tkh}" = x
; then
5604 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
5605 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
5608 ${prefix}/include
; do
5609 if test -f $i/generic
/tk.h
; then
5610 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
5615 # see if one is installed
5616 if test x
"${ac_cv_c_tkh}" = x
; then
5617 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
5618 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
5619 echo "configure:5620: checking for tk.h" >&5
5620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5623 cat > conftest.
$ac_ext <<EOF
5624 #line 5625 "configure"
5625 #include "confdefs.h"
5628 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5629 { (eval echo configure
:5630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5630 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5631 if test -z "$ac_err"; then
5633 eval "ac_cv_header_$ac_safe=yes"
5636 echo "configure: failed program was:" >&5
5637 cat conftest.
$ac_ext >&5
5639 eval "ac_cv_header_$ac_safe=no"
5643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5644 echo "$ac_t""yes" 1>&6
5645 ac_cv_c_tkh
=installed
5647 echo "$ac_t""no" 1>&6
5655 if test x
"${ac_cv_c_tkh}" != x
; then
5657 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
5658 echo "$ac_t""is installed" 1>&6
5661 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
5662 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
5663 TKHDIR
="-I${ac_cv_c_tkh}"
5666 TKHDIR
="# no Tk directory found"
5667 echo "configure: warning: Can't find Tk private headers" 1>&2
5674 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5675 echo "configure:5676: checking for Itcl private headers. srcdir=${srcdir}" >&5
5676 if test x
"${ac_cv_c_itclh}" = x
; then
5677 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/..
/..
/..
/itcl
; do
5678 if test -f $i/src
/itcl.h
; then
5679 ac_cv_c_itclh
=`(cd $i/src; pwd)`
5684 if test x
"${ac_cv_c_itclh}" = x
; then
5685 ITCLHDIR
="# no Itcl private headers found"
5686 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
5688 if test x
"${ac_cv_c_itclh}" != x
; then
5689 ITCLHDIR
="-I${ac_cv_c_itclh}"
5691 # should always be here
5692 ITCLLIB
="../itcl/src/libitcl.a"
5697 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5698 echo "configure:5699: checking for Tix private headers. srcdir=${srcdir}" >&5
5699 if test x
"${ac_cv_c_tixh}" = x
; then
5700 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
5701 if test -f $i/generic
/tix.h
; then
5702 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
5707 if test x
"${ac_cv_c_tixh}" = x
; then
5708 TIXHDIR
="# no Tix private headers found"
5709 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
5711 if test x
"${ac_cv_c_tixh}" != x
; then
5712 TIXHDIR
="-I${ac_cv_c_tixh}"
5717 # now look for tix library stuff
5719 .
${ac_cv_c_tclconfig}/tclConfig.sh
5722 tixdir
=..
/tix
/win
/tcl8.0
5725 tixdir
=..
/tix
/unix
/tk8.0
5728 if test "${TCL_SHARED_BUILD}" = "1"; then
5729 TIX_LIB_EXT
="${TCL_SHLIB_SUFFIX}"
5731 # Can't win them all: SunOS 4 (others?) appends a version
5732 # number after the ".so"
5735 TIX_LIB_EXT
="${TIX_LIB_EXT}.1.0" ;;
5742 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
5743 TIXLIB
="-L${tixdir} -ltix${TIXVERSION}"
5744 TIX_DEPS
="${tixdir}/libtix${TIXVERSION}${TIX_LIB_EXT}"
5746 TIXLIB
="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
5747 TIX_DEPS
="${tixdir}/libtix`echo ${TIXVERSION} | tr -d .`${TIX_LIB_EXT}"
5751 ENABLE_CFLAGS
="${ENABLE_CFLAGS} -DGDBTK"
5753 # Include some libraries that Tcl and Tk want.
5754 if test "${enable_ide}" = "yes"; then
5755 TCL_LIBS
='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
5756 CONFIG_DEPS
='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
5758 TCL_LIBS
='$(LIBGUI) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
5759 CONFIG_DEPS
='$(LIBGUI) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
5761 # Yes, the ordering seems wrong here. But it isn't.
5762 # TK_LIBS is the list of libraries that need to be linked
5763 # after Tcl/Tk. Note that this isn't put into LIBS. If it
5764 # were in LIBS then any link tests after this point would
5765 # try to include things like `$(LIBGUI)', which wouldn't work.
5766 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
5767 CONFIG_OBS
="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o"
5769 if test x
$gdb_cv_os_cygwin = xyes
; then
5770 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
5771 WIN32LDAPP
="-Wl,--subsystem,console"
5772 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
5785 # end-sanitize-gdbtk
5787 # If we find X, set shell vars x_includes and x_libraries to the
5788 # paths, otherwise set no_x=yes.
5789 # Uses ac_ vars as temps to allow command line to override cache and checks.
5790 # --without-x overrides everything else, but does not touch the cache.
5791 echo $ac_n "checking for X""... $ac_c" 1>&6
5792 echo "configure:5793: checking for X" >&5
5794 # Check whether --with-x or --without-x was given.
5795 if test "${with_x+set}" = set; then
5800 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5801 if test "x$with_x" = xno
; then
5802 # The user explicitly disabled X.
5805 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5806 # Both variables are already set.
5809 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5810 echo $ac_n "(cached) $ac_c" 1>&6
5812 # One or both of the vars are not set, and there is no cached value.
5813 ac_x_includes
=NO ac_x_libraries
=NO
5815 if mkdir conftestdir
; then
5817 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5818 cat > Imakefile
<<'EOF'
5820 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5822 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5823 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5824 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5825 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5826 for ac_extension
in a so sl
; do
5827 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5828 test -f $ac_im_libdir/libX11.
$ac_extension; then
5829 ac_im_usrlibdir
=$ac_im_libdir; break
5832 # Screen out bogus values from the imake configuration. They are
5833 # bogus both because they are the default anyway, and because
5834 # using them would break gcc on systems where it needs fixed includes.
5835 case "$ac_im_incroot" in
5837 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
5839 case "$ac_im_usrlibdir" in
5841 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
5848 if test "$ac_x_includes" = NO
; then
5849 # Guess where to find include files, by looking for this one X11 .h file.
5850 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
5852 # First, try using that file with no special directory specified.
5853 cat > conftest.
$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5856 #include <$x_direct_test_include>
5858 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5859 { (eval echo configure
:5860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5860 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5861 if test -z "$ac_err"; then
5863 # We can compile using X headers with no special include directory.
5867 echo "configure: failed program was:" >&5
5868 cat conftest.
$ac_ext >&5
5870 # Look for the header file in a standard set of common directories.
5871 # Check X11 before X11Rn because it is often a symlink to the current release.
5874 /usr
/X11R
6/include \
5875 /usr
/X11R
5/include \
5876 /usr
/X11R
4/include \
5879 /usr
/include
/X11R6 \
5880 /usr
/include
/X11R5 \
5881 /usr
/include
/X11R4 \
5883 /usr
/local
/X11
/include \
5884 /usr
/local
/X11R
6/include \
5885 /usr
/local
/X11R
5/include \
5886 /usr
/local
/X11R
4/include \
5888 /usr
/local
/include
/X11 \
5889 /usr
/local
/include
/X11R6 \
5890 /usr
/local
/include
/X11R5 \
5891 /usr
/local
/include
/X11R4 \
5895 /usr
/XFree86
/include
/X11 \
5898 /usr
/local
/include \
5899 /usr
/unsupported
/include \
5900 /usr
/athena
/include \
5901 /usr
/local
/x11r
5/include \
5902 /usr
/lpp
/Xamples
/include \
5904 /usr
/openwin
/include \
5905 /usr
/openwin
/share
/include \
5908 if test -r "$ac_dir/$x_direct_test_include"; then
5909 ac_x_includes
=$ac_dir
5915 fi # $ac_x_includes = NO
5917 if test "$ac_x_libraries" = NO
; then
5918 # Check for the libraries.
5920 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
5921 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
5923 # See if we find them without any special options.
5924 # Don't add to $LIBS permanently.
5925 ac_save_LIBS
="$LIBS"
5926 LIBS
="-l$x_direct_test_library $LIBS"
5927 cat > conftest.
$ac_ext <<EOF
5928 #line 5929 "configure"
5929 #include "confdefs.h"
5932 ${x_direct_test_function}()
5935 if { (eval echo configure
:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5937 LIBS
="$ac_save_LIBS"
5938 # We can link X programs with no special library path.
5941 echo "configure: failed program was:" >&5
5942 cat conftest.
$ac_ext >&5
5944 LIBS
="$ac_save_LIBS"
5945 # First see if replacing the include by lib works.
5946 # Check X11 before X11Rn because it is often a symlink to the current release.
5947 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
5958 /usr
/local
/X11
/lib \
5959 /usr
/local
/X11R
6/lib \
5960 /usr
/local
/X11R
5/lib \
5961 /usr
/local
/X11R
4/lib \
5963 /usr
/local
/lib
/X11 \
5964 /usr
/local
/lib
/X11R6 \
5965 /usr
/local
/lib
/X11R5 \
5966 /usr
/local
/lib
/X11R4 \
5970 /usr
/XFree86
/lib
/X11 \
5974 /usr
/unsupported
/lib \
5976 /usr
/local
/x11r
5/lib \
5977 /usr
/lpp
/Xamples
/lib \
5981 /usr
/openwin
/share
/lib \
5984 for ac_extension
in a so sl
; do
5985 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
5986 ac_x_libraries
=$ac_dir
5993 fi # $ac_x_libraries = NO
5995 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
5996 # Didn't find X anywhere. Cache the known absence of X.
5997 ac_cv_have_x
="have_x=no"
5999 # Record where we found X for the cache.
6000 ac_cv_have_x
="have_x=yes \
6001 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6005 eval "$ac_cv_have_x"
6008 if test "$have_x" != yes; then
6009 echo "$ac_t""$have_x" 1>&6
6012 # If each of the values was on the command line, it overrides each guess.
6013 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6014 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6015 # Update the cache value to reflect the command line values.
6016 ac_cv_have_x
="have_x=yes \
6017 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6018 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6021 # start-sanitize-sky
6022 # Enable GPU2 library for MIPS simulator
6023 # Check whether --with-sim-gpu2 or --without-sim-gpu2 was given.
6024 if test "${with_sim_gpu2+set}" = set; then
6025 withval
="$with_sim_gpu2"
6028 if test -d "${withval}"
6030 if test x
${x_libraries} != x
6032 LIBS
="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext -lm"
6034 LIBS
="${LIBS} -L${withval}/lib -lgpu2 -lX11 -lXext -lm"
6037 echo "configure: warning: Directory ${withval} does not exist." 1>&2
6039 *) echo "configure: warning: --with-sim-gpu2 option invalid for target ${target}" 1>&2
6043 # Enable target accurate FP library
6044 # Check whether --with-sim-funit or --without-sim-funit was given.
6045 if test "${with_sim_funit+set}" = set; then
6046 withval
="$with_sim_funit"
6049 if test -d "${withval}"
6051 LIBS
="${LIBS} -L${withval}/lib -lfunit"
6053 echo "configure: warning: Directory ${withval} does not exist." 1>&2
6055 *) echo "configure: warning: --with-sim-funit option invalid for target ${target}" 1>&2
6066 # Begin stuff to support --enable-shared
6067 # Check whether --enable-shared or --disable-shared was given.
6068 if test "${enable_shared+set}" = set; then
6069 enableval
="$enable_shared"
6070 case "${enableval}" in
6079 # If we have shared libraries, try to set rpath reasonably.
6080 if test "${shared}" = "true"; then
6083 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
6085 *-*-irix5* |
*-*-irix6*)
6086 HLDFLAGS
='-Wl,-rpath,$(libdir)'
6090 *-*-linux* |
*-pc-linux-gnu)
6091 HLDFLAGS
='-Wl,-rpath,$(libdir)'
6094 HLDFLAGS
='-R $(libdir)'
6097 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;'
6102 # On SunOS, if the linker supports the -rpath option, use it to
6103 # prevent ../bfd and ../opcodes from being included in the run time
6107 echo 'main () { }' > conftest.c
6108 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
6109 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
6111 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
6113 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
6115 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
6117 elif test "${shared}" = "true"; then
6118 HLDFLAGS
='-Wl,-rpath=$(libdir)'
6120 HLDFLAGS
='-Wl,-rpath='
6122 rm -f conftest.t conftest.c conftest
6127 # End stuff to support --enable-shared
6129 # target_subdir is used by the testsuite to find the target libraries.
6131 if test "${host}" != "${target}"; then
6132 target_subdir
="${target_alias}/"
6137 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
6138 if test ! -f ${host_makefile_frag}; then
6139 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
6141 frags
="$frags $host_makefile_frag"
6143 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
6144 if test ! -f ${target_makefile_frag}; then
6145 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
6147 frags
="$frags $target_makefile_frag"
6154 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6155 ' ${host_makefile_frag}`
6157 targetfile
=`sed -n '
6158 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6159 ' ${target_makefile_frag}`
6161 # these really aren't orthogonal true/false values of the same condition,
6162 # but shells are slow enough that I like to reuse the test conditions
6164 if test "${target}" = "${host}"; then
6165 nativefile
=`sed -n '
6166 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
6167 ' ${host_makefile_frag}`
6169 # GDBserver is only useful in a "native" enviroment
6170 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
6174 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
6175 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
6176 # corresponding links. But we have to remove the xm.h files and tm.h
6177 # files anyway, e.g. when switching from "configure host" to
6183 if test "${hostfile}" != ""; then
6184 files
="${files} config/${gdb_host_cpu}/${hostfile}"
6185 links
="${links} xm.h"
6188 if test "${targetfile}" != ""; then
6189 files
="${files} config/${gdb_target_cpu}/${targetfile}"
6190 links
="${links} tm.h"
6193 if test "${nativefile}" != ""; then
6194 files
="${files} config/${gdb_host_cpu}/${nativefile}"
6195 links
="${links} nm.h"
6197 # A cross-only configuration.
6198 files
="${files} config/nm-empty.h"
6199 links
="${links} nm.h"
6201 # start-sanitize-gdbtk
6202 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6203 echo "configure:6204: checking whether ln -s works" >&5
6204 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6208 if ln -s X conftestdata
2>/dev
/null
6211 ac_cv_prog_LN_S
="ln -s"
6216 LN_S
="$ac_cv_prog_LN_S"
6217 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6218 echo "$ac_t""yes" 1>&6
6220 echo "$ac_t""no" 1>&6
6223 # Make it possible to use the GUI without doing a full install
6224 if test "${enable_gdbtk}" = "yes" -a ! -d gdbtcl2
; then
6225 if test "$LN_S" = "ln -s" -a ! -f gdbtcl2
; then
6226 echo linking
$srcdir/gdbtcl2 to gdbtcl2
6227 $LN_S $srcdir/gdbtcl2 gdbtcl2
6229 echo Warning
: Unable to link
$srcdir/gdbtcl2 to gdbtcl2. You will need to
do a
6230 echo " " make install before you are able to run the GUI.
6233 # end-sanitize-gdbtk
6237 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
6238 echo "configure:6239: checking for Cygwin environment" >&5
6239 if eval "test \"`echo '$''{'am_cv_cygwin'+set}'`\" = set"; then
6240 echo $ac_n "(cached) $ac_c" 1>&6
6242 cat > conftest.
$ac_ext <<EOF
6243 #line 6244 "configure"
6244 #include "confdefs.h"
6247 return __CYGWIN32__;
6250 if { (eval echo configure
:6251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6254 echo "configure: failed program was:" >&5
6255 cat conftest.
$ac_ext >&5
6263 echo "$ac_t""$am_cv_cygwin" 1>&6
6265 test "$am_cv_cygwin" = yes && CYGWIN
=yes
6266 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
6267 echo "configure:6268: checking for Mingw32 environment" >&5
6268 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
6269 echo $ac_n "(cached) $ac_c" 1>&6
6271 cat > conftest.
$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6279 if { (eval echo configure
:6280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6283 echo "configure: failed program was:" >&5
6284 cat conftest.
$ac_ext >&5
6292 echo "$ac_t""$am_cv_mingw32" 1>&6
6294 test "$am_cv_mingw32" = yes && MINGW32
=yes
6297 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
6298 echo "configure:6299: checking for executable suffix" >&5
6299 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6302 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
6305 cat > am_c_test.c
<< 'EOF'
6307 /* Nothing needed here
*/
6310 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
6312 for file in am_c_test.
*; do
6316 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
6322 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
6325 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
6326 echo "$ac_t""${am_cv_exeext}" 1>&6
6329 subdirs
="$configdirs"
6332 cat > confcache
<<\EOF
6333 # This file is a shell script that caches the results of configure
6334 # tests run on this system so they can be shared between configure
6335 # scripts and configure runs. It is not useful on other systems.
6336 # If it contains results you don't want to keep, you may remove or edit it.
6338 # By default, configure uses ./config.cache as the cache file,
6339 # creating it if it does not exist already. You can give configure
6340 # the --cache-file=FILE option to use a different cache file; that is
6341 # what configure does when it calls configure scripts in
6342 # subdirectories, so they share the cache.
6343 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6344 # config.status only pays attention to the cache file if you give it the
6345 # --recheck option to rerun configure.
6348 # The following way of writing the cache mishandles newlines in values,
6349 # but we know of no workaround that is simple, portable, and efficient.
6350 # So, don't put newlines in cache variables' values.
6351 # Ultrix sh set writes to stderr and can't be redirected directly,
6352 # and sets the high bit in the cache file unless we assign to the vars.
6354 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
6356 # `set' does not quote correctly, so add quotes (double-quote substitution
6357 # turns \\\\ into \\, and sed turns \\ into \).
6359 -e "s/'/'\\\\''/g" \
6360 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6363 # `set' quotes correctly as required by POSIX, so do not add quotes.
6364 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6367 if cmp -s $cache_file confcache
; then
6370 if test -w $cache_file; then
6371 echo "updating cache $cache_file"
6372 cat confcache
> $cache_file
6374 echo "not updating unwritable cache $cache_file"
6379 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6381 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6382 # Let make expand exec_prefix.
6383 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6385 # Any assignment to VPATH causes Sun make to only execute
6386 # the first set of double-colon rules, so remove it if not needed.
6387 # If there is a colon in the path, we need to keep it.
6388 if test "x$srcdir" = x.
; then
6389 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6392 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6394 DEFS
=-DHAVE_CONFIG_H
6396 # Without the "./", some shells look in PATH for config.status.
6397 : ${CONFIG_STATUS=./config.status}
6399 echo creating
$CONFIG_STATUS
6400 rm -f $CONFIG_STATUS
6401 cat > $CONFIG_STATUS <<EOF
6403 # Generated automatically by configure.
6404 # Run this file to recreate the current configuration.
6405 # This directory was configured as follows,
6406 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6408 # $0 $ac_configure_args
6410 # Compiler output produced by configure, useful for debugging
6411 # configure, is in ./config.log if it exists.
6413 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6416 case "\$ac_option" in
6417 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6418 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6419 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6420 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6421 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
6423 -help | --help | --hel | --he | --h)
6424 echo "\$ac_cs_usage"; exit 0 ;;
6425 *) echo "\$ac_cs_usage"; exit 1 ;;
6429 ac_given_srcdir=$srcdir
6430 ac_given_INSTALL="$INSTALL"
6432 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6434 cat >> $CONFIG_STATUS <<EOF
6436 # Protect against being on the right side of a sed subst in config.status.
6437 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6438 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6442 s%@CFLAGS@%$CFLAGS%g
6443 s%@CPPFLAGS@%$CPPFLAGS%g
6444 s%@CXXFLAGS@%$CXXFLAGS%g
6446 s%@LDFLAGS@%$LDFLAGS%g
6448 s%@exec_prefix@%$exec_prefix%g
6449 s%@prefix@%$prefix%g
6450 s%@program_transform_name@%$program_transform_name%g
6451 s%@bindir@%$bindir%g
6452 s%@sbindir@%$sbindir%g
6453 s%@libexecdir@%$libexecdir%g
6454 s%@datadir@%$datadir%g
6455 s%@sysconfdir@%$sysconfdir%g
6456 s%@sharedstatedir@%$sharedstatedir%g
6457 s%@localstatedir@%$localstatedir%g
6458 s%@libdir@%$libdir%g
6459 s%@includedir@%$includedir%g
6460 s%@oldincludedir@%$oldincludedir%g
6461 s%@infodir@%$infodir%g
6462 s%@mandir@%$mandir%g
6466 s%@host_alias@%$host_alias%g
6467 s%@host_cpu@%$host_cpu%g
6468 s%@host_vendor@%$host_vendor%g
6469 s%@host_os@%$host_os%g
6470 s%@target@%$target%g
6471 s%@target_alias@%$target_alias%g
6472 s%@target_cpu@%$target_cpu%g
6473 s%@target_vendor@%$target_vendor%g
6474 s%@target_os@%$target_os%g
6476 s%@build_alias@%$build_alias%g
6477 s%@build_cpu@%$build_cpu%g
6478 s%@build_vendor@%$build_vendor%g
6479 s%@build_os@%$build_os%g
6480 s%@SET_MAKE@%$SET_MAKE%g
6481 s%@RANLIB@%$RANLIB%g
6482 s%@ALLOCA@%$ALLOCA%g
6483 s%@USE_NLS@%$USE_NLS%g
6484 s%@MSGFMT@%$MSGFMT%g
6485 s%@GMSGFMT@%$GMSGFMT%g
6486 s%@XGETTEXT@%$XGETTEXT%g
6487 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6488 s%@CATALOGS@%$CATALOGS%g
6489 s%@CATOBJEXT@%$CATOBJEXT%g
6490 s%@DATADIRNAME@%$DATADIRNAME%g
6491 s%@GMOFILES@%$GMOFILES%g
6492 s%@INSTOBJEXT@%$INSTOBJEXT%g
6493 s%@INTLDEPS@%$INTLDEPS%g
6494 s%@INTLLIBS@%$INTLLIBS%g
6495 s%@INTLOBJS@%$INTLOBJS%g
6496 s%@POFILES@%$POFILES%g
6498 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6500 s%@GT_YES@%$GT_YES%g
6501 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6503 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6504 s%@INSTALL_DATA@%$INSTALL_DATA%g
6507 s%@TERM_LIB@%$TERM_LIB%g
6508 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
6509 s%@BUILD_TUI@%$BUILD_TUI%g
6510 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
6511 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6512 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
6513 s%@MMALLOC@%$MMALLOC%g
6514 s%@MACHINE_OBS@%$MACHINE_OBS%g
6515 s%@ENABLE_IDE@%$ENABLE_IDE%g
6516 s%@FOUNDRY_LIB_BASE@%$FOUNDRY_LIB_BASE%g
6517 s%@LIBGUI@%$LIBGUI%g
6518 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
6519 s%@IDE_CFLAGS_X@%$IDE_CFLAGS_X%g
6521 s%@LIBIDETCL@%$LIBIDETCL%g
6522 s%@LIBIDE@%$LIBIDE%g
6523 s%@IDE_DEPS@%$IDE_DEPS%g
6524 s%@WIN32LIBS@%$WIN32LIBS%g
6525 s%@WIN32LDAPP@%$WIN32LDAPP%g
6526 s%@DLLTOOL@%$DLLTOOL%g
6527 s%@WINDRES@%$WINDRES%g
6528 s%@TCL_VERSION@%$TCL_VERSION%g
6529 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
6530 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
6531 s%@TCL_CC@%$TCL_CC%g
6532 s%@TCL_DEFS@%$TCL_DEFS%g
6533 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
6534 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
6535 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
6536 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
6537 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
6538 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
6539 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
6540 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
6541 s%@TCL_RANLIB@%$TCL_RANLIB%g
6542 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
6543 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
6544 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
6545 s%@TK_VERSION@%$TK_VERSION%g
6546 s%@TK_DEFS@%$TK_DEFS%g
6547 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
6548 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
6549 s%@TK_XLIBSW@%$TK_XLIBSW%g
6550 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
6551 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
6552 s%@TCLHDIR@%$TCLHDIR%g
6553 s%@TKHDIR@%$TKHDIR%g
6554 s%@ITCLHDIR@%$ITCLHDIR%g
6555 s%@ITCLLIB@%$ITCLLIB%g
6556 s%@TIXHDIR@%$TIXHDIR%g
6557 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
6558 s%@X_CFLAGS@%$X_CFLAGS%g
6559 s%@X_LDFLAGS@%$X_LDFLAGS%g
6560 s%@X_LIBS@%$X_LIBS%g
6561 s%@TIXLIB@%$TIXLIB%g
6562 s%@TIX_DEPS@%$TIX_DEPS%g
6563 s%@GDBTKLIBS@%$GDBTKLIBS%g
6564 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
6565 s%@CONFIG_OBS@%$CONFIG_OBS%g
6566 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
6567 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
6568 s%@HLDFLAGS@%$HLDFLAGS%g
6569 s%@HLDENV@%$HLDENV%g
6570 s%@target_subdir@%$target_subdir%g
6571 /@host_makefile_frag@/r $host_makefile_frag
6572 s%@host_makefile_frag@%%g
6573 /@target_makefile_frag@/r $target_makefile_frag
6574 s%@target_makefile_frag@%%g
6577 s%@EXEEXT@%$EXEEXT%g
6578 s%@subdirs@%$subdirs%g
6583 cat >> $CONFIG_STATUS <<\EOF
6585 # Split the substitutions into bite-sized pieces for seds with
6586 # small command number limits, like on Digital OSF/1 and HP-UX.
6587 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6588 ac_file
=1 # Number of current file.
6589 ac_beg
=1 # First line for current file.
6590 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6593 while $ac_more_lines; do
6594 if test $ac_beg -gt 1; then
6595 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6597 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6599 if test ! -s conftest.s
$ac_file; then
6601 rm -f conftest.s
$ac_file
6603 if test -z "$ac_sed_cmds"; then
6604 ac_sed_cmds
="sed -f conftest.s$ac_file"
6606 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6608 ac_file
=`expr $ac_file + 1`
6610 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6613 if test -z "$ac_sed_cmds"; then
6618 cat >> $CONFIG_STATUS <<EOF
6620 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
6622 cat >> $CONFIG_STATUS <<\EOF
6623 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6624 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6626 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6627 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6628 *) ac_file_in
="${ac_file}.in" ;;
6631 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6633 # Remove last slash and all that follows it. Not all systems have dirname.
6634 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6635 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6636 # The file is in a subdirectory.
6637 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6638 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6639 # A "../" for each directory in $ac_dir_suffix.
6640 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6642 ac_dir_suffix
= ac_dots
=
6645 case "$ac_given_srcdir" in
6647 if test -z "$ac_dots"; then top_srcdir
=.
6648 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6649 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6651 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6652 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6655 case "$ac_given_INSTALL" in
6656 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6657 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6660 echo creating
"$ac_file"
6662 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6664 *Makefile
*) ac_comsub
="1i\\
6665 # $configure_input" ;;
6669 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6671 s%@configure_input@%$configure_input%g
6672 s%@srcdir@%$srcdir%g
6673 s%@top_srcdir@%$top_srcdir%g
6674 s%@INSTALL@%$INSTALL%g
6675 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6679 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6680 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6682 # ac_d sets the value in "#define NAME VALUE" lines.
6683 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6684 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6687 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6688 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6689 ac_uB
='\([ ]\)%\1#\2define\3'
6692 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6693 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6694 ac_eB
='$%\1#\2define\3'
6698 if test "${CONFIG_HEADERS+set}" != set; then
6700 cat >> $CONFIG_STATUS <<EOF
6701 CONFIG_HEADERS="config.h:config.in"
6703 cat >> $CONFIG_STATUS <<\EOF
6705 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6706 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6708 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6709 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6710 *) ac_file_in
="${ac_file}.in" ;;
6713 echo creating
$ac_file
6715 rm -f conftest.frag conftest.
in conftest.out
6716 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6717 cat $ac_file_inputs > conftest.
in
6721 # Transform confdefs.h into a sed script conftest.vals that substitutes
6722 # the proper values into config.h.in to produce config.h. And first:
6723 # Protect against being on the right side of a sed subst in config.status.
6724 # Protect against being in an unquoted here document in config.status.
6726 cat > conftest.hdr
<<\EOF
6729 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6733 sed -n -f conftest.hdr confdefs.h > conftest.vals
6736 # This sed command replaces #undef with comments. This is necessary, for
6737 # example, in the case of _POSIX_SOURCE, which is predefined and required
6738 # on some systems where configure will not decide to define it.
6739 cat >> conftest.vals <<\EOF
6740 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6743 # Break up conftest.vals because some shells have a limit on
6744 # the size of here documents, and old seds have small limits too.
6749 ac_lines=`grep -c . conftest.vals
`
6750 # grep -c gives empty output for an empty file on some AIX systems.
6751 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6752 # Write a limited-size here document to conftest.frag.
6753 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6754 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6756 sed -f conftest.frag conftest.in > conftest.out
6758 mv conftest.out conftest.in
6760 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6762 mv conftest.tail conftest.vals
6766 cat >> $CONFIG_STATUS <<\EOF
6767 rm -f conftest.frag conftest.h
6768 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6769 cat conftest.in >> conftest.h
6771 if cmp -s $ac_file conftest.h 2>/dev/null; then
6772 echo "$ac_file is unchanged"
6775 # Remove last slash and all that follows it. Not all systems have dirname.
6776 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6777 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6778 # The file is in a subdirectory.
6779 test ! -d "$ac_dir" && mkdir "$ac_dir"
6782 mv conftest.h $ac_file
6788 cat >> $CONFIG_STATUS <<EOF
6793 cat >> $CONFIG_STATUS <<\EOF
6794 srcdir=$ac_given_srcdir
6795 while test -n "$ac_sources"; do
6796 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6797 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6799 echo "linking $srcdir/$ac_source to $ac_dest"
6801 if test ! -r $srcdir/$ac_source; then
6802 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6806 # Make relative symlinks.
6807 # Remove last slash and all that follows it. Not all systems have dirname.
6808 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
6809 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6810 # The dest file is in a subdirectory.
6811 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6812 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
6813 # A "../" for each directory in $ac_dest_dir_suffix.
6814 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
6816 ac_dest_dir_suffix= ac_dots=
6820 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6821 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6824 # Make a symlink if possible; otherwise try a hard link.
6825 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6826 ln $srcdir/$ac_source $ac_dest; then :
6828 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6832 cat >> $CONFIG_STATUS <<EOF
6834 gdb_host_cpu=$gdb_host_cpu
6835 gdb_target_cpu=$gdb_target_cpu
6836 nativefile=$nativefile
6839 cat >> $CONFIG_STATUS <<\EOF
6841 if test "${nativefile}" = ""; then
6842 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
6843 < Makefile > Makefile.tem
6844 mv -f Makefile.tem Makefile
6847 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
6848 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
6849 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
6850 mv -f Makefile.tmp Makefile
6852 case x$CONFIG_HEADERS in
6853 xconfig.h:config.in)
6859 chmod +x $CONFIG_STATUS
6860 rm -fr confdefs* $ac_clean_files
6861 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6863 if test "$no_recursion" != yes; then
6865 # Remove --cache-file and --srcdir arguments so they do not pile up.
6866 ac_sub_configure_args=
6868 for ac_arg in $ac_configure_args; do
6869 if test -n "$ac_prev"; then
6874 -cache-file | --cache-file | --cache-fil | --cache-fi \
6875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6876 ac_prev=cache_file ;;
6877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6880 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6882 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6884 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6888 for ac_config_dir in $configdirs; do
6890 # Do not complain, so a configure script can configure whichever
6891 # parts of a large source tree are present.
6892 if test ! -d $srcdir/$ac_config_dir; then
6896 echo configuring in $ac_config_dir
6901 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6903 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6911 # A "../" for each directory in /$ac_config_dir.
6912 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6915 .) # No --srcdir option. We are building in place.
6916 ac_sub_srcdir=$srcdir ;;
6917 /*) # Absolute path.
6918 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6920 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6923 # Check for guested configure; otherwise get Cygnus style configure.
6924 if test -f $ac_sub_srcdir/configure; then
6925 ac_sub_configure=$ac_sub_srcdir/configure
6926 elif test -f $ac_sub_srcdir/configure.in; then
6927 ac_sub_configure=$ac_configure
6929 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6933 # The recursion is here.
6934 if test -n "$ac_sub_configure"; then
6936 # Make the cache file name correct relative to the subdirectory.
6937 case "$cache_file" in
6938 /*) ac_sub_cache_file=$cache_file ;;
6940 ac_sub_cache_file="$ac_dots$cache_file" ;;
6942 case "$ac_given_INSTALL" in
6943 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6944 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6947 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6948 # The eval makes quoting arguments work.
6949 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6952 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }