3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --disable-nls do not use Native Language Support"
17 --with-included-gettext use the GNU gettext library included here"
19 --enable-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 --with-cpu=CPU Set the default CPU variant to debug"
37 --enable-gdbtk Enable GDBTK GUI front end"
39 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
41 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
43 --with-tclinclude=DIR Directory where tcl private headers are"
45 --with-tkinclude=DIR Directory where tk private headers are"
47 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
49 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
51 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
53 --with-x use the X Window System"
55 --with-sim-gpu2=DIR Use GPU2 library under given DIR"
57 --with-sim-funit=DIR Use target FP lib under given DIR"
59 --enable-sim Link gdb with simulator"
61 --enable-shared Use shared libraries"
63 # Initialize some variables set by options.
64 # The variables have the same names as the options, with
65 # dashes changed to underlines.
67 cache_file
=.
/config.cache
76 program_transform_name
=s
,x
,x
,
84 bindir
='${exec_prefix}/bin'
85 sbindir
='${exec_prefix}/sbin'
86 libexecdir
='${exec_prefix}/libexec'
87 datadir
='${prefix}/share'
88 sysconfdir
='${prefix}/etc'
89 sharedstatedir
='${prefix}/com'
90 localstatedir
='${prefix}/var'
91 libdir
='${exec_prefix}/lib'
92 includedir
='${prefix}/include'
93 oldincludedir
='/usr/include'
94 infodir
='${prefix}/info'
95 mandir
='${prefix}/man'
97 # Initialize some other variables.
100 SHELL
=${CONFIG_SHELL-/bin/sh}
101 # Maximum number of lines to put in a shell here document.
108 # If the previous option needs an argument, assign it.
109 if test -n "$ac_prev"; then
110 eval "$ac_prev=\$ac_option"
116 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120 # Accept the important Cygnus configure options, so we can diagnose typos.
124 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
126 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
127 bindir
="$ac_optarg" ;;
129 -build |
--build |
--buil |
--bui |
--bu)
131 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
132 build
="$ac_optarg" ;;
134 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
135 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
136 ac_prev
=cache_file
;;
137 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
138 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
139 cache_file
="$ac_optarg" ;;
141 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
143 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
145 datadir
="$ac_optarg" ;;
147 -disable-* |
--disable-*)
148 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}=no" ;;
156 -enable-* |
--enable-*)
157 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}='$ac_optarg'" ;;
169 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
170 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
171 |
--exec |
--exe |
--ex)
172 ac_prev
=exec_prefix
;;
173 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
174 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
175 |
--exec=* |
--exe=* |
--ex=*)
176 exec_prefix
="$ac_optarg" ;;
178 -gas |
--gas |
--ga |
--g)
179 # Obsolete; use --with-gas.
182 -help |
--help |
--hel |
--he)
183 # Omit some internal or obsolete options to make the list less imposing.
184 # This message is too long to be a string in the A/UX 3.1 sh.
186 Usage: configure [options] [host]
187 Options: [defaults in brackets after descriptions]
189 --cache-file=FILE cache test results in FILE
190 --help print this message
191 --no-create do not create output files
192 --quiet, --silent do not print \`checking...' messages
193 --version print the version of autoconf that created configure
194 Directory and file names:
195 --prefix=PREFIX install architecture-independent files in PREFIX
197 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
199 --bindir=DIR user executables in DIR [EPREFIX/bin]
200 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
201 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
202 --datadir=DIR read-only architecture-independent data in DIR
204 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
205 --sharedstatedir=DIR modifiable architecture-independent data in DIR
207 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
208 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
209 --includedir=DIR C header files in DIR [PREFIX/include]
210 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
211 --infodir=DIR info documentation in DIR [PREFIX/info]
212 --mandir=DIR man documentation in DIR [PREFIX/man]
213 --srcdir=DIR find the sources in DIR [configure dir or ..]
214 --program-prefix=PREFIX prepend PREFIX to installed program names
215 --program-suffix=SUFFIX append SUFFIX to installed program names
216 --program-transform-name=PROGRAM
217 run sed PROGRAM on installed program names
221 --build=BUILD configure for building on BUILD [BUILD=HOST]
222 --host=HOST configure for HOST [guessed]
223 --target=TARGET configure for TARGET [TARGET=HOST]
224 Features and packages:
225 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
226 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
227 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
228 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
229 --x-includes=DIR X include files are in DIR
230 --x-libraries=DIR X library files are in DIR
232 if test -n "$ac_help"; then
233 echo "--enable and --with options recognized:$ac_help"
237 -host |
--host |
--hos |
--ho)
239 -host=* |
--host=* |
--hos=* |
--ho=*)
242 -includedir |
--includedir |
--includedi |
--included |
--include \
243 |
--includ |
--inclu |
--incl |
--inc)
244 ac_prev
=includedir
;;
245 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
246 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
247 includedir
="$ac_optarg" ;;
249 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
251 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
252 infodir
="$ac_optarg" ;;
254 -libdir |
--libdir |
--libdi |
--libd)
256 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
257 libdir
="$ac_optarg" ;;
259 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
260 |
--libexe |
--libex |
--libe)
261 ac_prev
=libexecdir
;;
262 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
263 |
--libexe=* |
--libex=* |
--libe=*)
264 libexecdir
="$ac_optarg" ;;
266 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
267 |
--localstate |
--localstat |
--localsta |
--localst \
268 |
--locals |
--local |
--loca |
--loc |
--lo)
269 ac_prev
=localstatedir
;;
270 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
271 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
272 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
273 localstatedir
="$ac_optarg" ;;
275 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
277 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
278 mandir
="$ac_optarg" ;;
281 # Obsolete; use --without-fp.
284 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
288 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
289 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
292 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
293 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
294 |
--oldin |
--oldi |
--old |
--ol |
--o)
295 ac_prev
=oldincludedir
;;
296 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
297 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
298 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
299 oldincludedir
="$ac_optarg" ;;
301 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
303 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
304 prefix
="$ac_optarg" ;;
306 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
307 |
--program-pre |
--program-pr |
--program-p)
308 ac_prev
=program_prefix
;;
309 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
310 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
311 program_prefix
="$ac_optarg" ;;
313 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
314 |
--program-suf |
--program-su |
--program-s)
315 ac_prev
=program_suffix
;;
316 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
317 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
318 program_suffix
="$ac_optarg" ;;
320 -program-transform-name |
--program-transform-name \
321 |
--program-transform-nam |
--program-transform-na \
322 |
--program-transform-n |
--program-transform- \
323 |
--program-transform |
--program-transfor \
324 |
--program-transfo |
--program-transf \
325 |
--program-trans |
--program-tran \
326 |
--progr-tra |
--program-tr |
--program-t)
327 ac_prev
=program_transform_name
;;
328 -program-transform-name=* |
--program-transform-name=* \
329 |
--program-transform-nam=* |
--program-transform-na=* \
330 |
--program-transform-n=* |
--program-transform-=* \
331 |
--program-transform=* |
--program-transfor=* \
332 |
--program-transfo=* |
--program-transf=* \
333 |
--program-trans=* |
--program-tran=* \
334 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
335 program_transform_name
="$ac_optarg" ;;
337 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
338 |
-silent |
--silent |
--silen |
--sile |
--sil)
341 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
343 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
345 sbindir
="$ac_optarg" ;;
347 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
348 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
349 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
351 ac_prev
=sharedstatedir
;;
352 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
353 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
354 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
356 sharedstatedir
="$ac_optarg" ;;
358 -site |
--site |
--sit)
360 -site=* |
--site=* |
--sit=*)
363 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
365 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
366 srcdir
="$ac_optarg" ;;
368 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
369 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
370 ac_prev
=sysconfdir
;;
371 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
372 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
373 sysconfdir
="$ac_optarg" ;;
375 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
377 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
378 target
="$ac_optarg" ;;
380 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
383 -version |
--version |
--versio |
--versi |
--vers)
384 echo "configure generated by autoconf version 2.13"
388 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
389 # Reject names that are not valid shell variable names.
390 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
391 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393 ac_package
=`echo $ac_package| sed 's/-/_/g'`
398 eval "with_${ac_package}='$ac_optarg'" ;;
400 -without-* |
--without-*)
401 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package
=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}=no" ;;
410 # Obsolete; use --with-x.
413 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
414 |
--x-incl |
--x-inc |
--x-in |
--x-i)
415 ac_prev
=x_includes
;;
416 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
417 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
418 x_includes
="$ac_optarg" ;;
420 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
421 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
422 ac_prev
=x_libraries
;;
423 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
424 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
425 x_libraries
="$ac_optarg" ;;
427 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
432 echo "configure: warning: $ac_option: invalid host type" 1>&2
434 if test "x$nonopt" != xNONE
; then
435 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 if test -n "$ac_prev"; then
444 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
449 # File descriptor usage:
452 # 2 errors and warnings
453 # 3 some systems may open it to /dev/tty
454 # 4 used on the Kubota Titan
455 # 6 checking for... messages and results
456 # 5 compiler messages saved in config.log
457 if test "$silent" = yes; then
465 This file contains any messages produced by compilers while
466 running configure, to aid debugging if configure makes a mistake.
469 # Strip out --no-create and --no-recursion so they do not pile up.
470 # Also quote any args containing shell metacharacters.
475 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
476 |
--no-cr |
--no-c) ;;
477 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
478 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
479 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
480 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
481 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
486 # Only set these to C if already set. These must not be set unconditionally
487 # because not all systems understand e.g. LANG=C (notably SCO).
488 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
489 # Non-C LC_CTYPE values break the ctype check.
490 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
491 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
492 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
493 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
496 rm -rf conftest
* confdefs.h
497 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
500 # A filename unique to this package, relative to the directory that
501 # configure is in, which we can look for to find out if srcdir is correct.
502 ac_unique_file
=main.c
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted
=yes
507 # Try the directory containing this script, then its parent.
509 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
512 if test ! -r $srcdir/$ac_unique_file; then
516 ac_srcdir_defaulted
=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
527 # Prefer explicitly selected file to automatically selected ones.
528 if test -z "$CONFIG_SITE"; then
529 if test "x$prefix" != xNONE
; then
530 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
532 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535 for ac_site_file
in $CONFIG_SITE; do
536 if test -r "$ac_site_file"; then
537 echo "loading site script $ac_site_file"
542 if test -r "$cache_file"; then
543 echo "loading cache $cache_file"
546 echo "creating cache $cache_file"
551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
552 ac_cpp
='$CPP $CPPFLAGS'
553 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
554 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
555 cross_compiling
=$ac_cv_prog_cc_cross
559 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
560 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
561 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
568 ac_n
= ac_c
='\c' ac_t
=
574 # Extract the first word of "gcc", so it can be a program name with args.
575 set dummy gcc
; ac_word
=$2
576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
577 echo "configure:578: checking for $ac_word" >&5
578 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
579 echo $ac_n "(cached) $ac_c" 1>&6
581 if test -n "$CC"; then
582 ac_cv_prog_CC
="$CC" # Let the user override the test.
584 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
586 for ac_dir
in $ac_dummy; do
587 test -z "$ac_dir" && ac_dir
=.
588 if test -f $ac_dir/$ac_word; then
597 if test -n "$CC"; then
598 echo "$ac_t""$CC" 1>&6
600 echo "$ac_t""no" 1>&6
603 if test -z "$CC"; then
604 # Extract the first word of "cc", so it can be a program name with args.
605 set dummy cc
; ac_word
=$2
606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
607 echo "configure:608: checking for $ac_word" >&5
608 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
609 echo $ac_n "(cached) $ac_c" 1>&6
611 if test -n "$CC"; then
612 ac_cv_prog_CC
="$CC" # Let the user override the test.
614 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
617 for ac_dir
in $ac_dummy; do
618 test -z "$ac_dir" && ac_dir
=.
619 if test -f $ac_dir/$ac_word; then
620 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
629 if test $ac_prog_rejected = yes; then
630 # We found a bogon in the path, so make sure we never use it.
631 set dummy
$ac_cv_prog_CC
633 if test $# -gt 0; then
634 # We chose a different compiler from the bogus one.
635 # However, it has the same basename, so the bogon will be chosen
636 # first if we set CC to just the basename; use the full file name.
638 set dummy
"$ac_dir/$ac_word" "$@"
646 if test -n "$CC"; then
647 echo "$ac_t""$CC" 1>&6
649 echo "$ac_t""no" 1>&6
652 if test -z "$CC"; then
655 # Extract the first word of "cl", so it can be a program name with args.
656 set dummy cl
; ac_word
=$2
657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658 echo "configure:659: checking for $ac_word" >&5
659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 if test -n "$CC"; then
663 ac_cv_prog_CC
="$CC" # Let the user override the test.
665 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
667 for ac_dir
in $ac_dummy; do
668 test -z "$ac_dir" && ac_dir
=.
669 if test -f $ac_dir/$ac_word; then
678 if test -n "$CC"; then
679 echo "$ac_t""$CC" 1>&6
681 echo "$ac_t""no" 1>&6
686 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
689 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
690 echo "configure:691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
694 ac_cpp
='$CPP $CPPFLAGS'
695 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
696 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
697 cross_compiling
=$ac_cv_prog_cc_cross
699 cat > conftest.
$ac_ext << EOF
701 #line 702 "configure"
702 #include "confdefs.h"
706 if { (eval echo configure
:707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
707 ac_cv_prog_cc_works
=yes
708 # If we can't run a trivial program, we are probably using a cross compiler.
709 if (.
/conftest
; exit) 2>/dev
/null
; then
710 ac_cv_prog_cc_cross
=no
712 ac_cv_prog_cc_cross
=yes
715 echo "configure: failed program was:" >&5
716 cat conftest.
$ac_ext >&5
717 ac_cv_prog_cc_works
=no
721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
722 ac_cpp
='$CPP $CPPFLAGS'
723 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
724 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
725 cross_compiling
=$ac_cv_prog_cc_cross
727 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
728 if test $ac_cv_prog_cc_works = no
; then
729 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
731 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
732 echo "configure:733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
733 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
734 cross_compiling
=$ac_cv_prog_cc_cross
736 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
737 echo "configure:738: checking whether we are using GNU C" >&5
738 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&6
741 cat > conftest.c
<<EOF
746 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
753 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
755 if test $ac_cv_prog_gcc = yes; then
761 ac_test_CFLAGS
="${CFLAGS+set}"
762 ac_save_CFLAGS
="$CFLAGS"
764 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
765 echo "configure:766: checking whether ${CC-cc} accepts -g" >&5
766 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
769 echo 'void f(){}' > conftest.c
770 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
779 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
780 if test "$ac_test_CFLAGS" = set; then
781 CFLAGS
="$ac_save_CFLAGS"
782 elif test $ac_cv_prog_cc_g = yes; then
783 if test "$GCC" = yes; then
789 if test "$GCC" = yes; then
796 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
797 echo "configure:798: checking how to run the C preprocessor" >&5
798 # On Suns, sometimes $CPP names a directory.
799 if test -n "$CPP" && test -d "$CPP"; then
802 if test -z "$CPP"; then
803 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 # This must be in double quotes, not single quotes, because CPP may get
807 # substituted into the Makefile and "${CC-cc}" will confuse make.
809 # On the NeXT, cc -E runs the code through the compiler's parser,
810 # not just through cpp.
811 cat > conftest.
$ac_ext <<EOF
812 #line 813 "configure"
813 #include "confdefs.h"
817 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
818 { (eval echo configure
:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
819 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
820 if test -z "$ac_err"; then
824 echo "configure: failed program was:" >&5
825 cat conftest.
$ac_ext >&5
827 CPP
="${CC-cc} -E -traditional-cpp"
828 cat > conftest.
$ac_ext <<EOF
829 #line 830 "configure"
830 #include "confdefs.h"
834 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
835 { (eval echo configure
:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
836 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
837 if test -z "$ac_err"; then
841 echo "configure: failed program was:" >&5
842 cat conftest.
$ac_ext >&5
844 CPP
="${CC-cc} -nologo -E"
845 cat > conftest.
$ac_ext <<EOF
846 #line 847 "configure"
847 #include "confdefs.h"
851 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
852 { (eval echo configure
:853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
853 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
854 if test -z "$ac_err"; then
858 echo "configure: failed program was:" >&5
859 cat conftest.
$ac_ext >&5
868 ac_cv_prog_CPP
="$CPP"
870 CPP
="$ac_cv_prog_CPP"
872 ac_cv_prog_CPP
="$CPP"
874 echo "$ac_t""$CPP" 1>&6
876 echo $ac_n "checking for AIX""... $ac_c" 1>&6
877 echo "configure:878: checking for AIX" >&5
878 cat > conftest.
$ac_ext <<EOF
879 #line 880 "configure"
880 #include "confdefs.h"
886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
887 egrep "yes" >/dev
/null
2>&1; then
889 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
890 #define _ALL_SOURCE 1
895 echo "$ac_t""no" 1>&6
900 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
901 echo "configure:902: checking for POSIXized ISC" >&5
902 if test -d /etc
/conf
/kconfig.d
&&
903 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
905 echo "$ac_t""yes" 1>&6
906 ISC
=yes # If later tests want to check for ISC.
907 cat >> confdefs.h
<<\EOF
908 #define _POSIX_SOURCE 1
911 if test "$GCC" = yes; then
917 echo "$ac_t""no" 1>&6
924 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
925 echo "configure:926: checking for ${CC-cc} option to accept ANSI C" >&5
926 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
929 am_cv_prog_cc_stdc
=no
931 # Don't try gcc -ansi; that turns off useful extensions and
932 # breaks some systems' header files.
934 # Ultrix and OSF/1 -std1
935 # HP-UX -Aa -D_HPUX_SOURCE
936 # SVR4 -Xc -D__EXTENSIONS__
937 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
939 CC
="$ac_save_CC $ac_arg"
940 cat > conftest.
$ac_ext <<EOF
941 #line 942 "configure"
942 #include "confdefs.h"
945 #include <sys/types.h>
946 #include <sys/stat.h>
947 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
948 struct buf { int x; };
949 FILE * (*rcsopen) (struct buf *, struct stat *, int);
950 static char *e (p, i)
956 static char *f (char * (*g) (char **, int), char **p, ...)
961 s = g (p, va_arg (v,int));
965 int test (int i, double x);
966 struct s1 {int (*f) (int a);};
967 struct s2 {int (*f) (double a);};
968 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
974 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
978 if { (eval echo configure
:979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
980 am_cv_prog_cc_stdc
="$ac_arg"; break
982 echo "configure: failed program was:" >&5
983 cat conftest.
$ac_ext >&5
991 if test -z "$am_cv_prog_cc_stdc"; then
992 echo "$ac_t""none needed" 1>&6
994 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
996 case "x$am_cv_prog_cc_stdc" in
998 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1003 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1004 if test -f $ac_dir/install-sh
; then
1006 ac_install_sh
="$ac_aux_dir/install-sh -c"
1008 elif test -f $ac_dir/install.sh
; then
1010 ac_install_sh
="$ac_aux_dir/install.sh -c"
1014 if test -z "$ac_aux_dir"; then
1015 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1017 ac_config_guess
=$ac_aux_dir/config.guess
1018 ac_config_sub
=$ac_aux_dir/config.sub
1019 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1022 # Do some error checking and defaulting for the host and target type.
1024 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1027 # 1. You are not allowed to specify --host, --target, and nonopt at the
1029 # 2. Host defaults to nonopt.
1030 # 3. If nonopt is not specified, then host defaults to the current host,
1031 # as determined by config.guess.
1032 # 4. Target and build default to nonopt.
1033 # 5. If nonopt is not specified, then target and build default to host.
1035 # The aliases save the names the user supplied, while $host etc.
1036 # will get canonicalized.
1037 case $host---$target---$nonopt in
1038 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1039 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1043 # Make sure we can run config.sub.
1044 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1045 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1048 echo $ac_n "checking host system type""... $ac_c" 1>&6
1049 echo "configure:1050: checking host system type" >&5
1052 case "$host_alias" in
1056 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1057 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1059 *) host_alias
=$nonopt ;;
1063 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1064 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1065 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1066 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1067 echo "$ac_t""$host" 1>&6
1069 echo $ac_n "checking target system type""... $ac_c" 1>&6
1070 echo "configure:1071: checking target system type" >&5
1072 target_alias
=$target
1073 case "$target_alias" in
1076 NONE
) target_alias
=$host_alias ;;
1077 *) target_alias
=$nonopt ;;
1081 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1082 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1083 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1084 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1085 echo "$ac_t""$target" 1>&6
1087 echo $ac_n "checking build system type""... $ac_c" 1>&6
1088 echo "configure:1089: checking build system type" >&5
1091 case "$build_alias" in
1094 NONE
) build_alias
=$host_alias ;;
1095 *) build_alias
=$nonopt ;;
1099 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1100 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1101 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1102 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1103 echo "$ac_t""$build" 1>&6
1105 test "$host_alias" != "$target_alias" &&
1106 test "$program_prefix$program_suffix$program_transform_name" = \
1108 program_prefix
=${target_alias}-
1112 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1113 echo "configure:1114: checking whether ${MAKE-make} sets \${MAKE}" >&5
1114 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1115 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1118 cat > conftestmake
<<\EOF
1120 @
echo 'ac_maketemp="${MAKE}"'
1122 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1123 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1124 if test -n "$ac_maketemp"; then
1125 eval ac_cv_prog_make_
${ac_make}_set
=yes
1127 eval ac_cv_prog_make_
${ac_make}_set
=no
1131 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1132 echo "$ac_t""yes" 1>&6
1135 echo "$ac_t""no" 1>&6
1136 SET_MAKE
="MAKE=${MAKE-make}"
1139 # Extract the first word of "ranlib", so it can be a program name with args.
1140 set dummy ranlib
; ac_word
=$2
1141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1142 echo "configure:1143: checking for $ac_word" >&5
1143 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 if test -n "$RANLIB"; then
1147 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1149 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1151 for ac_dir
in $ac_dummy; do
1152 test -z "$ac_dir" && ac_dir
=.
1153 if test -f $ac_dir/$ac_word; then
1154 ac_cv_prog_RANLIB
="ranlib"
1159 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1162 RANLIB
="$ac_cv_prog_RANLIB"
1163 if test -n "$RANLIB"; then
1164 echo "$ac_t""$RANLIB" 1>&6
1166 echo "$ac_t""no" 1>&6
1169 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1170 echo "configure:1171: checking for ANSI C header files" >&5
1171 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 cat > conftest.
$ac_ext <<EOF
1175 #line 1176 "configure"
1176 #include "confdefs.h"
1182 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1183 { (eval echo configure
:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1184 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1185 if test -z "$ac_err"; then
1187 ac_cv_header_stdc
=yes
1190 echo "configure: failed program was:" >&5
1191 cat conftest.
$ac_ext >&5
1193 ac_cv_header_stdc
=no
1197 if test $ac_cv_header_stdc = yes; then
1198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1199 cat > conftest.
$ac_ext <<EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1205 egrep "memchr" >/dev
/null
2>&1; then
1209 ac_cv_header_stdc
=no
1215 if test $ac_cv_header_stdc = yes; then
1216 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1217 cat > conftest.
$ac_ext <<EOF
1218 #line 1219 "configure"
1219 #include "confdefs.h"
1222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1223 egrep "free" >/dev
/null
2>&1; then
1227 ac_cv_header_stdc
=no
1233 if test $ac_cv_header_stdc = yes; then
1234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1235 if test "$cross_compiling" = yes; then
1238 cat > conftest.
$ac_ext <<EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1242 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1243 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1244 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1245 int main () { int i; for (i = 0; i < 256; i++)
1246 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1250 if { (eval echo configure
:1251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1254 echo "configure: failed program was:" >&5
1255 cat conftest.
$ac_ext >&5
1257 ac_cv_header_stdc
=no
1265 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1266 if test $ac_cv_header_stdc = yes; then
1267 cat >> confdefs.h
<<\EOF
1268 #define STDC_HEADERS 1
1273 echo $ac_n "checking for working const""... $ac_c" 1>&6
1274 echo "configure:1275: checking for working const" >&5
1275 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 cat > conftest.
$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1284 /* Ultrix mips cc rejects this. */
1285 typedef int charset[2]; const charset x;
1286 /* SunOS 4.1.1 cc rejects this. */
1287 char const *const *ccp;
1289 /* NEC SVR4.0.2 mips cc rejects this. */
1290 struct point {int x, y;};
1291 static struct point const zero = {0,0};
1292 /* AIX XL C 1.02.0.0 rejects this.
1293 It does not let you subtract one const X* pointer from another in an arm
1294 of an if-expression whose if-part is not a constant expression */
1295 const char *g = "string";
1296 ccp = &g + (g ? g-g : 0);
1297 /* HPUX 7.0 cc rejects these. */
1300 ccp = (char const *const *) p;
1301 { /* SCO 3.2v4 cc rejects this. */
1303 char const *s = 0 ? (char *) 0 : (char const *) 0;
1307 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1309 const int *foo = &x[0];
1312 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1313 typedef const int *iptr;
1317 { /* AIX XL C 1.02.0.0 rejects this saying
1318 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1319 struct s { int j; const int *ap[3]; };
1320 struct s *b; b->j = 5;
1322 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1328 if { (eval echo configure
:1329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1332 echo "configure: failed program was:" >&5
1333 cat conftest.
$ac_ext >&5
1340 echo "$ac_t""$ac_cv_c_const" 1>&6
1341 if test $ac_cv_c_const = no
; then
1342 cat >> confdefs.h
<<\EOF
1348 echo $ac_n "checking for inline""... $ac_c" 1>&6
1349 echo "configure:1350: checking for inline" >&5
1350 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1354 for ac_kw
in inline __inline__ __inline
; do
1355 cat > conftest.
$ac_ext <<EOF
1356 #line 1357 "configure"
1357 #include "confdefs.h"
1363 if { (eval echo configure
:1364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1365 ac_cv_c_inline
=$ac_kw; break
1367 echo "configure: failed program was:" >&5
1368 cat conftest.
$ac_ext >&5
1375 echo "$ac_t""$ac_cv_c_inline" 1>&6
1376 case "$ac_cv_c_inline" in
1378 no
) cat >> confdefs.h
<<\EOF
1382 *) cat >> confdefs.h
<<EOF
1383 #define inline $ac_cv_c_inline
1388 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1389 echo "configure:1390: checking for off_t" >&5
1390 if eval "test \"`echo '$''{'ac_cv_type_off_t'+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"
1396 #include <sys/types.h>
1402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1403 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1405 ac_cv_type_off_t
=yes
1413 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1414 if test $ac_cv_type_off_t = no
; then
1415 cat >> confdefs.h
<<\EOF
1421 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1422 echo "configure:1423: checking for size_t" >&5
1423 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1426 cat > conftest.
$ac_ext <<EOF
1427 #line 1428 "configure"
1428 #include "confdefs.h"
1429 #include <sys/types.h>
1435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1436 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1438 ac_cv_type_size_t
=yes
1441 ac_cv_type_size_t
=no
1446 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1447 if test $ac_cv_type_size_t = no
; then
1448 cat >> confdefs.h
<<\EOF
1449 #define size_t unsigned
1454 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1455 # for constant arguments. Useless!
1456 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1457 echo "configure:1458: checking for working alloca.h" >&5
1458 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 cat > conftest.
$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1466 char *p = alloca(2 * sizeof(int));
1469 if { (eval echo configure
:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1471 ac_cv_header_alloca_h
=yes
1473 echo "configure: failed program was:" >&5
1474 cat conftest.
$ac_ext >&5
1476 ac_cv_header_alloca_h
=no
1481 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1482 if test $ac_cv_header_alloca_h = yes; then
1483 cat >> confdefs.h
<<\EOF
1484 #define HAVE_ALLOCA_H 1
1489 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1490 echo "configure:1491: checking for alloca" >&5
1491 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1494 cat > conftest.
$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1499 # define alloca __builtin_alloca
1502 # include <malloc.h>
1503 # define alloca _alloca
1506 # include <alloca.h>
1511 # ifndef alloca /* predefined by HP cc +Olibcalls */
1520 char *p = (char *) alloca(1);
1523 if { (eval echo configure
:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1525 ac_cv_func_alloca_works
=yes
1527 echo "configure: failed program was:" >&5
1528 cat conftest.
$ac_ext >&5
1530 ac_cv_func_alloca_works
=no
1535 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1536 if test $ac_cv_func_alloca_works = yes; then
1537 cat >> confdefs.h
<<\EOF
1538 #define HAVE_ALLOCA 1
1543 if test $ac_cv_func_alloca_works = no
; then
1544 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1545 # that cause trouble. Some versions do not even contain alloca or
1546 # contain a buggy version. If you still want to use their alloca,
1547 # use ar to extract alloca.o from them instead of compiling alloca.c.
1548 ALLOCA
=alloca.
${ac_objext}
1549 cat >> confdefs.h
<<\EOF
1554 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1555 echo "configure:1556: checking whether alloca needs Cray hooks" >&5
1556 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 cat > conftest.
$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1562 #if defined(CRAY) && ! defined(CRAY2)
1569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1570 egrep "webecray" >/dev
/null
2>&1; then
1581 echo "$ac_t""$ac_cv_os_cray" 1>&6
1582 if test $ac_cv_os_cray = yes; then
1583 for ac_func
in _getb67 GETB67 getb67
; do
1584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1585 echo "configure:1586: checking for $ac_func" >&5
1586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1589 cat > conftest.
$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1592 /* System header to define __stub macros and hopefully few prototypes,
1593 which can conflict with char $ac_func(); below. */
1595 /* Override any gcc2 internal prototype to avoid an error. */
1596 /* We use char because int might match the return type of a gcc2
1597 builtin and then its argument prototype would still apply. */
1602 /* The GNU C library defines this for functions which it implements
1603 to always fail with ENOSYS. Some functions are actually named
1604 something starting with __ and the normal name is an alias. */
1605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1613 if { (eval echo configure
:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1615 eval "ac_cv_func_$ac_func=yes"
1617 echo "configure: failed program was:" >&5
1618 cat conftest.
$ac_ext >&5
1620 eval "ac_cv_func_$ac_func=no"
1625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1626 echo "$ac_t""yes" 1>&6
1627 cat >> confdefs.h
<<EOF
1628 #define CRAY_STACKSEG_END $ac_func
1633 echo "$ac_t""no" 1>&6
1639 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1640 echo "configure:1641: checking stack direction for C alloca" >&5
1641 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1644 if test "$cross_compiling" = yes; then
1645 ac_cv_c_stack_direction
=0
1647 cat > conftest.
$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1650 find_stack_direction ()
1652 static char *addr = 0;
1657 return find_stack_direction ();
1660 return (&dummy > addr) ? 1 : -1;
1664 exit (find_stack_direction() < 0);
1667 if { (eval echo configure
:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1669 ac_cv_c_stack_direction
=1
1671 echo "configure: failed program was:" >&5
1672 cat conftest.
$ac_ext >&5
1674 ac_cv_c_stack_direction
=-1
1681 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1682 cat >> confdefs.h
<<EOF
1683 #define STACK_DIRECTION $ac_cv_c_stack_direction
1688 for ac_hdr
in unistd.h
1690 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1692 echo "configure:1693: checking for $ac_hdr" >&5
1693 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1696 cat > conftest.
$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1701 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1702 { (eval echo configure
:1703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1703 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1704 if test -z "$ac_err"; then
1706 eval "ac_cv_header_$ac_safe=yes"
1709 echo "configure: failed program was:" >&5
1710 cat conftest.
$ac_ext >&5
1712 eval "ac_cv_header_$ac_safe=no"
1716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1717 echo "$ac_t""yes" 1>&6
1718 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1719 cat >> confdefs.h
<<EOF
1720 #define $ac_tr_hdr 1
1724 echo "$ac_t""no" 1>&6
1728 for ac_func
in getpagesize
1730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1731 echo "configure:1732: checking for $ac_func" >&5
1732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 cat > conftest.
$ac_ext <<EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1738 /* System header to define __stub macros and hopefully few prototypes,
1739 which can conflict with char $ac_func(); below. */
1741 /* Override any gcc2 internal prototype to avoid an error. */
1742 /* We use char because int might match the return type of a gcc2
1743 builtin and then its argument prototype would still apply. */
1748 /* The GNU C library defines this for functions which it implements
1749 to always fail with ENOSYS. Some functions are actually named
1750 something starting with __ and the normal name is an alias. */
1751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1759 if { (eval echo configure
:1760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1761 eval "ac_cv_func_$ac_func=yes"
1763 echo "configure: failed program was:" >&5
1764 cat conftest.
$ac_ext >&5
1766 eval "ac_cv_func_$ac_func=no"
1771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1772 echo "$ac_t""yes" 1>&6
1773 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1774 cat >> confdefs.h
<<EOF
1775 #define $ac_tr_func 1
1779 echo "$ac_t""no" 1>&6
1783 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1784 echo "configure:1785: checking for working mmap" >&5
1785 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1788 if test "$cross_compiling" = yes; then
1789 ac_cv_func_mmap_fixed_mapped
=no
1791 cat > conftest.
$ac_ext <<EOF
1792 #line 1793 "configure"
1793 #include "confdefs.h"
1795 /* Thanks to Mike Haertel and Jim Avera for this test.
1796 Here is a matrix of mmap possibilities:
1797 mmap private not fixed
1798 mmap private fixed at somewhere currently unmapped
1799 mmap private fixed at somewhere already mapped
1800 mmap shared not fixed
1801 mmap shared fixed at somewhere currently unmapped
1802 mmap shared fixed at somewhere already mapped
1803 For private mappings, we should verify that changes cannot be read()
1804 back from the file, nor mmap's back from the file at a different
1805 address. (There have been systems where private was not correctly
1806 implemented like the infamous i386 svr4.0, and systems where the
1807 VM page cache was not coherent with the filesystem buffer cache
1808 like early versions of FreeBSD and possibly contemporary NetBSD.)
1809 For shared mappings, we should conversely verify that changes get
1810 propogated back to all the places they're supposed to be.
1812 Grep wants private fixed already mapped.
1813 The main things grep needs to know about mmap are:
1814 * does it exist and is it safe to write into the mmap'd area
1815 * how to use it (BSD variants) */
1816 #include <sys/types.h>
1818 #include <sys/mman.h>
1820 /* This mess was copied from the GNU getpagesize.h. */
1821 #ifndef HAVE_GETPAGESIZE
1822 # ifdef HAVE_UNISTD_H
1823 # include <unistd.h>
1826 /* Assume that all systems that can run configure have sys/param.h. */
1827 # ifndef HAVE_SYS_PARAM_H
1828 # define HAVE_SYS_PARAM_H 1
1831 # ifdef _SC_PAGESIZE
1832 # define getpagesize() sysconf(_SC_PAGESIZE)
1833 # else /* no _SC_PAGESIZE */
1834 # ifdef HAVE_SYS_PARAM_H
1835 # include <sys/param.h>
1836 # ifdef EXEC_PAGESIZE
1837 # define getpagesize() EXEC_PAGESIZE
1838 # else /* no EXEC_PAGESIZE */
1840 # define getpagesize() NBPG * CLSIZE
1843 # endif /* no CLSIZE */
1844 # else /* no NBPG */
1846 # define getpagesize() NBPC
1847 # else /* no NBPC */
1849 # define getpagesize() PAGESIZE
1850 # endif /* PAGESIZE */
1851 # endif /* no NBPC */
1852 # endif /* no NBPG */
1853 # endif /* no EXEC_PAGESIZE */
1854 # else /* no HAVE_SYS_PARAM_H */
1855 # define getpagesize() 8192 /* punt totally */
1856 # endif /* no HAVE_SYS_PARAM_H */
1857 # endif /* no _SC_PAGESIZE */
1859 #endif /* no HAVE_GETPAGESIZE */
1862 extern "C" { void *malloc(unsigned); }
1870 char *data, *data2, *data3;
1874 pagesize = getpagesize();
1877 * First, make a file with some known garbage in it.
1879 data = malloc(pagesize);
1882 for (i = 0; i < pagesize; ++i)
1883 *(data + i) = rand();
1885 fd = creat("conftestmmap", 0600);
1888 if (write(fd, data, pagesize) != pagesize)
1893 * Next, try to mmap the file at a fixed address which
1894 * already has something else allocated at it. If we can,
1895 * also make sure that we see the same garbage.
1897 fd = open("conftestmmap", O_RDWR);
1900 data2 = malloc(2 * pagesize);
1903 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1904 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1905 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1907 for (i = 0; i < pagesize; ++i)
1908 if (*(data + i) != *(data2 + i))
1912 * Finally, make sure that changes to the mapped area
1913 * do not percolate back to the file as seen by read().
1914 * (This is a bug on some variants of i386 svr4.0.)
1916 for (i = 0; i < pagesize; ++i)
1917 *(data2 + i) = *(data2 + i) + 1;
1918 data3 = malloc(pagesize);
1921 if (read(fd, data3, pagesize) != pagesize)
1923 for (i = 0; i < pagesize; ++i)
1924 if (*(data + i) != *(data3 + i))
1927 unlink("conftestmmap");
1932 if { (eval echo configure
:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1934 ac_cv_func_mmap_fixed_mapped
=yes
1936 echo "configure: failed program was:" >&5
1937 cat conftest.
$ac_ext >&5
1939 ac_cv_func_mmap_fixed_mapped
=no
1946 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1947 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1948 cat >> confdefs.h
<<\EOF
1955 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1956 unistd.h values.h sys
/param.h
1958 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1959 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1960 echo "configure:1961: checking for $ac_hdr" >&5
1961 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1964 cat > conftest.
$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1969 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1970 { (eval echo configure
:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1971 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1972 if test -z "$ac_err"; then
1974 eval "ac_cv_header_$ac_safe=yes"
1977 echo "configure: failed program was:" >&5
1978 cat conftest.
$ac_ext >&5
1980 eval "ac_cv_header_$ac_safe=no"
1984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1985 echo "$ac_t""yes" 1>&6
1986 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1987 cat >> confdefs.h
<<EOF
1988 #define $ac_tr_hdr 1
1992 echo "$ac_t""no" 1>&6
1996 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1997 __argz_count __argz_stringify __argz_next
1999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2000 echo "configure:2001: checking for $ac_func" >&5
2001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2004 cat > conftest.
$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2007 /* System header to define __stub macros and hopefully few prototypes,
2008 which can conflict with char $ac_func(); below. */
2010 /* Override any gcc2 internal prototype to avoid an error. */
2011 /* We use char because int might match the return type of a gcc2
2012 builtin and then its argument prototype would still apply. */
2017 /* The GNU C library defines this for functions which it implements
2018 to always fail with ENOSYS. Some functions are actually named
2019 something starting with __ and the normal name is an alias. */
2020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2028 if { (eval echo configure
:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2030 eval "ac_cv_func_$ac_func=yes"
2032 echo "configure: failed program was:" >&5
2033 cat conftest.
$ac_ext >&5
2035 eval "ac_cv_func_$ac_func=no"
2040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2041 echo "$ac_t""yes" 1>&6
2042 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2043 cat >> confdefs.h
<<EOF
2044 #define $ac_tr_func 1
2048 echo "$ac_t""no" 1>&6
2053 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2054 for ac_func
in stpcpy
2056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2057 echo "configure:2058: checking for $ac_func" >&5
2058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2061 cat > conftest.
$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2064 /* System header to define __stub macros and hopefully few prototypes,
2065 which can conflict with char $ac_func(); below. */
2067 /* Override any gcc2 internal prototype to avoid an error. */
2068 /* We use char because int might match the return type of a gcc2
2069 builtin and then its argument prototype would still apply. */
2074 /* The GNU C library defines this for functions which it implements
2075 to always fail with ENOSYS. Some functions are actually named
2076 something starting with __ and the normal name is an alias. */
2077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2085 if { (eval echo configure
:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2087 eval "ac_cv_func_$ac_func=yes"
2089 echo "configure: failed program was:" >&5
2090 cat conftest.
$ac_ext >&5
2092 eval "ac_cv_func_$ac_func=no"
2097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2098 echo "$ac_t""yes" 1>&6
2099 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2100 cat >> confdefs.h
<<EOF
2101 #define $ac_tr_func 1
2105 echo "$ac_t""no" 1>&6
2110 if test "${ac_cv_func_stpcpy}" = "yes"; then
2111 cat >> confdefs.h
<<\EOF
2112 #define HAVE_STPCPY 1
2117 if test $ac_cv_header_locale_h = yes; then
2118 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2119 echo "configure:2120: checking for LC_MESSAGES" >&5
2120 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2123 cat > conftest.
$ac_ext <<EOF
2124 #line 2125 "configure"
2125 #include "confdefs.h"
2131 if { (eval echo configure
:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2133 am_cv_val_LC_MESSAGES
=yes
2135 echo "configure: failed program was:" >&5
2136 cat conftest.
$ac_ext >&5
2138 am_cv_val_LC_MESSAGES
=no
2143 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2144 if test $am_cv_val_LC_MESSAGES = yes; then
2145 cat >> confdefs.h
<<\EOF
2146 #define HAVE_LC_MESSAGES 1
2151 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2152 echo "configure:2153: checking whether NLS is requested" >&5
2153 # Check whether --enable-nls or --disable-nls was given.
2154 if test "${enable_nls+set}" = set; then
2155 enableval
="$enable_nls"
2161 echo "$ac_t""$USE_NLS" 1>&6
2164 USE_INCLUDED_LIBINTL
=no
2166 if test "$USE_NLS" = "yes"; then
2167 cat >> confdefs.h
<<\EOF
2168 #define ENABLE_NLS 1
2171 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2172 echo "configure:2173: checking whether included gettext is requested" >&5
2173 # Check whether --with-included-gettext or --without-included-gettext was given.
2174 if test "${with_included_gettext+set}" = set; then
2175 withval
="$with_included_gettext"
2176 nls_cv_force_use_gnu_gettext
=$withval
2178 nls_cv_force_use_gnu_gettext
=no
2181 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2183 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2184 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2186 nls_cv_header_libgt
=
2189 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2190 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2191 echo "configure:2192: checking for libintl.h" >&5
2192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 cat > conftest.
$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2198 #include <libintl.h>
2200 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2201 { (eval echo configure
:2202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2202 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2203 if test -z "$ac_err"; then
2205 eval "ac_cv_header_$ac_safe=yes"
2208 echo "configure: failed program was:" >&5
2209 cat conftest.
$ac_ext >&5
2211 eval "ac_cv_header_$ac_safe=no"
2215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2217 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2218 echo "configure:2219: checking for gettext in libc" >&5
2219 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2222 cat > conftest.
$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2225 #include <libintl.h>
2227 return (int) gettext ("")
2230 if { (eval echo configure
:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2232 gt_cv_func_gettext_libc
=yes
2234 echo "configure: failed program was:" >&5
2235 cat conftest.
$ac_ext >&5
2237 gt_cv_func_gettext_libc
=no
2242 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2244 if test "$gt_cv_func_gettext_libc" != "yes"; then
2245 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2246 echo "configure:2247: checking for bindtextdomain in -lintl" >&5
2247 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2251 ac_save_LIBS
="$LIBS"
2253 cat > conftest.
$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 /* Override any gcc2 internal prototype to avoid an error. */
2257 /* We use char because int might match the return type of a gcc2
2258 builtin and then its argument prototype would still apply. */
2259 char bindtextdomain();
2265 if { (eval echo configure
:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2267 eval "ac_cv_lib_$ac_lib_var=yes"
2269 echo "configure: failed program was:" >&5
2270 cat conftest.
$ac_ext >&5
2272 eval "ac_cv_lib_$ac_lib_var=no"
2275 LIBS
="$ac_save_LIBS"
2278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2279 echo "$ac_t""yes" 1>&6
2280 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2281 echo "configure:2282: checking for gettext in libintl" >&5
2282 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2285 cat > conftest.
$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2290 return (int) gettext ("")
2293 if { (eval echo configure
:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2295 gt_cv_func_gettext_libintl
=yes
2297 echo "configure: failed program was:" >&5
2298 cat conftest.
$ac_ext >&5
2300 gt_cv_func_gettext_libintl
=no
2305 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2307 echo "$ac_t""no" 1>&6
2312 if test "$gt_cv_func_gettext_libc" = "yes" \
2313 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2314 cat >> confdefs.h
<<\EOF
2315 #define HAVE_GETTEXT 1
2318 # Extract the first word of "msgfmt", so it can be a program name with args.
2319 set dummy msgfmt
; ac_word
=$2
2320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2321 echo "configure:2322: checking for $ac_word" >&5
2322 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2327 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2330 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2331 for ac_dir
in $PATH; do
2332 test -z "$ac_dir" && ac_dir
=.
2333 if test -f $ac_dir/$ac_word; then
2334 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2335 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2341 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2345 MSGFMT
="$ac_cv_path_MSGFMT"
2346 if test -n "$MSGFMT"; then
2347 echo "$ac_t""$MSGFMT" 1>&6
2349 echo "$ac_t""no" 1>&6
2351 if test "$MSGFMT" != "no"; then
2352 for ac_func
in dcgettext
2354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2355 echo "configure:2356: checking for $ac_func" >&5
2356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 cat > conftest.
$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2362 /* System header to define __stub macros and hopefully few prototypes,
2363 which can conflict with char $ac_func(); below. */
2365 /* Override any gcc2 internal prototype to avoid an error. */
2366 /* We use char because int might match the return type of a gcc2
2367 builtin and then its argument prototype would still apply. */
2372 /* The GNU C library defines this for functions which it implements
2373 to always fail with ENOSYS. Some functions are actually named
2374 something starting with __ and the normal name is an alias. */
2375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2383 if { (eval echo configure
:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2385 eval "ac_cv_func_$ac_func=yes"
2387 echo "configure: failed program was:" >&5
2388 cat conftest.
$ac_ext >&5
2390 eval "ac_cv_func_$ac_func=no"
2395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2396 echo "$ac_t""yes" 1>&6
2397 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2398 cat >> confdefs.h
<<EOF
2399 #define $ac_tr_func 1
2403 echo "$ac_t""no" 1>&6
2407 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2408 set dummy gmsgfmt
; ac_word
=$2
2409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2410 echo "configure:2411: checking for $ac_word" >&5
2411 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2416 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2419 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2422 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2424 for ac_dir
in $ac_dummy; do
2425 test -z "$ac_dir" && ac_dir
=.
2426 if test -f $ac_dir/$ac_word; then
2427 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2432 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2436 GMSGFMT
="$ac_cv_path_GMSGFMT"
2437 if test -n "$GMSGFMT"; then
2438 echo "$ac_t""$GMSGFMT" 1>&6
2440 echo "$ac_t""no" 1>&6
2443 # Extract the first word of "xgettext", so it can be a program name with args.
2444 set dummy xgettext
; ac_word
=$2
2445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2446 echo "configure:2447: checking for $ac_word" >&5
2447 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2452 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2455 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2456 for ac_dir
in $PATH; do
2457 test -z "$ac_dir" && ac_dir
=.
2458 if test -f $ac_dir/$ac_word; then
2459 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2460 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2466 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2470 XGETTEXT
="$ac_cv_path_XGETTEXT"
2471 if test -n "$XGETTEXT"; then
2472 echo "$ac_t""$XGETTEXT" 1>&6
2474 echo "$ac_t""no" 1>&6
2477 cat > conftest.
$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2482 extern int _nl_msg_cat_cntr;
2483 return _nl_msg_cat_cntr
2486 if { (eval echo configure
:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2491 echo "configure: failed program was:" >&5
2492 cat conftest.
$ac_ext >&5
2503 echo "$ac_t""no" 1>&6
2508 if test "$CATOBJEXT" = "NONE"; then
2509 nls_cv_use_gnu_gettext
=yes
2513 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2514 INTLOBJS
="\$(GETTOBJS)"
2515 # Extract the first word of "msgfmt", so it can be a program name with args.
2516 set dummy msgfmt
; ac_word
=$2
2517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2518 echo "configure:2519: checking for $ac_word" >&5
2519 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2524 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2527 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2528 for ac_dir
in $PATH; do
2529 test -z "$ac_dir" && ac_dir
=.
2530 if test -f $ac_dir/$ac_word; then
2531 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2532 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2538 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2542 MSGFMT
="$ac_cv_path_MSGFMT"
2543 if test -n "$MSGFMT"; then
2544 echo "$ac_t""$MSGFMT" 1>&6
2546 echo "$ac_t""no" 1>&6
2549 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2550 set dummy gmsgfmt
; ac_word
=$2
2551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2552 echo "configure:2553: checking for $ac_word" >&5
2553 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2558 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2561 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2564 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2566 for ac_dir
in $ac_dummy; do
2567 test -z "$ac_dir" && ac_dir
=.
2568 if test -f $ac_dir/$ac_word; then
2569 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2574 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2578 GMSGFMT
="$ac_cv_path_GMSGFMT"
2579 if test -n "$GMSGFMT"; then
2580 echo "$ac_t""$GMSGFMT" 1>&6
2582 echo "$ac_t""no" 1>&6
2585 # Extract the first word of "xgettext", so it can be a program name with args.
2586 set dummy xgettext
; ac_word
=$2
2587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2588 echo "configure:2589: checking for $ac_word" >&5
2589 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2594 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2597 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2598 for ac_dir
in $PATH; do
2599 test -z "$ac_dir" && ac_dir
=.
2600 if test -f $ac_dir/$ac_word; then
2601 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2602 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2608 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2612 XGETTEXT
="$ac_cv_path_XGETTEXT"
2613 if test -n "$XGETTEXT"; then
2614 echo "$ac_t""$XGETTEXT" 1>&6
2616 echo "$ac_t""no" 1>&6
2620 USE_INCLUDED_LIBINTL
=yes
2624 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2626 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2627 nls_cv_header_intl
=libintl.h
2628 nls_cv_header_libgt
=libgettext.h
2631 if test "$XGETTEXT" != ":"; then
2632 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2635 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2640 # We need to process the po/ directory.
2644 nls_cv_header_intl
=libintl.h
2645 nls_cv_header_libgt
=libgettext.h
2648 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2649 # because some of the sources are only built for this goal.
2650 if test "$PACKAGE" = gettext; then
2652 USE_INCLUDED_LIBINTL
=yes
2655 for lang
in $ALL_LINGUAS; do
2656 GMOFILES
="$GMOFILES $lang.gmo"
2657 POFILES
="$POFILES $lang.po"
2673 if test "x$CATOBJEXT" != "x"; then
2674 if test "x$ALL_LINGUAS" = "x"; then
2677 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2678 echo "configure:2679: checking for catalogs to be installed" >&5
2680 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2681 case "$ALL_LINGUAS" in
2682 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2685 LINGUAS
=$NEW_LINGUAS
2686 echo "$ac_t""$LINGUAS" 1>&6
2689 if test -n "$LINGUAS"; then
2690 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2694 if test $ac_cv_header_locale_h = yes; then
2695 INCLUDE_LOCALE_H
="#include <locale.h>"
2698 /* The system does not provide the header <locale.h>. Take care yourself. */"
2702 if test -f $srcdir/po2tbl.
sed.
in; then
2703 if test "$CATOBJEXT" = ".cat"; then
2704 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2705 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2706 echo "configure:2707: checking for linux/version.h" >&5
2707 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 cat > conftest.
$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2713 #include <linux/version.h>
2715 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2716 { (eval echo configure
:2717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2717 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2718 if test -z "$ac_err"; then
2720 eval "ac_cv_header_$ac_safe=yes"
2723 echo "configure: failed program was:" >&5
2724 cat conftest.
$ac_ext >&5
2726 eval "ac_cv_header_$ac_safe=no"
2730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2731 echo "$ac_t""yes" 1>&6
2734 echo "$ac_t""no" 1>&6
2739 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2741 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2742 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2745 if test "$PACKAGE" = "gettext"; then
2755 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2761 if test -d $srcdir/po
; then
2762 test -d po || mkdir po
2763 if test "x$srcdir" != "x."; then
2764 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2765 posrcprefix
="$srcdir/"
2767 posrcprefix
="../$srcdir/"
2773 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2774 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2783 configdirs
="doc testsuite"
2786 .
${srcdir}/configure.
host
2788 .
${srcdir}/configure.tgt
2791 for ac_prog
in mawk gawk nawk
awk
2793 # Extract the first word of "$ac_prog", so it can be a program name with args.
2794 set dummy
$ac_prog; ac_word
=$2
2795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2796 echo "configure:2797: checking for $ac_word" >&5
2797 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2800 if test -n "$AWK"; then
2801 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2803 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2805 for ac_dir
in $ac_dummy; do
2806 test -z "$ac_dir" && ac_dir
=.
2807 if test -f $ac_dir/$ac_word; then
2808 ac_cv_prog_AWK
="$ac_prog"
2815 AWK
="$ac_cv_prog_AWK"
2816 if test -n "$AWK"; then
2817 echo "$ac_t""$AWK" 1>&6
2819 echo "$ac_t""no" 1>&6
2822 test -n "$AWK" && break
2825 # Find a good install program. We prefer a C program (faster),
2826 # so one script is as good as another. But avoid the broken or
2827 # incompatible versions:
2828 # SysV /etc/install, /usr/sbin/install
2829 # SunOS /usr/etc/install
2830 # IRIX /sbin/install
2832 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2833 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2834 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2835 # ./install, which can be erroneously created by make from ./install.sh.
2836 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2837 echo "configure:2838: checking for a BSD compatible install" >&5
2838 if test -z "$INSTALL"; then
2839 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2842 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2843 for ac_dir
in $PATH; do
2844 # Account for people who put trailing slashes in PATH elements.
2846 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2848 # OSF1 and SCO ODT 3.0 have their own names for install.
2849 # Don't use installbsd from OSF since it installs stuff as root
2851 for ac_prog
in ginstall scoinst
install; do
2852 if test -f $ac_dir/$ac_prog; then
2853 if test $ac_prog = install &&
2854 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2855 # AIX install. It has an incompatible calling convention.
2858 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2869 if test "${ac_cv_path_install+set}" = set; then
2870 INSTALL
="$ac_cv_path_install"
2872 # As a last resort, use the slow shell script. We don't cache a
2873 # path for INSTALL within a source directory, because that will
2874 # break other packages using the cache if that directory is
2875 # removed, or if the path is relative.
2876 INSTALL
="$ac_install_sh"
2879 echo "$ac_t""$INSTALL" 1>&6
2881 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2882 # It thinks the first close brace ends the variable substitution.
2883 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2885 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2887 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2889 if test $host != $build; then
2890 ac_tool_prefix
=${host_alias}-
2895 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2896 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2898 echo "configure:2899: checking for $ac_word" >&5
2899 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 if test -n "$AR"; then
2903 ac_cv_prog_AR
="$AR" # Let the user override the test.
2905 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2907 for ac_dir
in $ac_dummy; do
2908 test -z "$ac_dir" && ac_dir
=.
2909 if test -f $ac_dir/$ac_word; then
2910 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2915 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2919 if test -n "$AR"; then
2920 echo "$ac_t""$AR" 1>&6
2922 echo "$ac_t""no" 1>&6
2927 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2928 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2930 echo "configure:2931: checking for $ac_word" >&5
2931 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2934 if test -n "$RANLIB"; then
2935 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2937 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2939 for ac_dir
in $ac_dummy; do
2940 test -z "$ac_dir" && ac_dir
=.
2941 if test -f $ac_dir/$ac_word; then
2942 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2949 RANLIB
="$ac_cv_prog_RANLIB"
2950 if test -n "$RANLIB"; then
2951 echo "$ac_t""$RANLIB" 1>&6
2953 echo "$ac_t""no" 1>&6
2957 if test -z "$ac_cv_prog_RANLIB"; then
2958 if test -n "$ac_tool_prefix"; then
2959 # Extract the first word of "ranlib", so it can be a program name with args.
2960 set dummy ranlib
; ac_word
=$2
2961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2962 echo "configure:2963: checking for $ac_word" >&5
2963 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2966 if test -n "$RANLIB"; then
2967 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2969 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2971 for ac_dir
in $ac_dummy; do
2972 test -z "$ac_dir" && ac_dir
=.
2973 if test -f $ac_dir/$ac_word; then
2974 ac_cv_prog_RANLIB
="ranlib"
2979 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2982 RANLIB
="$ac_cv_prog_RANLIB"
2983 if test -n "$RANLIB"; then
2984 echo "$ac_t""$RANLIB" 1>&6
2986 echo "$ac_t""no" 1>&6
2994 for ac_prog
in 'bison -y' byacc
2996 # Extract the first word of "$ac_prog", so it can be a program name with args.
2997 set dummy
$ac_prog; ac_word
=$2
2998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2999 echo "configure:3000: checking for $ac_word" >&5
3000 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3001 echo $ac_n "(cached) $ac_c" 1>&6
3003 if test -n "$YACC"; then
3004 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3006 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3008 for ac_dir
in $ac_dummy; do
3009 test -z "$ac_dir" && ac_dir
=.
3010 if test -f $ac_dir/$ac_word; then
3011 ac_cv_prog_YACC
="$ac_prog"
3018 YACC
="$ac_cv_prog_YACC"
3019 if test -n "$YACC"; then
3020 echo "$ac_t""$YACC" 1>&6
3022 echo "$ac_t""no" 1>&6
3025 test -n "$YACC" && break
3027 test -n "$YACC" || YACC
="yacc"
3030 if test "$program_transform_name" = s
,x
,x
,; then
3031 program_transform_name
=
3033 # Double any \ or $. echo might interpret backslashes.
3034 cat <<\EOF_SED
> conftestsed
3035 s
,\\,\\\\,g
; s
,\$
,$$
,g
3037 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3040 test "$program_prefix" != NONE
&&
3041 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3042 # Use a double $ so make ignores it.
3043 test "$program_suffix" != NONE
&&
3044 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3046 # sed with no file args requires a program.
3047 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3050 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3051 echo "configure:3052: checking return type of signal handlers" >&5
3052 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 cat > conftest.
$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3058 #include <sys/types.h>
3064 extern "C" void (*signal (int, void (*)(int)))(int);
3066 void (*signal ()) ();
3073 if { (eval echo configure
:3074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3075 ac_cv_type_signal
=void
3077 echo "configure: failed program was:" >&5
3078 cat conftest.
$ac_ext >&5
3080 ac_cv_type_signal
=int
3085 echo "$ac_t""$ac_cv_type_signal" 1>&6
3086 cat >> confdefs.h
<<EOF
3087 #define RETSIGTYPE $ac_cv_type_signal
3092 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3093 echo "configure:3094: checking for ANSI C header files" >&5
3094 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 cat > conftest.
$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3105 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3106 { (eval echo configure
:3107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3107 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3108 if test -z "$ac_err"; then
3110 ac_cv_header_stdc
=yes
3113 echo "configure: failed program was:" >&5
3114 cat conftest.
$ac_ext >&5
3116 ac_cv_header_stdc
=no
3120 if test $ac_cv_header_stdc = yes; then
3121 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3122 cat > conftest.
$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3128 egrep "memchr" >/dev
/null
2>&1; then
3132 ac_cv_header_stdc
=no
3138 if test $ac_cv_header_stdc = yes; then
3139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3140 cat > conftest.
$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3146 egrep "free" >/dev
/null
2>&1; then
3150 ac_cv_header_stdc
=no
3156 if test $ac_cv_header_stdc = yes; then
3157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3158 if test "$cross_compiling" = yes; then
3161 cat > conftest.
$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3165 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3166 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3167 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3168 int main () { int i; for (i = 0; i < 256; i++)
3169 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3173 if { (eval echo configure
:3174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3177 echo "configure: failed program was:" >&5
3178 cat conftest.
$ac_ext >&5
3180 ac_cv_header_stdc
=no
3188 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3189 if test $ac_cv_header_stdc = yes; then
3190 cat >> confdefs.h
<<\EOF
3191 #define STDC_HEADERS 1
3197 for ac_hdr
in ctype.h curses.h endian.h link.h \
3198 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3199 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h \
3200 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3201 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h
3203 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3204 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3205 echo "configure:3206: checking for $ac_hdr" >&5
3206 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3209 cat > conftest.
$ac_ext <<EOF
3210 #line 3211 "configure"
3211 #include "confdefs.h"
3214 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3215 { (eval echo configure
:3216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3216 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3217 if test -z "$ac_err"; then
3219 eval "ac_cv_header_$ac_safe=yes"
3222 echo "configure: failed program was:" >&5
3223 cat conftest.
$ac_ext >&5
3225 eval "ac_cv_header_$ac_safe=no"
3229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3230 echo "$ac_t""yes" 1>&6
3231 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3232 cat >> confdefs.h
<<EOF
3233 #define $ac_tr_hdr 1
3237 echo "$ac_t""no" 1>&6
3241 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3242 echo "configure:3243: checking whether stat file-mode macros are broken" >&5
3243 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3246 cat > conftest.
$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 #include <sys/types.h>
3250 #include <sys/stat.h>
3252 #if defined(S_ISBLK) && defined(S_IFDIR)
3253 # if S_ISBLK (S_IFDIR)
3258 #if defined(S_ISBLK) && defined(S_IFCHR)
3259 # if S_ISBLK (S_IFCHR)
3264 #if defined(S_ISLNK) && defined(S_IFREG)
3265 # if S_ISLNK (S_IFREG)
3270 #if defined(S_ISSOCK) && defined(S_IFREG)
3271 # if S_ISSOCK (S_IFREG)
3277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3278 egrep "You lose" >/dev
/null
2>&1; then
3280 ac_cv_header_stat_broken
=yes
3283 ac_cv_header_stat_broken
=no
3289 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3290 if test $ac_cv_header_stat_broken = yes; then
3291 cat >> confdefs.h
<<\EOF
3292 #define STAT_MACROS_BROKEN 1
3298 echo $ac_n "checking for working const""... $ac_c" 1>&6
3299 echo "configure:3300: checking for working const" >&5
3300 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 cat > conftest.
$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3309 /* Ultrix mips cc rejects this. */
3310 typedef int charset[2]; const charset x;
3311 /* SunOS 4.1.1 cc rejects this. */
3312 char const *const *ccp;
3314 /* NEC SVR4.0.2 mips cc rejects this. */
3315 struct point {int x, y;};
3316 static struct point const zero = {0,0};
3317 /* AIX XL C 1.02.0.0 rejects this.
3318 It does not let you subtract one const X* pointer from another in an arm
3319 of an if-expression whose if-part is not a constant expression */
3320 const char *g = "string";
3321 ccp = &g + (g ? g-g : 0);
3322 /* HPUX 7.0 cc rejects these. */
3325 ccp = (char const *const *) p;
3326 { /* SCO 3.2v4 cc rejects this. */
3328 char const *s = 0 ? (char *) 0 : (char const *) 0;
3332 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3334 const int *foo = &x[0];
3337 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3338 typedef const int *iptr;
3342 { /* AIX XL C 1.02.0.0 rejects this saying
3343 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3344 struct s { int j; const int *ap[3]; };
3345 struct s *b; b->j = 5;
3347 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3353 if { (eval echo configure
:3354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3357 echo "configure: failed program was:" >&5
3358 cat conftest.
$ac_ext >&5
3365 echo "$ac_t""$ac_cv_c_const" 1>&6
3366 if test $ac_cv_c_const = no
; then
3367 cat >> confdefs.h
<<\EOF
3374 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc
3376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3377 echo "configure:3378: checking for $ac_func" >&5
3378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3379 echo $ac_n "(cached) $ac_c" 1>&6
3381 cat > conftest.
$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384 /* System header to define __stub macros and hopefully few prototypes,
3385 which can conflict with char $ac_func(); below. */
3387 /* Override any gcc2 internal prototype to avoid an error. */
3388 /* We use char because int might match the return type of a gcc2
3389 builtin and then its argument prototype would still apply. */
3394 /* The GNU C library defines this for functions which it implements
3395 to always fail with ENOSYS. Some functions are actually named
3396 something starting with __ and the normal name is an alias. */
3397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3405 if { (eval echo configure
:3406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3407 eval "ac_cv_func_$ac_func=yes"
3409 echo "configure: failed program was:" >&5
3410 cat conftest.
$ac_ext >&5
3412 eval "ac_cv_func_$ac_func=no"
3417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3418 echo "$ac_t""yes" 1>&6
3419 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3420 cat >> confdefs.h
<<EOF
3421 #define $ac_tr_func 1
3425 echo "$ac_t""no" 1>&6
3429 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3430 # for constant arguments. Useless!
3431 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3432 echo "configure:3433: checking for working alloca.h" >&5
3433 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 cat > conftest.
$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3441 char *p = alloca(2 * sizeof(int));
3444 if { (eval echo configure
:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3446 ac_cv_header_alloca_h
=yes
3448 echo "configure: failed program was:" >&5
3449 cat conftest.
$ac_ext >&5
3451 ac_cv_header_alloca_h
=no
3456 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3457 if test $ac_cv_header_alloca_h = yes; then
3458 cat >> confdefs.h
<<\EOF
3459 #define HAVE_ALLOCA_H 1
3464 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3465 echo "configure:3466: checking for alloca" >&5
3466 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3469 cat > conftest.
$ac_ext <<EOF
3470 #line 3471 "configure"
3471 #include "confdefs.h"
3474 # define alloca __builtin_alloca
3477 # include <malloc.h>
3478 # define alloca _alloca
3481 # include <alloca.h>
3486 # ifndef alloca /* predefined by HP cc +Olibcalls */
3495 char *p = (char *) alloca(1);
3498 if { (eval echo configure
:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3500 ac_cv_func_alloca_works
=yes
3502 echo "configure: failed program was:" >&5
3503 cat conftest.
$ac_ext >&5
3505 ac_cv_func_alloca_works
=no
3510 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3511 if test $ac_cv_func_alloca_works = yes; then
3512 cat >> confdefs.h
<<\EOF
3513 #define HAVE_ALLOCA 1
3518 if test $ac_cv_func_alloca_works = no
; then
3519 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3520 # that cause trouble. Some versions do not even contain alloca or
3521 # contain a buggy version. If you still want to use their alloca,
3522 # use ar to extract alloca.o from them instead of compiling alloca.c.
3523 ALLOCA
=alloca.
${ac_objext}
3524 cat >> confdefs.h
<<\EOF
3529 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3530 echo "configure:3531: checking whether alloca needs Cray hooks" >&5
3531 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3534 cat > conftest.
$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3537 #if defined(CRAY) && ! defined(CRAY2)
3544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3545 egrep "webecray" >/dev
/null
2>&1; then
3556 echo "$ac_t""$ac_cv_os_cray" 1>&6
3557 if test $ac_cv_os_cray = yes; then
3558 for ac_func
in _getb67 GETB67 getb67
; do
3559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3560 echo "configure:3561: checking for $ac_func" >&5
3561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3564 cat > conftest.
$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 /* System header to define __stub macros and hopefully few prototypes,
3568 which can conflict with char $ac_func(); below. */
3570 /* Override any gcc2 internal prototype to avoid an error. */
3571 /* We use char because int might match the return type of a gcc2
3572 builtin and then its argument prototype would still apply. */
3577 /* The GNU C library defines this for functions which it implements
3578 to always fail with ENOSYS. Some functions are actually named
3579 something starting with __ and the normal name is an alias. */
3580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3588 if { (eval echo configure
:3589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3590 eval "ac_cv_func_$ac_func=yes"
3592 echo "configure: failed program was:" >&5
3593 cat conftest.
$ac_ext >&5
3595 eval "ac_cv_func_$ac_func=no"
3600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3601 echo "$ac_t""yes" 1>&6
3602 cat >> confdefs.h
<<EOF
3603 #define CRAY_STACKSEG_END $ac_func
3608 echo "$ac_t""no" 1>&6
3614 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3615 echo "configure:3616: checking stack direction for C alloca" >&5
3616 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 if test "$cross_compiling" = yes; then
3620 ac_cv_c_stack_direction
=0
3622 cat > conftest.
$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 find_stack_direction ()
3627 static char *addr = 0;
3632 return find_stack_direction ();
3635 return (&dummy > addr) ? 1 : -1;
3639 exit (find_stack_direction() < 0);
3642 if { (eval echo configure
:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3644 ac_cv_c_stack_direction
=1
3646 echo "configure: failed program was:" >&5
3647 cat conftest.
$ac_ext >&5
3649 ac_cv_c_stack_direction
=-1
3656 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3657 cat >> confdefs.h
<<EOF
3658 #define STACK_DIRECTION $ac_cv_c_stack_direction
3664 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3665 echo "configure:3666: checking whether malloc must be declared" >&5
3666 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3669 cat > conftest.
$ac_ext <<EOF
3670 #line 3671 "configure"
3671 #include "confdefs.h"
3674 #ifdef HAVE_STRING_H
3677 #ifdef HAVE_STRINGS_H
3678 #include <strings.h>
3681 #ifdef HAVE_STDLIB_H
3684 #ifdef HAVE_UNISTD_H
3688 char *(*pfn) = (char *(*)) malloc
3691 if { (eval echo configure
:3692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3693 bfd_cv_decl_needed_malloc
=no
3695 echo "configure: failed program was:" >&5
3696 cat conftest.
$ac_ext >&5
3698 bfd_cv_decl_needed_malloc
=yes
3703 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3704 if test $bfd_cv_decl_needed_malloc = yes; then
3705 cat >> confdefs.h
<<\EOF
3706 #define NEED_DECLARATION_MALLOC 1
3711 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3712 echo "configure:3713: checking whether realloc must be declared" >&5
3713 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3716 cat > conftest.
$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3721 #ifdef HAVE_STRING_H
3724 #ifdef HAVE_STRINGS_H
3725 #include <strings.h>
3728 #ifdef HAVE_STDLIB_H
3731 #ifdef HAVE_UNISTD_H
3735 char *(*pfn) = (char *(*)) realloc
3738 if { (eval echo configure
:3739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3740 bfd_cv_decl_needed_realloc
=no
3742 echo "configure: failed program was:" >&5
3743 cat conftest.
$ac_ext >&5
3745 bfd_cv_decl_needed_realloc
=yes
3750 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3751 if test $bfd_cv_decl_needed_realloc = yes; then
3752 cat >> confdefs.h
<<\EOF
3753 #define NEED_DECLARATION_REALLOC 1
3758 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3759 echo "configure:3760: checking whether free must be declared" >&5
3760 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 cat > conftest.
$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3768 #ifdef HAVE_STRING_H
3771 #ifdef HAVE_STRINGS_H
3772 #include <strings.h>
3775 #ifdef HAVE_STDLIB_H
3778 #ifdef HAVE_UNISTD_H
3782 char *(*pfn) = (char *(*)) free
3785 if { (eval echo configure
:3786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3787 bfd_cv_decl_needed_free
=no
3789 echo "configure: failed program was:" >&5
3790 cat conftest.
$ac_ext >&5
3792 bfd_cv_decl_needed_free
=yes
3797 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
3798 if test $bfd_cv_decl_needed_free = yes; then
3799 cat >> confdefs.h
<<\EOF
3800 #define NEED_DECLARATION_FREE 1
3805 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
3806 echo "configure:3807: checking whether strerror must be declared" >&5
3807 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
3808 echo $ac_n "(cached) $ac_c" 1>&6
3810 cat > conftest.
$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3815 #ifdef HAVE_STRING_H
3818 #ifdef HAVE_STRINGS_H
3819 #include <strings.h>
3822 #ifdef HAVE_STDLIB_H
3825 #ifdef HAVE_UNISTD_H
3829 char *(*pfn) = (char *(*)) strerror
3832 if { (eval echo configure
:3833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3834 bfd_cv_decl_needed_strerror
=no
3836 echo "configure: failed program was:" >&5
3837 cat conftest.
$ac_ext >&5
3839 bfd_cv_decl_needed_strerror
=yes
3844 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
3845 if test $bfd_cv_decl_needed_strerror = yes; then
3846 cat >> confdefs.h
<<\EOF
3847 #define NEED_DECLARATION_STRERROR 1
3852 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
3853 echo "configure:3854: checking whether strdup must be declared" >&5
3854 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 cat > conftest.
$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3862 #ifdef HAVE_STRING_H
3865 #ifdef HAVE_STRINGS_H
3866 #include <strings.h>
3869 #ifdef HAVE_STDLIB_H
3872 #ifdef HAVE_UNISTD_H
3876 char *(*pfn) = (char *(*)) strdup
3879 if { (eval echo configure
:3880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3881 bfd_cv_decl_needed_strdup
=no
3883 echo "configure: failed program was:" >&5
3884 cat conftest.
$ac_ext >&5
3886 bfd_cv_decl_needed_strdup
=yes
3891 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
3892 if test $bfd_cv_decl_needed_strdup = yes; then
3893 cat >> confdefs.h
<<\EOF
3894 #define NEED_DECLARATION_STRDUP 1
3899 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
3900 echo "configure:3901: checking whether strstr must be declared" >&5
3901 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3904 cat > conftest.
$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3909 #ifdef HAVE_STRING_H
3912 #ifdef HAVE_STRINGS_H
3913 #include <strings.h>
3916 #ifdef HAVE_STDLIB_H
3919 #ifdef HAVE_UNISTD_H
3923 char *(*pfn) = (char *(*)) strstr
3926 if { (eval echo configure
:3927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3928 bfd_cv_decl_needed_strstr
=no
3930 echo "configure: failed program was:" >&5
3931 cat conftest.
$ac_ext >&5
3933 bfd_cv_decl_needed_strstr
=yes
3938 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
3939 if test $bfd_cv_decl_needed_strstr = yes; then
3940 cat >> confdefs.h
<<\EOF
3941 #define NEED_DECLARATION_STRSTR 1
3948 # The following save_state_t checkery is only necessary for HPUX
3949 # versions earlier than 10.20. When those fade from memory, this
3950 # could be expunged. --jsm 1999-03-22
3952 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
3953 echo "configure:3954: checking for HPUX save_state structure" >&5
3954 cat > conftest.
$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3957 #include <machine/save_state.h>
3959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3960 egrep "save_state_t" >/dev
/null
2>&1; then
3962 gdb_cv_hpux_savestate
=yes
3965 gdb_cv_hpux_savestate
=no
3969 cat > conftest.
$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 #include <machine/save_state.h>
3974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3975 egrep "ss_wide" >/dev
/null
2>&1; then
3977 gdb_cv_hpux_sswide
=yes
3980 gdb_cv_hpux_sswide
=no
3984 if test $gdb_cv_hpux_savestate = yes
3986 cat >> confdefs.h
<<\EOF
3987 #define HAVE_STRUCT_SAVE_STATE_T 1
3991 if test $gdb_cv_hpux_sswide = yes
3993 cat >> confdefs.h
<<\EOF
3994 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
3998 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4001 # If we are configured native on GNU/Linux, work around problems with
4003 # Also detect which type of /proc is in use, such as for Unixware.
4005 if test "${target}" = "${host}"; then
4006 gdb_cv_hostos_is_solaris
=no
4009 cat >> confdefs.h
<<\EOF
4010 #define START_INFERIOR_TRAPS_EXPECTED 2
4013 cat >> confdefs.h
<<\EOF
4014 #define sys_quotactl 1
4019 gdb_cv_hostos_is_solaris
=yes ;;
4021 echo $ac_n "checking for directory proc entries""... $ac_c" 1>&6
4022 echo "configure:4023: checking for directory proc entries" >&5
4023 # The [gdb_host != sun4sol2] hack is because Solaris does provide the
4024 # multiple procfs files as of Solaris 2.6, but GDB can't use it right now.
4025 if test "$ac_cv_header_sys_procfs_h" = yes -a \
4026 "$gdb_cv_hostos_is_solaris" = no \
4028 -a -f /proc
/$$
/ctl \
4030 -a -f /proc
/$$
/map \
4031 -a -f /proc
/$$
/status
; then
4032 echo "$ac_t""yes" 1>&6
4033 cat >> confdefs.h
<<\EOF
4034 #define HAVE_MULTIPLE_PROC_FDS 1
4038 echo "$ac_t""no" 1>&6
4042 if test "$ac_cv_header_sys_procfs_h" = yes; then
4043 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4044 echo "configure:4045: checking for pstatus_t in sys/procfs.h" >&5
4045 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4048 cat > conftest.
$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4051 #include <sys/procfs.h>
4056 if { (eval echo configure
:4057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4058 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4060 echo "configure: failed program was:" >&5
4061 cat conftest.
$ac_ext >&5
4063 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4069 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4070 cat >> confdefs.h
<<\EOF
4071 #define HAVE_PSTATUS_T 1
4075 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4077 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4078 echo "configure:4079: checking for prrun_t in sys/procfs.h" >&5
4079 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4082 cat > conftest.
$ac_ext <<EOF
4083 #line 4084 "configure"
4084 #include "confdefs.h"
4085 #include <sys/procfs.h>
4090 if { (eval echo configure
:4091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4092 bfd_cv_have_sys_procfs_type_prrun_t
=yes
4094 echo "configure: failed program was:" >&5
4095 cat conftest.
$ac_ext >&5
4097 bfd_cv_have_sys_procfs_type_prrun_t
=no
4103 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4104 cat >> confdefs.h
<<\EOF
4105 #define HAVE_PRRUN_T 1
4109 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4111 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4112 echo "configure:4113: checking for gregset_t in sys/procfs.h" >&5
4113 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4114 echo $ac_n "(cached) $ac_c" 1>&6
4116 cat > conftest.
$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4119 #include <sys/procfs.h>
4124 if { (eval echo configure
:4125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4126 bfd_cv_have_sys_procfs_type_gregset_t
=yes
4128 echo "configure: failed program was:" >&5
4129 cat conftest.
$ac_ext >&5
4131 bfd_cv_have_sys_procfs_type_gregset_t
=no
4137 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4138 cat >> confdefs.h
<<\EOF
4139 #define HAVE_GREGSET_T 1
4143 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4145 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4146 echo "configure:4147: checking for fpregset_t in sys/procfs.h" >&5
4147 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4150 cat > conftest.
$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4153 #include <sys/procfs.h>
4158 if { (eval echo configure
:4159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4160 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
4162 echo "configure: failed program was:" >&5
4163 cat conftest.
$ac_ext >&5
4165 bfd_cv_have_sys_procfs_type_fpregset_t
=no
4171 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4172 cat >> confdefs.h
<<\EOF
4173 #define HAVE_FPREGSET_T 1
4177 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4181 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4182 echo "configure:4183: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4183 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4186 cat > conftest.
$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4190 #include <sys/types.h>
4191 #include <sys/procfs.h>
4196 dummy = ioctl(0, PIOCSET, &dummy);
4200 if { (eval echo configure
:4201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4202 gdb_cv_have_procfs_piocset
=yes
4204 echo "configure: failed program was:" >&5
4205 cat conftest.
$ac_ext >&5
4207 gdb_cv_have_procfs_piocset
=no
4212 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4213 if test $gdb_cv_have_procfs_piocset = yes; then
4214 cat >> confdefs.h
<<\EOF
4215 #define HAVE_PROCFS_PIOCSET 1
4221 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4222 echo "configure:4223: checking for main in -lm" >&5
4223 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
4224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4227 ac_save_LIBS
="$LIBS"
4229 cat > conftest.
$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4237 if { (eval echo configure
:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4239 eval "ac_cv_lib_$ac_lib_var=yes"
4241 echo "configure: failed program was:" >&5
4242 cat conftest.
$ac_ext >&5
4244 eval "ac_cv_lib_$ac_lib_var=no"
4247 LIBS
="$ac_save_LIBS"
4250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4251 echo "$ac_t""yes" 1>&6
4252 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4254 cat >> confdefs.h
<<EOF
4255 #define $ac_tr_lib 1
4261 echo "$ac_t""no" 1>&6
4265 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4266 echo "configure:4267: checking for wctype in -lc" >&5
4267 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4269 echo $ac_n "(cached) $ac_c" 1>&6
4271 ac_save_LIBS
="$LIBS"
4273 cat > conftest.
$ac_ext <<EOF
4274 #line 4275 "configure"
4275 #include "confdefs.h"
4276 /* Override any gcc2 internal prototype to avoid an error. */
4277 /* We use char because int might match the return type of a gcc2
4278 builtin and then its argument prototype would still apply. */
4285 if { (eval echo configure
:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4287 eval "ac_cv_lib_$ac_lib_var=yes"
4289 echo "configure: failed program was:" >&5
4290 cat conftest.
$ac_ext >&5
4292 eval "ac_cv_lib_$ac_lib_var=no"
4295 LIBS
="$ac_save_LIBS"
4298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4299 echo "$ac_t""yes" 1>&6
4302 echo "$ac_t""no" 1>&6
4303 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4304 echo "configure:4305: checking for wctype in -lw" >&5
4305 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 ac_save_LIBS
="$LIBS"
4311 cat > conftest.
$ac_ext <<EOF
4312 #line 4313 "configure"
4313 #include "confdefs.h"
4314 /* Override any gcc2 internal prototype to avoid an error. */
4315 /* We use char because int might match the return type of a gcc2
4316 builtin and then its argument prototype would still apply. */
4323 if { (eval echo configure
:4324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4325 eval "ac_cv_lib_$ac_lib_var=yes"
4327 echo "configure: failed program was:" >&5
4328 cat conftest.
$ac_ext >&5
4330 eval "ac_cv_lib_$ac_lib_var=no"
4333 LIBS
="$ac_save_LIBS"
4336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4337 echo "$ac_t""yes" 1>&6
4338 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4339 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4340 cat >> confdefs.h
<<EOF
4341 #define $ac_tr_lib 1
4347 echo "$ac_t""no" 1>&6
4354 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4355 echo "configure:4356: checking for long long support in compiler" >&5
4356 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4359 cat > conftest.
$ac_ext <<EOF
4360 #line 4361 "configure"
4361 #include "confdefs.h"
4365 extern long long foo;
4366 switch (foo & 2) { case 0: return 1; }
4370 if { (eval echo configure
:4371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4372 gdb_cv_c_long_long
=yes
4374 echo "configure: failed program was:" >&5
4375 cat conftest.
$ac_ext >&5
4377 gdb_cv_c_long_long
=no
4382 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4383 if test $gdb_cv_c_long_long = yes; then
4384 cat >> confdefs.h
<<\EOF
4385 #define CC_HAS_LONG_LONG 1
4391 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4392 echo "configure:4393: checking for long long support in printf" >&5
4393 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4394 echo $ac_n "(cached) $ac_c" 1>&6
4396 if test "$cross_compiling" = yes; then
4397 gdb_cv_printf_has_long_long
=no
4399 cat > conftest.
$ac_ext <<EOF
4400 #line 4401 "configure"
4401 #include "confdefs.h"
4406 l = (l << 16) + 0x0123;
4407 l = (l << 16) + 0x4567;
4408 l = (l << 16) + 0x89ab;
4409 l = (l << 16) + 0xcdef;
4410 sprintf (buf, "0x%016llx", l);
4411 return (strcmp ("0x0123456789abcdef", buf));
4414 if { (eval echo configure
:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4416 gdb_cv_printf_has_long_long
=yes
4418 echo "configure: failed program was:" >&5
4419 cat conftest.
$ac_ext >&5
4421 gdb_cv_printf_has_long_long
=no
4428 if test $gdb_cv_printf_has_long_long = yes; then
4429 cat >> confdefs.h
<<\EOF
4430 #define PRINTF_HAS_LONG_LONG 1
4434 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4437 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4438 echo "configure:4439: checking for long double support in compiler" >&5
4439 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4440 echo $ac_n "(cached) $ac_c" 1>&6
4442 cat > conftest.
$ac_ext <<EOF
4443 #line 4444 "configure"
4444 #include "confdefs.h"
4450 if { (eval echo configure
:4451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4452 ac_cv_c_long_double
=yes
4454 echo "configure: failed program was:" >&5
4455 cat conftest.
$ac_ext >&5
4457 ac_cv_c_long_double
=no
4462 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4463 if test $ac_cv_c_long_double = yes; then
4464 cat >> confdefs.h
<<\EOF
4465 #define HAVE_LONG_DOUBLE 1
4471 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4472 echo "configure:4473: checking for long double support in printf" >&5
4473 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4476 if test "$cross_compiling" = yes; then
4477 gdb_cv_printf_has_long_double
=no
4479 cat > conftest.
$ac_ext <<EOF
4480 #line 4481 "configure"
4481 #include "confdefs.h"
4485 long double f = 3.141592653;
4486 sprintf (buf, "%Lg", f);
4487 return (strncmp ("3.14159", buf, 7));
4490 if { (eval echo configure
:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4492 gdb_cv_printf_has_long_double
=yes
4494 echo "configure: failed program was:" >&5
4495 cat conftest.
$ac_ext >&5
4497 gdb_cv_printf_has_long_double
=no
4504 if test $gdb_cv_printf_has_long_double = yes; then
4505 cat >> confdefs.h
<<\EOF
4506 #define PRINTF_HAS_LONG_DOUBLE 1
4510 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4513 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4514 echo "configure:4515: checking for long double support in scanf" >&5
4515 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4518 if test "$cross_compiling" = yes; then
4519 gdb_cv_scanf_has_long_double
=no
4521 cat > conftest.
$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4526 char *buf = "3.141592653";
4528 sscanf (buf, "%Lg", &f);
4529 return !(f > 3.14159 && f < 3.14160);
4532 if { (eval echo configure
:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4534 gdb_cv_scanf_has_long_double
=yes
4536 echo "configure: failed program was:" >&5
4537 cat conftest.
$ac_ext >&5
4539 gdb_cv_scanf_has_long_double
=no
4546 if test $gdb_cv_scanf_has_long_double = yes; then
4547 cat >> confdefs.h
<<\EOF
4548 #define SCANF_HAS_LONG_DOUBLE 1
4552 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4554 for ac_hdr
in unistd.h
4556 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4557 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4558 echo "configure:4559: checking for $ac_hdr" >&5
4559 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4562 cat > conftest.
$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4567 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4568 { (eval echo configure
:4569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4569 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4570 if test -z "$ac_err"; then
4572 eval "ac_cv_header_$ac_safe=yes"
4575 echo "configure: failed program was:" >&5
4576 cat conftest.
$ac_ext >&5
4578 eval "ac_cv_header_$ac_safe=no"
4582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4583 echo "$ac_t""yes" 1>&6
4584 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4585 cat >> confdefs.h
<<EOF
4586 #define $ac_tr_hdr 1
4590 echo "$ac_t""no" 1>&6
4594 for ac_func
in getpagesize
4596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4597 echo "configure:4598: checking for $ac_func" >&5
4598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4599 echo $ac_n "(cached) $ac_c" 1>&6
4601 cat > conftest.
$ac_ext <<EOF
4602 #line 4603 "configure"
4603 #include "confdefs.h"
4604 /* System header to define __stub macros and hopefully few prototypes,
4605 which can conflict with char $ac_func(); below. */
4607 /* Override any gcc2 internal prototype to avoid an error. */
4608 /* We use char because int might match the return type of a gcc2
4609 builtin and then its argument prototype would still apply. */
4614 /* The GNU C library defines this for functions which it implements
4615 to always fail with ENOSYS. Some functions are actually named
4616 something starting with __ and the normal name is an alias. */
4617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4625 if { (eval echo configure
:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4627 eval "ac_cv_func_$ac_func=yes"
4629 echo "configure: failed program was:" >&5
4630 cat conftest.
$ac_ext >&5
4632 eval "ac_cv_func_$ac_func=no"
4637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4638 echo "$ac_t""yes" 1>&6
4639 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4640 cat >> confdefs.h
<<EOF
4641 #define $ac_tr_func 1
4645 echo "$ac_t""no" 1>&6
4649 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4650 echo "configure:4651: checking for working mmap" >&5
4651 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4654 if test "$cross_compiling" = yes; then
4655 ac_cv_func_mmap_fixed_mapped
=no
4657 cat > conftest.
$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4661 /* Thanks to Mike Haertel and Jim Avera for this test.
4662 Here is a matrix of mmap possibilities:
4663 mmap private not fixed
4664 mmap private fixed at somewhere currently unmapped
4665 mmap private fixed at somewhere already mapped
4666 mmap shared not fixed
4667 mmap shared fixed at somewhere currently unmapped
4668 mmap shared fixed at somewhere already mapped
4669 For private mappings, we should verify that changes cannot be read()
4670 back from the file, nor mmap's back from the file at a different
4671 address. (There have been systems where private was not correctly
4672 implemented like the infamous i386 svr4.0, and systems where the
4673 VM page cache was not coherent with the filesystem buffer cache
4674 like early versions of FreeBSD and possibly contemporary NetBSD.)
4675 For shared mappings, we should conversely verify that changes get
4676 propogated back to all the places they're supposed to be.
4678 Grep wants private fixed already mapped.
4679 The main things grep needs to know about mmap are:
4680 * does it exist and is it safe to write into the mmap'd area
4681 * how to use it (BSD variants) */
4682 #include <sys/types.h>
4684 #include <sys/mman.h>
4686 /* This mess was copied from the GNU getpagesize.h. */
4687 #ifndef HAVE_GETPAGESIZE
4688 # ifdef HAVE_UNISTD_H
4689 # include <unistd.h>
4692 /* Assume that all systems that can run configure have sys/param.h. */
4693 # ifndef HAVE_SYS_PARAM_H
4694 # define HAVE_SYS_PARAM_H 1
4697 # ifdef _SC_PAGESIZE
4698 # define getpagesize() sysconf(_SC_PAGESIZE)
4699 # else /* no _SC_PAGESIZE */
4700 # ifdef HAVE_SYS_PARAM_H
4701 # include <sys/param.h>
4702 # ifdef EXEC_PAGESIZE
4703 # define getpagesize() EXEC_PAGESIZE
4704 # else /* no EXEC_PAGESIZE */
4706 # define getpagesize() NBPG * CLSIZE
4709 # endif /* no CLSIZE */
4710 # else /* no NBPG */
4712 # define getpagesize() NBPC
4713 # else /* no NBPC */
4715 # define getpagesize() PAGESIZE
4716 # endif /* PAGESIZE */
4717 # endif /* no NBPC */
4718 # endif /* no NBPG */
4719 # endif /* no EXEC_PAGESIZE */
4720 # else /* no HAVE_SYS_PARAM_H */
4721 # define getpagesize() 8192 /* punt totally */
4722 # endif /* no HAVE_SYS_PARAM_H */
4723 # endif /* no _SC_PAGESIZE */
4725 #endif /* no HAVE_GETPAGESIZE */
4728 extern "C" { void *malloc(unsigned); }
4736 char *data, *data2, *data3;
4740 pagesize = getpagesize();
4743 * First, make a file with some known garbage in it.
4745 data = malloc(pagesize);
4748 for (i = 0; i < pagesize; ++i)
4749 *(data + i) = rand();
4751 fd = creat("conftestmmap", 0600);
4754 if (write(fd, data, pagesize) != pagesize)
4759 * Next, try to mmap the file at a fixed address which
4760 * already has something else allocated at it. If we can,
4761 * also make sure that we see the same garbage.
4763 fd = open("conftestmmap", O_RDWR);
4766 data2 = malloc(2 * pagesize);
4769 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4770 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4771 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4773 for (i = 0; i < pagesize; ++i)
4774 if (*(data + i) != *(data2 + i))
4778 * Finally, make sure that changes to the mapped area
4779 * do not percolate back to the file as seen by read().
4780 * (This is a bug on some variants of i386 svr4.0.)
4782 for (i = 0; i < pagesize; ++i)
4783 *(data2 + i) = *(data2 + i) + 1;
4784 data3 = malloc(pagesize);
4787 if (read(fd, data3, pagesize) != pagesize)
4789 for (i = 0; i < pagesize; ++i)
4790 if (*(data + i) != *(data3 + i))
4793 unlink("conftestmmap");
4798 if { (eval echo configure
:4799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4800 ac_cv_func_mmap_fixed_mapped
=yes
4802 echo "configure: failed program was:" >&5
4803 cat conftest.
$ac_ext >&5
4805 ac_cv_func_mmap_fixed_mapped
=no
4812 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4813 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4814 cat >> confdefs.h
<<\EOF
4823 if test ${build} = ${host} -a ${host} = ${target} ; then
4826 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
4827 echo "configure:4828: checking for HPUX/OSF thread support" >&5
4828 if test -f /usr
/include
/dce
/cma_config.h
; then
4829 if test "$GCC" = "yes" ; then
4830 echo "$ac_t""yes" 1>&6
4831 cat >> confdefs.h
<<\EOF
4832 #define HAVE_HPUX_THREAD_SUPPORT 1
4835 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
4836 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
4838 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
4841 echo "$ac_t""no" 1>&6
4845 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
4846 echo "configure:4847: checking for Solaris thread debugging library" >&5
4847 if test -f /usr
/lib
/libthread_db.so
.1 ; then
4848 echo "$ac_t""yes" 1>&6
4849 cat >> confdefs.h
<<\EOF
4850 #define HAVE_THREAD_DB_LIB 1
4853 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
4854 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
4855 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4856 echo "configure:4857: checking for dlopen in -ldl" >&5
4857 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 ac_save_LIBS
="$LIBS"
4863 cat > conftest.
$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4866 /* Override any gcc2 internal prototype to avoid an error. */
4867 /* We use char because int might match the return type of a gcc2
4868 builtin and then its argument prototype would still apply. */
4875 if { (eval echo configure
:4876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4877 eval "ac_cv_lib_$ac_lib_var=yes"
4879 echo "configure: failed program was:" >&5
4880 cat conftest.
$ac_ext >&5
4882 eval "ac_cv_lib_$ac_lib_var=no"
4885 LIBS
="$ac_save_LIBS"
4888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4889 echo "$ac_t""yes" 1>&6
4890 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4891 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4892 cat >> confdefs.h
<<EOF
4893 #define $ac_tr_lib 1
4899 echo "$ac_t""no" 1>&6
4902 if test "$GCC" = "yes" ; then
4903 # The GNU linker requires the -export-dynamic option to make
4904 # all symbols visible in the dynamic symbol table.
4905 hold_ldflags
=$LDFLAGS
4906 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
4907 echo "configure:4908: checking for the ld -export-dynamic flag" >&5
4908 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
4909 cat > conftest.
$ac_ext <<EOF
4910 #line 4911 "configure"
4911 #include "confdefs.h"
4917 if { (eval echo configure
:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4921 echo "configure: failed program was:" >&5
4922 cat conftest.
$ac_ext >&5
4927 LDFLAGS
=$hold_ldflags
4928 echo "$ac_t""$found" 1>&6
4929 if test $found = yes; then
4930 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
4933 # Sun randomly tweaked the prototypes in <proc_service.h>
4935 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
4936 echo "configure:4937: checking if <proc_service.h> is old" >&5
4937 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4941 cat > conftest.
$ac_ext <<EOF
4942 #line 4943 "configure"
4943 #include "confdefs.h"
4945 #include <proc_service.h>
4947 (struct ps_prochandle*, psaddr_t, const void*, size_t);
4953 if { (eval echo configure
:4954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4955 gdb_cv_proc_service_is_old
=no
4957 echo "configure: failed program was:" >&5
4958 cat conftest.
$ac_ext >&5
4960 gdb_cv_proc_service_is_old
=yes
4966 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
4967 if test $gdb_cv_proc_service_is_old = yes; then
4968 cat >> confdefs.h
<<\EOF
4969 #define PROC_SERVICE_IS_OLD 1
4974 echo "$ac_t""no" 1>&6
4983 # Check whether --enable-tui or --disable-tui was given.
4984 if test "${enable_tui+set}" = set; then
4985 enableval
="$enable_tui"
4987 case "${enable_tui}" in
4989 "") enable_tui
=yes ;;
4991 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
4997 case ${enable_tui} in
4999 cat >> confdefs.h
<<\EOF
5004 TUI_LIBRARY
=tui
/libtui.a
5014 # Check whether --enable-netrom or --disable-netrom was given.
5015 if test "${enable_netrom+set}" = set; then
5016 enableval
="$enable_netrom"
5017 case "${enableval}" in
5018 yes) enable_netrom
=yes ;;
5019 no
) enable_netrom
=no
;;
5020 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5025 if test "${enable_netrom}" = "yes"; then
5026 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
5027 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
5030 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5031 if test "${enable_build_warnings+set}" = set; then
5032 enableval
="$enable_build_warnings"
5033 build_warnings
="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
5034 case "${enableval}" in
5036 no
) build_warnings
="-w";;
5037 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5038 build_warnings
="${build_warnings} ${t}";;
5039 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5040 build_warnings
="${t} ${build_warnings}";;
5041 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5047 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5049 WARN_CFLAGS
="${build_warnings}"
5060 # Check whether --with-mmalloc or --without-mmalloc was given.
5061 if test "${with_mmalloc+set}" = set; then
5062 withval
="$with_mmalloc"
5063 case "${withval}" in
5064 yes) want_mmalloc
=true
;;
5065 no
) want_mmalloc
=false
;;
5066 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5072 if test x
$want_mmalloc = xtrue
; then
5073 cat >> confdefs.h
<<\EOF
5074 #define USE_MMALLOC 1
5077 cat >> confdefs.h
<<\EOF
5078 #define MMCHECK_FORCE 1
5081 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
5082 MMALLOC
='../mmalloc/libmmalloc.a'
5086 # In the Cygwin environment, we need some additional flags.
5087 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5088 echo "configure:5212: checking for cygwin" >&5
5089 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6
5092 cat > conftest.
$ac_ext <<EOF
5093 #line 5217 "configure"
5094 #include "confdefs.h"
5096 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5101 egrep "lose" >/dev
/null
2>&1; then
5103 gdb_cv_os_cygwin
=yes
5112 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5114 DLLTOOL
=${DLLTOOL-dlltool}
5115 WINDRES
=${WINDRES-windres}
5119 if test x
$gdb_host = xgo32
; then
5122 if test x
$gdb_cv_os_cygwin = xyes
; then
5123 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5126 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5127 echo "configure:5251: checking for tgetent in -lncurses" >&5
5128 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5129 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5132 ac_save_LIBS
="$LIBS"
5133 LIBS
="-lncurses $LIBS"
5134 cat > conftest.
$ac_ext <<EOF
5135 #line 5259 "configure"
5136 #include "confdefs.h"
5137 /* Override any gcc2 internal prototype to avoid an error. */
5138 /* We use char because int might match the return type of a gcc2
5139 builtin and then its argument prototype would still apply. */
5146 if { (eval echo configure
:5270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5148 eval "ac_cv_lib_$ac_lib_var=yes"
5150 echo "configure: failed program was:" >&5
5151 cat conftest.
$ac_ext >&5
5153 eval "ac_cv_lib_$ac_lib_var=no"
5156 LIBS
="$ac_save_LIBS"
5159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5160 echo "$ac_t""yes" 1>&6
5163 echo "$ac_t""no" 1>&6
5164 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
5165 echo "configure:5289: checking for tgetent in -lHcurses" >&5
5166 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
5167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5168 echo $ac_n "(cached) $ac_c" 1>&6
5170 ac_save_LIBS
="$LIBS"
5171 LIBS
="-lHcurses $LIBS"
5172 cat > conftest.
$ac_ext <<EOF
5173 #line 5297 "configure"
5174 #include "confdefs.h"
5175 /* Override any gcc2 internal prototype to avoid an error. */
5176 /* We use char because int might match the return type of a gcc2
5177 builtin and then its argument prototype would still apply. */
5184 if { (eval echo configure
:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5186 eval "ac_cv_lib_$ac_lib_var=yes"
5188 echo "configure: failed program was:" >&5
5189 cat conftest.
$ac_ext >&5
5191 eval "ac_cv_lib_$ac_lib_var=no"
5194 LIBS
="$ac_save_LIBS"
5197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5198 echo "$ac_t""yes" 1>&6
5201 echo "$ac_t""no" 1>&6
5202 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5203 echo "configure:5327: checking for tgetent in -ltermlib" >&5
5204 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
5205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5208 ac_save_LIBS
="$LIBS"
5209 LIBS
="-ltermlib $LIBS"
5210 cat > conftest.
$ac_ext <<EOF
5211 #line 5335 "configure"
5212 #include "confdefs.h"
5213 /* Override any gcc2 internal prototype to avoid an error. */
5214 /* We use char because int might match the return type of a gcc2
5215 builtin and then its argument prototype would still apply. */
5222 if { (eval echo configure
:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5224 eval "ac_cv_lib_$ac_lib_var=yes"
5226 echo "configure: failed program was:" >&5
5227 cat conftest.
$ac_ext >&5
5229 eval "ac_cv_lib_$ac_lib_var=no"
5232 LIBS
="$ac_save_LIBS"
5235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5236 echo "$ac_t""yes" 1>&6
5239 echo "$ac_t""no" 1>&6
5240 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5241 echo "configure:5365: checking for tgetent in -ltermcap" >&5
5242 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5244 echo $ac_n "(cached) $ac_c" 1>&6
5246 ac_save_LIBS
="$LIBS"
5247 LIBS
="-ltermcap $LIBS"
5248 cat > conftest.
$ac_ext <<EOF
5249 #line 5373 "configure"
5250 #include "confdefs.h"
5251 /* Override any gcc2 internal prototype to avoid an error. */
5252 /* We use char because int might match the return type of a gcc2
5253 builtin and then its argument prototype would still apply. */
5260 if { (eval echo configure
:5384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5262 eval "ac_cv_lib_$ac_lib_var=yes"
5264 echo "configure: failed program was:" >&5
5265 cat conftest.
$ac_ext >&5
5267 eval "ac_cv_lib_$ac_lib_var=no"
5270 LIBS
="$ac_save_LIBS"
5273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5274 echo "$ac_t""yes" 1>&6
5277 echo "$ac_t""no" 1>&6
5278 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5279 echo "configure:5403: checking for tgetent in -lcurses" >&5
5280 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5284 ac_save_LIBS
="$LIBS"
5285 LIBS
="-lcurses $LIBS"
5286 cat > conftest.
$ac_ext <<EOF
5287 #line 5411 "configure"
5288 #include "confdefs.h"
5289 /* Override any gcc2 internal prototype to avoid an error. */
5290 /* We use char because int might match the return type of a gcc2
5291 builtin and then its argument prototype would still apply. */
5298 if { (eval echo configure
:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5300 eval "ac_cv_lib_$ac_lib_var=yes"
5302 echo "configure: failed program was:" >&5
5303 cat conftest.
$ac_ext >&5
5305 eval "ac_cv_lib_$ac_lib_var=no"
5308 LIBS
="$ac_save_LIBS"
5311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5312 echo "$ac_t""yes" 1>&6
5315 echo "$ac_t""no" 1>&6
5316 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5317 echo "configure:5441: checking for tgetent in -lterminfo" >&5
5318 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
5319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 ac_save_LIBS
="$LIBS"
5323 LIBS
="-lterminfo $LIBS"
5324 cat > conftest.
$ac_ext <<EOF
5325 #line 5449 "configure"
5326 #include "confdefs.h"
5327 /* Override any gcc2 internal prototype to avoid an error. */
5328 /* We use char because int might match the return type of a gcc2
5329 builtin and then its argument prototype would still apply. */
5336 if { (eval echo configure
:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5338 eval "ac_cv_lib_$ac_lib_var=yes"
5340 echo "configure: failed program was:" >&5
5341 cat conftest.
$ac_ext >&5
5343 eval "ac_cv_lib_$ac_lib_var=no"
5346 LIBS
="$ac_save_LIBS"
5349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5350 echo "$ac_t""yes" 1>&6
5353 echo "$ac_t""no" 1>&6
5367 if test "x$TERM_LIB" = x
5369 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
5378 # If we find X, set shell vars x_includes and x_libraries to the
5379 # paths, otherwise set no_x=yes.
5380 # Uses ac_ vars as temps to allow command line to override cache and checks.
5381 # --without-x overrides everything else, but does not touch the cache.
5382 echo $ac_n "checking for X""... $ac_c" 1>&6
5383 echo "configure:6593: checking for X" >&5
5385 # Check whether --with-x or --without-x was given.
5386 if test "${with_x+set}" = set; then
5391 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5392 if test "x$with_x" = xno
; then
5393 # The user explicitly disabled X.
5396 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5397 # Both variables are already set.
5400 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
5403 # One or both of the vars are not set, and there is no cached value.
5404 ac_x_includes
=NO ac_x_libraries
=NO
5406 if mkdir conftestdir
; then
5408 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5409 cat > Imakefile
<<'EOF'
5411 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5413 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5414 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5415 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5416 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5417 for ac_extension
in a so sl
; do
5418 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5419 test -f $ac_im_libdir/libX11.
$ac_extension; then
5420 ac_im_usrlibdir
=$ac_im_libdir; break
5423 # Screen out bogus values from the imake configuration. They are
5424 # bogus both because they are the default anyway, and because
5425 # using them would break gcc on systems where it needs fixed includes.
5426 case "$ac_im_incroot" in
5428 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
5430 case "$ac_im_usrlibdir" in
5432 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
5439 if test "$ac_x_includes" = NO
; then
5440 # Guess where to find include files, by looking for this one X11 .h file.
5441 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
5443 # First, try using that file with no special directory specified.
5444 cat > conftest.
$ac_ext <<EOF
5445 #line 6655 "configure"
5446 #include "confdefs.h"
5447 #include <$x_direct_test_include>
5449 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5450 { (eval echo configure
:6660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5451 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5452 if test -z "$ac_err"; then
5454 # We can compile using X headers with no special include directory.
5458 echo "configure: failed program was:" >&5
5459 cat conftest.
$ac_ext >&5
5461 # Look for the header file in a standard set of common directories.
5462 # Check X11 before X11Rn because it is often a symlink to the current release.
5465 /usr
/X11R
6/include \
5466 /usr
/X11R
5/include \
5467 /usr
/X11R
4/include \
5470 /usr
/include
/X11R6 \
5471 /usr
/include
/X11R5 \
5472 /usr
/include
/X11R4 \
5474 /usr
/local
/X11
/include \
5475 /usr
/local
/X11R
6/include \
5476 /usr
/local
/X11R
5/include \
5477 /usr
/local
/X11R
4/include \
5479 /usr
/local
/include
/X11 \
5480 /usr
/local
/include
/X11R6 \
5481 /usr
/local
/include
/X11R5 \
5482 /usr
/local
/include
/X11R4 \
5486 /usr
/XFree86
/include
/X11 \
5489 /usr
/local
/include \
5490 /usr
/unsupported
/include \
5491 /usr
/athena
/include \
5492 /usr
/local
/x11r
5/include \
5493 /usr
/lpp
/Xamples
/include \
5495 /usr
/openwin
/include \
5496 /usr
/openwin
/share
/include \
5499 if test -r "$ac_dir/$x_direct_test_include"; then
5500 ac_x_includes
=$ac_dir
5506 fi # $ac_x_includes = NO
5508 if test "$ac_x_libraries" = NO
; then
5509 # Check for the libraries.
5511 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
5512 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
5514 # See if we find them without any special options.
5515 # Don't add to $LIBS permanently.
5516 ac_save_LIBS
="$LIBS"
5517 LIBS
="-l$x_direct_test_library $LIBS"
5518 cat > conftest.
$ac_ext <<EOF
5519 #line 6729 "configure"
5520 #include "confdefs.h"
5523 ${x_direct_test_function}()
5526 if { (eval echo configure
:6736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5528 LIBS
="$ac_save_LIBS"
5529 # We can link X programs with no special library path.
5532 echo "configure: failed program was:" >&5
5533 cat conftest.
$ac_ext >&5
5535 LIBS
="$ac_save_LIBS"
5536 # First see if replacing the include by lib works.
5537 # Check X11 before X11Rn because it is often a symlink to the current release.
5538 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
5549 /usr
/local
/X11
/lib \
5550 /usr
/local
/X11R
6/lib \
5551 /usr
/local
/X11R
5/lib \
5552 /usr
/local
/X11R
4/lib \
5554 /usr
/local
/lib
/X11 \
5555 /usr
/local
/lib
/X11R6 \
5556 /usr
/local
/lib
/X11R5 \
5557 /usr
/local
/lib
/X11R4 \
5561 /usr
/XFree86
/lib
/X11 \
5565 /usr
/unsupported
/lib \
5567 /usr
/local
/x11r
5/lib \
5568 /usr
/lpp
/Xamples
/lib \
5572 /usr
/openwin
/share
/lib \
5575 for ac_extension
in a so sl
; do
5576 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
5577 ac_x_libraries
=$ac_dir
5584 fi # $ac_x_libraries = NO
5586 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
5587 # Didn't find X anywhere. Cache the known absence of X.
5588 ac_cv_have_x
="have_x=no"
5590 # Record where we found X for the cache.
5591 ac_cv_have_x
="have_x=yes \
5592 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5596 eval "$ac_cv_have_x"
5599 if test "$have_x" != yes; then
5600 echo "$ac_t""$have_x" 1>&6
5603 # If each of the values was on the command line, it overrides each guess.
5604 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5605 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5606 # Update the cache value to reflect the command line values.
5607 ac_cv_have_x
="have_x=yes \
5608 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5609 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5614 # Unlike the sim directory, whether a simulator is linked is controlled by
5615 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
5616 # This code just checks for a few cases where we'd like to ignore those
5617 # definitions, even when they're present in the '.mt' file. These cases
5618 # are when --disable-sim is specified, or if the simulator directory is
5619 # not part of the soruce tree.
5621 # Check whether --enable-sim or --disable-sim was given.
5622 if test "${enable_sim+set}" = set; then
5623 enableval
="$enable_sim"
5624 echo "enable_sim = $enable_sim";
5625 echo "enableval = ${enableval}";
5626 case "${enableval}" in
5627 yes) ignore_sim
=false
;;
5628 no
) ignore_sim
=true
;;
5629 *) ignore_sim
=false
;;
5636 if test ! -d "${srcdir}/../sim"; then
5640 if test "${ignore_sim}" = "true"; then
5642 IGNORE_SIM_OBS
="SIM_OBS="
5646 cat >> confdefs.h
<<\EOF
5660 # Begin stuff to support --enable-shared
5661 # Check whether --enable-shared or --disable-shared was given.
5662 if test "${enable_shared+set}" = set; then
5663 enableval
="$enable_shared"
5664 case "${enableval}" in
5673 # If we have shared libraries, try to set rpath reasonably.
5674 if test "${shared}" = "true"; then
5677 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
5679 *-*-irix5* |
*-*-irix6*)
5680 HLDFLAGS
='-Wl,-rpath,$(libdir)'
5684 *-*-linux* |
*-pc-linux-gnu)
5685 HLDFLAGS
='-Wl,-rpath,$(libdir)'
5688 HLDFLAGS
='-R $(libdir)'
5691 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;'
5696 # On SunOS, if the linker supports the -rpath option, use it to
5697 # prevent ../bfd and ../opcodes from being included in the run time
5701 echo 'main () { }' > conftest.c
5702 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
5703 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
5705 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
5707 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
5709 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
5711 elif test "${shared}" = "true"; then
5712 HLDFLAGS
='-Wl,-rpath=$(libdir)'
5714 HLDFLAGS
='-Wl,-rpath='
5716 rm -f conftest.t conftest.c conftest
5721 # End stuff to support --enable-shared
5723 # target_subdir is used by the testsuite to find the target libraries.
5725 if test "${host}" != "${target}"; then
5726 target_subdir
="${target_alias}/"
5731 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
5732 if test ! -f ${host_makefile_frag}; then
5733 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
5735 frags
="$frags $host_makefile_frag"
5737 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
5738 if test ! -f ${target_makefile_frag}; then
5739 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
5741 frags
="$frags $target_makefile_frag"
5748 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5749 ' ${host_makefile_frag}`
5751 targetfile
=`sed -n '
5752 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5753 ' ${target_makefile_frag}`
5755 # these really aren't orthogonal true/false values of the same condition,
5756 # but shells are slow enough that I like to reuse the test conditions
5758 if test "${target}" = "${host}"; then
5759 nativefile
=`sed -n '
5760 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5761 ' ${host_makefile_frag}`
5763 # GDBserver is only useful in a "native" enviroment
5764 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
5768 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
5769 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
5770 # corresponding links. But we have to remove the xm.h files and tm.h
5771 # files anyway, e.g. when switching from "configure host" to
5777 if test "${hostfile}" != ""; then
5778 files
="${files} config/${gdb_host_cpu}/${hostfile}"
5779 links
="${links} xm.h"
5782 if test "${targetfile}" != ""; then
5783 files
="${files} config/${gdb_target_cpu}/${targetfile}"
5784 links
="${links} tm.h"
5787 if test "${nativefile}" != ""; then
5788 files
="${files} config/${gdb_host_cpu}/${nativefile}"
5789 links
="${links} nm.h"
5791 # A cross-only configuration.
5792 files
="${files} config/nm-empty.h"
5793 links
="${links} nm.h"
5798 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
5799 echo "configure:7080: checking for Cygwin environment" >&5
5800 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
5801 echo $ac_n "(cached) $ac_c" 1>&6
5803 cat > conftest.
$ac_ext <<EOF
5804 #line 7085 "configure"
5805 #include "confdefs.h"
5810 #define __CYGWIN__ __CYGWIN32__
5815 if { (eval echo configure
:7096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5819 echo "configure: failed program was:" >&5
5820 cat conftest.
$ac_ext >&5
5828 echo "$ac_t""$ac_cv_cygwin" 1>&6
5830 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
5831 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
5832 echo "configure:7113: checking for mingw32 environment" >&5
5833 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5836 cat > conftest.
$ac_ext <<EOF
5837 #line 7118 "configure"
5838 #include "confdefs.h"
5844 if { (eval echo configure
:7125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5848 echo "configure: failed program was:" >&5
5849 cat conftest.
$ac_ext >&5
5857 echo "$ac_t""$ac_cv_mingw32" 1>&6
5859 test "$ac_cv_mingw32" = yes && MINGW32
=yes
5862 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5863 echo "configure:7144: checking for executable suffix" >&5
5864 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5867 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
5871 echo 'int main () { return 0; }' > conftest.
$ac_ext
5873 if { (eval echo configure
:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5874 for file in conftest.
*; do
5876 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
5877 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
5881 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5884 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
5889 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
5890 echo "$ac_t""${ac_cv_exeext}" 1>&6
5894 subdirs
="$configdirs"
5897 cat > confcache
<<\EOF
5898 # This file is a shell script that caches the results of configure
5899 # tests run on this system so they can be shared between configure
5900 # scripts and configure runs. It is not useful on other systems.
5901 # If it contains results you don't want to keep, you may remove or edit it.
5903 # By default, configure uses ./config.cache as the cache file,
5904 # creating it if it does not exist already. You can give configure
5905 # the --cache-file=FILE option to use a different cache file; that is
5906 # what configure does when it calls configure scripts in
5907 # subdirectories, so they share the cache.
5908 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5909 # config.status only pays attention to the cache file if you give it the
5910 # --recheck option to rerun configure.
5913 # The following way of writing the cache mishandles newlines in values,
5914 # but we know of no workaround that is simple, portable, and efficient.
5915 # So, don't put newlines in cache variables' values.
5916 # Ultrix sh set writes to stderr and can't be redirected directly,
5917 # and sets the high bit in the cache file unless we assign to the vars.
5919 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5921 # `set' does not quote correctly, so add quotes (double-quote substitution
5922 # turns \\\\ into \\, and sed turns \\ into \).
5924 -e "s/'/'\\\\''/g" \
5925 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5928 # `set' quotes correctly as required by POSIX, so do not add quotes.
5929 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5932 if cmp -s $cache_file confcache
; then
5935 if test -w $cache_file; then
5936 echo "updating cache $cache_file"
5937 cat confcache
> $cache_file
5939 echo "not updating unwritable cache $cache_file"
5944 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5946 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5947 # Let make expand exec_prefix.
5948 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5950 # Any assignment to VPATH causes Sun make to only execute
5951 # the first set of double-colon rules, so remove it if not needed.
5952 # If there is a colon in the path, we need to keep it.
5953 if test "x$srcdir" = x.
; then
5954 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5957 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5959 DEFS
=-DHAVE_CONFIG_H
5961 # Without the "./", some shells look in PATH for config.status.
5962 : ${CONFIG_STATUS=./config.status}
5964 echo creating
$CONFIG_STATUS
5965 rm -f $CONFIG_STATUS
5966 cat > $CONFIG_STATUS <<EOF
5968 # Generated automatically by configure.
5969 # Run this file to recreate the current configuration.
5970 # This directory was configured as follows,
5971 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5973 # $0 $ac_configure_args
5975 # Compiler output produced by configure, useful for debugging
5976 # configure, is in ./config.log if it exists.
5978 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5981 case "\$ac_option" in
5982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5983 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5984 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5985 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5986 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5988 -help | --help | --hel | --he | --h)
5989 echo "\$ac_cs_usage"; exit 0 ;;
5990 *) echo "\$ac_cs_usage"; exit 1 ;;
5994 ac_given_srcdir=$srcdir
5995 ac_given_INSTALL="$INSTALL"
5997 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5999 cat >> $CONFIG_STATUS <<EOF
6001 # Protect against being on the right side of a sed subst in config.status.
6002 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6003 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6007 s%@CFLAGS@%$CFLAGS%g
6008 s%@CPPFLAGS@%$CPPFLAGS%g
6009 s%@CXXFLAGS@%$CXXFLAGS%g
6010 s%@FFLAGS@%$FFLAGS%g
6012 s%@LDFLAGS@%$LDFLAGS%g
6014 s%@exec_prefix@%$exec_prefix%g
6015 s%@prefix@%$prefix%g
6016 s%@program_transform_name@%$program_transform_name%g
6017 s%@bindir@%$bindir%g
6018 s%@sbindir@%$sbindir%g
6019 s%@libexecdir@%$libexecdir%g
6020 s%@datadir@%$datadir%g
6021 s%@sysconfdir@%$sysconfdir%g
6022 s%@sharedstatedir@%$sharedstatedir%g
6023 s%@localstatedir@%$localstatedir%g
6024 s%@libdir@%$libdir%g
6025 s%@includedir@%$includedir%g
6026 s%@oldincludedir@%$oldincludedir%g
6027 s%@infodir@%$infodir%g
6028 s%@mandir@%$mandir%g
6032 s%@host_alias@%$host_alias%g
6033 s%@host_cpu@%$host_cpu%g
6034 s%@host_vendor@%$host_vendor%g
6035 s%@host_os@%$host_os%g
6036 s%@target@%$target%g
6037 s%@target_alias@%$target_alias%g
6038 s%@target_cpu@%$target_cpu%g
6039 s%@target_vendor@%$target_vendor%g
6040 s%@target_os@%$target_os%g
6042 s%@build_alias@%$build_alias%g
6043 s%@build_cpu@%$build_cpu%g
6044 s%@build_vendor@%$build_vendor%g
6045 s%@build_os@%$build_os%g
6046 s%@SET_MAKE@%$SET_MAKE%g
6047 s%@RANLIB@%$RANLIB%g
6048 s%@ALLOCA@%$ALLOCA%g
6049 s%@USE_NLS@%$USE_NLS%g
6050 s%@MSGFMT@%$MSGFMT%g
6051 s%@GMSGFMT@%$GMSGFMT%g
6052 s%@XGETTEXT@%$XGETTEXT%g
6053 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6054 s%@CATALOGS@%$CATALOGS%g
6055 s%@CATOBJEXT@%$CATOBJEXT%g
6056 s%@DATADIRNAME@%$DATADIRNAME%g
6057 s%@GMOFILES@%$GMOFILES%g
6058 s%@INSTOBJEXT@%$INSTOBJEXT%g
6059 s%@INTLDEPS@%$INTLDEPS%g
6060 s%@INTLLIBS@%$INTLLIBS%g
6061 s%@INTLOBJS@%$INTLOBJS%g
6062 s%@POFILES@%$POFILES%g
6064 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6066 s%@GT_YES@%$GT_YES%g
6067 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6070 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6071 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6072 s%@INSTALL_DATA@%$INSTALL_DATA%g
6075 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
6076 s%@BUILD_TUI@%$BUILD_TUI%g
6077 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
6078 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6079 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
6080 s%@MMALLOC@%$MMALLOC%g
6081 s%@MACHINE_OBS@%$MACHINE_OBS%g
6082 s%@DLLTOOL@%$DLLTOOL%g
6083 s%@WINDRES@%$WINDRES%g
6084 s%@TERM_LIB@%$TERM_LIB%g
6085 s%@ENABLE_IDE@%$ENABLE_IDE%g
6086 s%@FOUNDRY_LIB_BASE@%$FOUNDRY_LIB_BASE%g
6087 s%@LIBGUI@%$LIBGUI%g
6088 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
6089 s%@IDE_CFLAGS_X@%$IDE_CFLAGS_X%g
6091 s%@LIBIDETCL@%$LIBIDETCL%g
6092 s%@LIBIDE@%$LIBIDE%g
6093 s%@IDE_DEPS@%$IDE_DEPS%g
6094 s%@WIN32LIBS@%$WIN32LIBS%g
6095 s%@WIN32LDAPP@%$WIN32LDAPP%g
6096 s%@TCL_VERSION@%$TCL_VERSION%g
6097 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
6098 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
6099 s%@TCL_CC@%$TCL_CC%g
6100 s%@TCL_DEFS@%$TCL_DEFS%g
6101 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
6102 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
6103 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
6104 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
6105 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
6106 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
6107 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
6108 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
6109 s%@TCL_RANLIB@%$TCL_RANLIB%g
6110 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
6111 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
6112 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
6113 s%@TK_VERSION@%$TK_VERSION%g
6114 s%@TK_DEFS@%$TK_DEFS%g
6115 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
6116 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
6117 s%@TK_XLIBSW@%$TK_XLIBSW%g
6118 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
6119 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
6120 s%@TCLHDIR@%$TCLHDIR%g
6121 s%@TKHDIR@%$TKHDIR%g
6122 s%@ITCLHDIR@%$ITCLHDIR%g
6123 s%@ITKHDIR@%$ITKHDIR%g
6124 s%@TIXHDIR@%$TIXHDIR%g
6125 s%@ITCL_VERSION@%$ITCL_VERSION%g
6126 s%@ITCL_DEFS@%$ITCL_DEFS%g
6127 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
6128 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
6129 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
6130 s%@ITK_VERSION@%$ITK_VERSION%g
6131 s%@ITK_DEFS@%$ITK_DEFS%g
6132 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
6133 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
6134 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
6135 s%@TIX_VERSION@%$TIX_VERSION%g
6136 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
6137 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
6138 s%@X_CFLAGS@%$X_CFLAGS%g
6139 s%@X_LDFLAGS@%$X_LDFLAGS%g
6140 s%@X_LIBS@%$X_LIBS%g
6141 s%@ITCLLIB@%$ITCLLIB%g
6142 s%@ITCL_DEPS@%$ITCL_DEPS%g
6143 s%@ITKLIB@%$ITKLIB%g
6144 s%@ITK_DEPS@%$ITK_DEPS%g
6145 s%@TIXLIB@%$TIXLIB%g
6146 s%@TIX_DEPS@%$TIX_DEPS%g
6147 s%@GDBTKLIBS@%$GDBTKLIBS%g
6148 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
6149 s%@IGNORE_SIM@%$IGNORE_SIM%g
6150 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
6151 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
6152 s%@CONFIG_OBS@%$CONFIG_OBS%g
6153 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
6154 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
6155 s%@HLDFLAGS@%$HLDFLAGS%g
6156 s%@HLDENV@%$HLDENV%g
6157 s%@target_subdir@%$target_subdir%g
6158 /@host_makefile_frag@/r $host_makefile_frag
6159 s%@host_makefile_frag@%%g
6160 /@target_makefile_frag@/r $target_makefile_frag
6161 s%@target_makefile_frag@%%g
6164 s%@EXEEXT@%$EXEEXT%g
6165 s%@subdirs@%$subdirs%g
6170 cat >> $CONFIG_STATUS <<\EOF
6172 # Split the substitutions into bite-sized pieces for seds with
6173 # small command number limits, like on Digital OSF/1 and HP-UX.
6174 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6175 ac_file
=1 # Number of current file.
6176 ac_beg
=1 # First line for current file.
6177 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6180 while $ac_more_lines; do
6181 if test $ac_beg -gt 1; then
6182 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6184 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6186 if test ! -s conftest.s
$ac_file; then
6188 rm -f conftest.s
$ac_file
6190 if test -z "$ac_sed_cmds"; then
6191 ac_sed_cmds
="sed -f conftest.s$ac_file"
6193 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6195 ac_file
=`expr $ac_file + 1`
6197 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6200 if test -z "$ac_sed_cmds"; then
6205 cat >> $CONFIG_STATUS <<EOF
6207 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
6209 cat >> $CONFIG_STATUS <<\EOF
6210 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6211 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6213 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6214 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6215 *) ac_file_in
="${ac_file}.in" ;;
6218 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6220 # Remove last slash and all that follows it. Not all systems have dirname.
6221 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6222 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6223 # The file is in a subdirectory.
6224 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6225 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6226 # A "../" for each directory in $ac_dir_suffix.
6227 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6229 ac_dir_suffix
= ac_dots
=
6232 case "$ac_given_srcdir" in
6234 if test -z "$ac_dots"; then top_srcdir
=.
6235 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6236 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6238 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6239 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6242 case "$ac_given_INSTALL" in
6243 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6244 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6247 echo creating
"$ac_file"
6249 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6251 *Makefile
*) ac_comsub
="1i\\
6252 # $configure_input" ;;
6256 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6258 s%@configure_input@%$configure_input%g
6259 s%@srcdir@%$srcdir%g
6260 s%@top_srcdir@%$top_srcdir%g
6261 s%@INSTALL@%$INSTALL%g
6262 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6266 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6267 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6269 # ac_d sets the value in "#define NAME VALUE" lines.
6270 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6271 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6274 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6275 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6276 ac_uB
='\([ ]\)%\1#\2define\3'
6279 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6280 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6281 ac_eB
='$%\1#\2define\3'
6285 if test "${CONFIG_HEADERS+set}" != set; then
6287 cat >> $CONFIG_STATUS <<EOF
6288 CONFIG_HEADERS="config.h:config.in"
6290 cat >> $CONFIG_STATUS <<\EOF
6292 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6293 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6295 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6296 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6297 *) ac_file_in
="${ac_file}.in" ;;
6300 echo creating
$ac_file
6302 rm -f conftest.frag conftest.
in conftest.out
6303 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6304 cat $ac_file_inputs > conftest.
in
6308 # Transform confdefs.h into a sed script conftest.vals that substitutes
6309 # the proper values into config.h.in to produce config.h. And first:
6310 # Protect against being on the right side of a sed subst in config.status.
6311 # Protect against being in an unquoted here document in config.status.
6313 cat > conftest.hdr
<<\EOF
6316 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6320 sed -n -f conftest.hdr confdefs.h > conftest.vals
6323 # This sed command replaces #undef with comments. This is necessary, for
6324 # example, in the case of _POSIX_SOURCE, which is predefined and required
6325 # on some systems where configure will not decide to define it.
6326 cat >> conftest.vals <<\EOF
6327 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6330 # Break up conftest.vals because some shells have a limit on
6331 # the size of here documents, and old seds have small limits too.
6336 ac_lines=`grep -c . conftest.vals
`
6337 # grep -c gives empty output for an empty file on some AIX systems.
6338 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6339 # Write a limited-size here document to conftest.frag.
6340 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6341 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6343 sed -f conftest.frag conftest.in > conftest.out
6345 mv conftest.out conftest.in
6347 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6349 mv conftest.tail conftest.vals
6353 cat >> $CONFIG_STATUS <<\EOF
6354 rm -f conftest.frag conftest.h
6355 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6356 cat conftest.in >> conftest.h
6358 if cmp -s $ac_file conftest.h 2>/dev/null; then
6359 echo "$ac_file is unchanged"
6362 # Remove last slash and all that follows it. Not all systems have dirname.
6363 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6364 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6365 # The file is in a subdirectory.
6366 test ! -d "$ac_dir" && mkdir "$ac_dir"
6369 mv conftest.h $ac_file
6375 cat >> $CONFIG_STATUS <<EOF
6380 cat >> $CONFIG_STATUS <<\EOF
6381 srcdir=$ac_given_srcdir
6382 while test -n "$ac_sources"; do
6383 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6384 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6386 echo "linking $srcdir/$ac_source to $ac_dest"
6388 if test ! -r $srcdir/$ac_source; then
6389 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6393 # Make relative symlinks.
6394 # Remove last slash and all that follows it. Not all systems have dirname.
6395 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
6396 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6397 # The dest file is in a subdirectory.
6398 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6399 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
6400 # A "../" for each directory in $ac_dest_dir_suffix.
6401 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
6403 ac_dest_dir_suffix= ac_dots=
6407 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6408 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6411 # Make a symlink if possible; otherwise try a hard link.
6412 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6413 ln $srcdir/$ac_source $ac_dest; then :
6415 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6419 cat >> $CONFIG_STATUS <<EOF
6421 gdb_host_cpu=$gdb_host_cpu
6422 gdb_target_cpu=$gdb_target_cpu
6423 nativefile=$nativefile
6426 cat >> $CONFIG_STATUS <<\EOF
6428 if test "${nativefile}" = ""; then
6429 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
6430 < Makefile > Makefile.tem
6431 mv -f Makefile.tem Makefile
6434 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
6435 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
6436 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
6437 mv -f Makefile.tmp Makefile
6439 case x$CONFIG_HEADERS in
6440 xconfig.h:config.in)
6446 chmod +x $CONFIG_STATUS
6447 rm -fr confdefs* $ac_clean_files
6448 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6450 if test "$no_recursion" != yes; then
6452 # Remove --cache-file and --srcdir arguments so they do not pile up.
6453 ac_sub_configure_args=
6455 for ac_arg in $ac_configure_args; do
6456 if test -n "$ac_prev"; then
6461 -cache-file | --cache-file | --cache-fil | --cache-fi \
6462 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6463 ac_prev=cache_file ;;
6464 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6465 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6467 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6469 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6471 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6475 for ac_config_dir in $configdirs; do
6477 # Do not complain, so a configure script can configure whichever
6478 # parts of a large source tree are present.
6479 if test ! -d $srcdir/$ac_config_dir; then
6483 echo configuring in $ac_config_dir
6488 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6490 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6498 # A "../" for each directory in /$ac_config_dir.
6499 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6502 .) # No --srcdir option. We are building in place.
6503 ac_sub_srcdir=$srcdir ;;
6504 /*) # Absolute path.
6505 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6507 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6510 # Check for guested configure; otherwise get Cygnus style configure.
6511 if test -f $ac_sub_srcdir/configure; then
6512 ac_sub_configure=$ac_sub_srcdir/configure
6513 elif test -f $ac_sub_srcdir/configure.in; then
6514 ac_sub_configure=$ac_configure
6516 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6520 # The recursion is here.
6521 if test -n "$ac_sub_configure"; then
6523 # Make the cache file name correct relative to the subdirectory.
6524 case "$cache_file" in
6525 /*) ac_sub_cache_file=$cache_file ;;
6527 ac_sub_cache_file="$ac_dots$cache_file" ;;
6529 case "$ac_given_INSTALL" in
6530 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6531 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6534 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6535 # The eval makes quoting arguments work.
6536 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6539 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }