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-multi-ice Build the multi-ice-gdb-server"
21 --enable-gdbmi Enable GDB-MI interface"
23 --enable-tui Enable full-screen terminal user interface"
25 --enable-netrom Enable NetROM support"
27 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
29 --with-mmalloc Use memory mapped malloc package"
31 --with-included-regex Use included regex"
33 --with-cpu=CPU Set the default CPU variant to debug"
35 --enable-gdbtk Enable GDBTK GUI front end"
37 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
39 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
41 --with-tclinclude=DIR Directory where tcl private headers are"
43 --with-tkinclude=DIR Directory where tk private headers are"
45 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
47 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
49 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
51 --with-x use the X Window System"
53 --enable-sim Link gdb with simulator"
55 --enable-shared Use shared libraries"
57 # Initialize some variables set by options.
58 # The variables have the same names as the options, with
59 # dashes changed to underlines.
61 cache_file
=.
/config.cache
70 program_transform_name
=s
,x
,x
,
79 bindir
='${exec_prefix}/bin'
80 sbindir
='${exec_prefix}/sbin'
81 libexecdir
='${exec_prefix}/libexec'
82 datadir
='${prefix}/share'
83 sysconfdir
='${prefix}/etc'
84 sharedstatedir
='${prefix}/com'
85 localstatedir
='${prefix}/var'
86 libdir
='${exec_prefix}/lib'
87 includedir
='${prefix}/include'
88 oldincludedir
='/usr/include'
89 infodir
='${prefix}/info'
90 mandir
='${prefix}/man'
92 # Initialize some other variables.
95 SHELL
=${CONFIG_SHELL-/bin/sh}
96 # Maximum number of lines to put in a shell here document.
103 # If the previous option needs an argument, assign it.
104 if test -n "$ac_prev"; then
105 eval "$ac_prev=\$ac_option"
111 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
115 # Accept the important Cygnus configure options, so we can diagnose typos.
119 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
121 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
122 bindir
="$ac_optarg" ;;
124 -build |
--build |
--buil |
--bui |
--bu)
126 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
127 build
="$ac_optarg" ;;
129 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
130 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
131 ac_prev
=cache_file
;;
132 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
133 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
134 cache_file
="$ac_optarg" ;;
136 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
138 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
140 datadir
="$ac_optarg" ;;
142 -disable-* |
--disable-*)
143 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
144 # Reject names that are not valid shell variable names.
145 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
146 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
149 eval "enable_${ac_feature}=no" ;;
151 -enable-* |
--enable-*)
152 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
162 eval "enable_${ac_feature}='$ac_optarg'" ;;
164 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
165 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
166 |
--exec |
--exe |
--ex)
167 ac_prev
=exec_prefix
;;
168 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
169 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
170 |
--exec=* |
--exe=* |
--ex=*)
171 exec_prefix
="$ac_optarg" ;;
173 -gas |
--gas |
--ga |
--g)
174 # Obsolete; use --with-gas.
177 -help |
--help |
--hel |
--he)
178 # Omit some internal or obsolete options to make the list less imposing.
179 # This message is too long to be a string in the A/UX 3.1 sh.
181 Usage: configure [options] [host]
182 Options: [defaults in brackets after descriptions]
184 --cache-file=FILE cache test results in FILE
185 --help print this message
186 --no-create do not create output files
187 --quiet, --silent do not print \`checking...' messages
188 --site-file=FILE use FILE as the site file
189 --version print the version of autoconf that created configure
190 Directory and file names:
191 --prefix=PREFIX install architecture-independent files in PREFIX
193 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
195 --bindir=DIR user executables in DIR [EPREFIX/bin]
196 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
197 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
198 --datadir=DIR read-only architecture-independent data in DIR
200 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
201 --sharedstatedir=DIR modifiable architecture-independent data in DIR
203 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
204 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
205 --includedir=DIR C header files in DIR [PREFIX/include]
206 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
207 --infodir=DIR info documentation in DIR [PREFIX/info]
208 --mandir=DIR man documentation in DIR [PREFIX/man]
209 --srcdir=DIR find the sources in DIR [configure dir or ..]
210 --program-prefix=PREFIX prepend PREFIX to installed program names
211 --program-suffix=SUFFIX append SUFFIX to installed program names
212 --program-transform-name=PROGRAM
213 run sed PROGRAM on installed program names
217 --build=BUILD configure for building on BUILD [BUILD=HOST]
218 --host=HOST configure for HOST [guessed]
219 --target=TARGET configure for TARGET [TARGET=HOST]
220 Features and packages:
221 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
222 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
223 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
224 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
225 --x-includes=DIR X include files are in DIR
226 --x-libraries=DIR X library files are in DIR
228 if test -n "$ac_help"; then
229 echo "--enable and --with options recognized:$ac_help"
233 -host |
--host |
--hos |
--ho)
235 -host=* |
--host=* |
--hos=* |
--ho=*)
238 -includedir |
--includedir |
--includedi |
--included |
--include \
239 |
--includ |
--inclu |
--incl |
--inc)
240 ac_prev
=includedir
;;
241 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
242 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
243 includedir
="$ac_optarg" ;;
245 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
247 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
248 infodir
="$ac_optarg" ;;
250 -libdir |
--libdir |
--libdi |
--libd)
252 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
253 libdir
="$ac_optarg" ;;
255 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
256 |
--libexe |
--libex |
--libe)
257 ac_prev
=libexecdir
;;
258 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
259 |
--libexe=* |
--libex=* |
--libe=*)
260 libexecdir
="$ac_optarg" ;;
262 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
263 |
--localstate |
--localstat |
--localsta |
--localst \
264 |
--locals |
--local |
--loca |
--loc |
--lo)
265 ac_prev
=localstatedir
;;
266 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
267 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
268 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
269 localstatedir
="$ac_optarg" ;;
271 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
273 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
274 mandir
="$ac_optarg" ;;
277 # Obsolete; use --without-fp.
280 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
284 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
285 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
288 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
289 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
290 |
--oldin |
--oldi |
--old |
--ol |
--o)
291 ac_prev
=oldincludedir
;;
292 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
293 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
294 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
295 oldincludedir
="$ac_optarg" ;;
297 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
299 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
300 prefix
="$ac_optarg" ;;
302 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
303 |
--program-pre |
--program-pr |
--program-p)
304 ac_prev
=program_prefix
;;
305 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
306 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
307 program_prefix
="$ac_optarg" ;;
309 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
310 |
--program-suf |
--program-su |
--program-s)
311 ac_prev
=program_suffix
;;
312 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
313 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
314 program_suffix
="$ac_optarg" ;;
316 -program-transform-name |
--program-transform-name \
317 |
--program-transform-nam |
--program-transform-na \
318 |
--program-transform-n |
--program-transform- \
319 |
--program-transform |
--program-transfor \
320 |
--program-transfo |
--program-transf \
321 |
--program-trans |
--program-tran \
322 |
--progr-tra |
--program-tr |
--program-t)
323 ac_prev
=program_transform_name
;;
324 -program-transform-name=* |
--program-transform-name=* \
325 |
--program-transform-nam=* |
--program-transform-na=* \
326 |
--program-transform-n=* |
--program-transform-=* \
327 |
--program-transform=* |
--program-transfor=* \
328 |
--program-transfo=* |
--program-transf=* \
329 |
--program-trans=* |
--program-tran=* \
330 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
331 program_transform_name
="$ac_optarg" ;;
333 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
334 |
-silent |
--silent |
--silen |
--sile |
--sil)
337 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
339 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
341 sbindir
="$ac_optarg" ;;
343 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
344 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
345 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
347 ac_prev
=sharedstatedir
;;
348 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
349 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
350 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
352 sharedstatedir
="$ac_optarg" ;;
354 -site |
--site |
--sit)
356 -site=* |
--site=* |
--sit=*)
359 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
361 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
362 sitefile
="$ac_optarg" ;;
364 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
366 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
367 srcdir
="$ac_optarg" ;;
369 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
370 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
371 ac_prev
=sysconfdir
;;
372 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
373 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
374 sysconfdir
="$ac_optarg" ;;
376 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
378 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
379 target
="$ac_optarg" ;;
381 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
384 -version |
--version |
--versio |
--versi |
--vers)
385 echo "configure generated by autoconf version 2.13"
389 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package
=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}='$ac_optarg'" ;;
401 -without-* |
--without-*)
402 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package
=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}=no" ;;
411 # Obsolete; use --with-x.
414 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
415 |
--x-incl |
--x-inc |
--x-in |
--x-i)
416 ac_prev
=x_includes
;;
417 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
418 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
419 x_includes
="$ac_optarg" ;;
421 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
422 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
423 ac_prev
=x_libraries
;;
424 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
425 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
426 x_libraries
="$ac_optarg" ;;
428 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
433 echo "configure: warning: $ac_option: invalid host type" 1>&2
435 if test "x$nonopt" != xNONE
; then
436 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
444 if test -n "$ac_prev"; then
445 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450 # File descriptor usage:
453 # 2 errors and warnings
454 # 3 some systems may open it to /dev/tty
455 # 4 used on the Kubota Titan
456 # 6 checking for... messages and results
457 # 5 compiler messages saved in config.log
458 if test "$silent" = yes; then
466 This file contains any messages produced by compilers while
467 running configure, to aid debugging if configure makes a mistake.
470 # Strip out --no-create and --no-recursion so they do not pile up.
471 # Also quote any args containing shell metacharacters.
476 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
477 |
--no-cr |
--no-c) ;;
478 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
479 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
480 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
481 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
482 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
487 # Only set these to C if already set. These must not be set unconditionally
488 # because not all systems understand e.g. LANG=C (notably SCO).
489 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
490 # Non-C LC_CTYPE values break the ctype check.
491 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
492 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
493 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
494 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
496 # confdefs.h avoids OS command line length limits that DEFS can exceed.
497 rm -rf conftest
* confdefs.h
498 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
501 # A filename unique to this package, relative to the directory that
502 # configure is in, which we can look for to find out if srcdir is correct.
503 ac_unique_file
=main.c
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted
=yes
508 # Try the directory containing this script, then its parent.
510 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
513 if test ! -r $srcdir/$ac_unique_file; then
517 ac_srcdir_defaulted
=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
523 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528 # Prefer explicitly selected file to automatically selected ones.
529 if test -z "$sitefile"; then
530 if test -z "$CONFIG_SITE"; then
531 if test "x$prefix" != xNONE
; then
532 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
534 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538 CONFIG_SITE
="$sitefile"
540 for ac_site_file
in $CONFIG_SITE; do
541 if test -r "$ac_site_file"; then
542 echo "loading site script $ac_site_file"
547 if test -r "$cache_file"; then
548 echo "loading cache $cache_file"
551 echo "creating cache $cache_file"
556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
557 ac_cpp
='$CPP $CPPFLAGS'
558 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
559 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
560 cross_compiling
=$ac_cv_prog_cc_cross
564 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
565 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
566 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
573 ac_n
= ac_c
='\c' ac_t
=
579 # Extract the first word of "gcc", so it can be a program name with args.
580 set dummy gcc
; ac_word
=$2
581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
582 echo "configure:583: checking for $ac_word" >&5
583 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 if test -n "$CC"; then
587 ac_cv_prog_CC
="$CC" # Let the user override the test.
589 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
591 for ac_dir
in $ac_dummy; do
592 test -z "$ac_dir" && ac_dir
=.
593 if test -f $ac_dir/$ac_word; then
602 if test -n "$CC"; then
603 echo "$ac_t""$CC" 1>&6
605 echo "$ac_t""no" 1>&6
608 if test -z "$CC"; then
609 # Extract the first word of "cc", so it can be a program name with args.
610 set dummy cc
; ac_word
=$2
611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
612 echo "configure:613: checking for $ac_word" >&5
613 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
616 if test -n "$CC"; then
617 ac_cv_prog_CC
="$CC" # Let the user override the test.
619 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
622 for ac_dir
in $ac_dummy; do
623 test -z "$ac_dir" && ac_dir
=.
624 if test -f $ac_dir/$ac_word; then
625 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
634 if test $ac_prog_rejected = yes; then
635 # We found a bogon in the path, so make sure we never use it.
636 set dummy
$ac_cv_prog_CC
638 if test $# -gt 0; then
639 # We chose a different compiler from the bogus one.
640 # However, it has the same basename, so the bogon will be chosen
641 # first if we set CC to just the basename; use the full file name.
643 set dummy
"$ac_dir/$ac_word" "$@"
651 if test -n "$CC"; then
652 echo "$ac_t""$CC" 1>&6
654 echo "$ac_t""no" 1>&6
657 if test -z "$CC"; then
660 # Extract the first word of "cl", so it can be a program name with args.
661 set dummy cl
; ac_word
=$2
662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
663 echo "configure:664: checking for $ac_word" >&5
664 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
665 echo $ac_n "(cached) $ac_c" 1>&6
667 if test -n "$CC"; then
668 ac_cv_prog_CC
="$CC" # Let the user override the test.
670 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
672 for ac_dir
in $ac_dummy; do
673 test -z "$ac_dir" && ac_dir
=.
674 if test -f $ac_dir/$ac_word; then
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
686 echo "$ac_t""no" 1>&6
691 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
694 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
695 echo "configure:696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
698 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
699 ac_cpp
='$CPP $CPPFLAGS'
700 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
701 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
702 cross_compiling
=$ac_cv_prog_cc_cross
704 cat > conftest.
$ac_ext << EOF
706 #line 707 "configure"
707 #include "confdefs.h"
711 if { (eval echo configure
:712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
712 ac_cv_prog_cc_works
=yes
713 # If we can't run a trivial program, we are probably using a cross compiler.
714 if (.
/conftest
; exit) 2>/dev
/null
; then
715 ac_cv_prog_cc_cross
=no
717 ac_cv_prog_cc_cross
=yes
720 echo "configure: failed program was:" >&5
721 cat conftest.
$ac_ext >&5
722 ac_cv_prog_cc_works
=no
726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
727 ac_cpp
='$CPP $CPPFLAGS'
728 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
729 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
730 cross_compiling
=$ac_cv_prog_cc_cross
732 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
733 if test $ac_cv_prog_cc_works = no
; then
734 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
736 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
737 echo "configure:738: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
738 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
739 cross_compiling
=$ac_cv_prog_cc_cross
741 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
742 echo "configure:743: checking whether we are using GNU C" >&5
743 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 cat > conftest.c
<<EOF
751 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
758 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
760 if test $ac_cv_prog_gcc = yes; then
766 ac_test_CFLAGS
="${CFLAGS+set}"
767 ac_save_CFLAGS
="$CFLAGS"
769 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
770 echo "configure:771: checking whether ${CC-cc} accepts -g" >&5
771 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
774 echo 'void f(){}' > conftest.c
775 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
784 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
785 if test "$ac_test_CFLAGS" = set; then
786 CFLAGS
="$ac_save_CFLAGS"
787 elif test $ac_cv_prog_cc_g = yes; then
788 if test "$GCC" = yes; then
794 if test "$GCC" = yes; then
801 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
802 echo "configure:803: checking how to run the C preprocessor" >&5
803 # On Suns, sometimes $CPP names a directory.
804 if test -n "$CPP" && test -d "$CPP"; then
807 if test -z "$CPP"; then
808 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 # This must be in double quotes, not single quotes, because CPP may get
812 # substituted into the Makefile and "${CC-cc}" will confuse make.
814 # On the NeXT, cc -E runs the code through the compiler's parser,
815 # not just through cpp.
816 cat > conftest.
$ac_ext <<EOF
817 #line 818 "configure"
818 #include "confdefs.h"
822 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
823 { (eval echo configure
:824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
824 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
825 if test -z "$ac_err"; then
829 echo "configure: failed program was:" >&5
830 cat conftest.
$ac_ext >&5
832 CPP
="${CC-cc} -E -traditional-cpp"
833 cat > conftest.
$ac_ext <<EOF
834 #line 835 "configure"
835 #include "confdefs.h"
839 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
840 { (eval echo configure
:841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
841 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
842 if test -z "$ac_err"; then
846 echo "configure: failed program was:" >&5
847 cat conftest.
$ac_ext >&5
849 CPP
="${CC-cc} -nologo -E"
850 cat > conftest.
$ac_ext <<EOF
851 #line 852 "configure"
852 #include "confdefs.h"
856 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
857 { (eval echo configure
:858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
858 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
859 if test -z "$ac_err"; then
863 echo "configure: failed program was:" >&5
864 cat conftest.
$ac_ext >&5
873 ac_cv_prog_CPP
="$CPP"
875 CPP
="$ac_cv_prog_CPP"
877 ac_cv_prog_CPP
="$CPP"
879 echo "$ac_t""$CPP" 1>&6
881 echo $ac_n "checking for AIX""... $ac_c" 1>&6
882 echo "configure:883: checking for AIX" >&5
883 cat > conftest.
$ac_ext <<EOF
884 #line 885 "configure"
885 #include "confdefs.h"
891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
892 egrep "yes" >/dev
/null
2>&1; then
894 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
895 #define _ALL_SOURCE 1
900 echo "$ac_t""no" 1>&6
905 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
906 echo "configure:907: checking for POSIXized ISC" >&5
907 if test -d /etc
/conf
/kconfig.d
&&
908 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
910 echo "$ac_t""yes" 1>&6
911 ISC
=yes # If later tests want to check for ISC.
912 cat >> confdefs.h
<<\EOF
913 #define _POSIX_SOURCE 1
916 if test "$GCC" = yes; then
922 echo "$ac_t""no" 1>&6
929 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
930 echo "configure:931: checking for ${CC-cc} option to accept ANSI C" >&5
931 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 am_cv_prog_cc_stdc
=no
936 # Don't try gcc -ansi; that turns off useful extensions and
937 # breaks some systems' header files.
939 # Ultrix and OSF/1 -std1
940 # HP-UX -Aa -D_HPUX_SOURCE
941 # SVR4 -Xc -D__EXTENSIONS__
942 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
944 CC
="$ac_save_CC $ac_arg"
945 cat > conftest.
$ac_ext <<EOF
946 #line 947 "configure"
947 #include "confdefs.h"
950 #include <sys/types.h>
951 #include <sys/stat.h>
952 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
953 struct buf { int x; };
954 FILE * (*rcsopen) (struct buf *, struct stat *, int);
955 static char *e (p, i)
961 static char *f (char * (*g) (char **, int), char **p, ...)
966 s = g (p, va_arg (v,int));
970 int test (int i, double x);
971 struct s1 {int (*f) (int a);};
972 struct s2 {int (*f) (double a);};
973 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
979 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
983 if { (eval echo configure
:984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
985 am_cv_prog_cc_stdc
="$ac_arg"; break
987 echo "configure: failed program was:" >&5
988 cat conftest.
$ac_ext >&5
996 if test -z "$am_cv_prog_cc_stdc"; then
997 echo "$ac_t""none needed" 1>&6
999 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1001 case "x$am_cv_prog_cc_stdc" in
1003 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1008 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1009 if test -f $ac_dir/install-sh
; then
1011 ac_install_sh
="$ac_aux_dir/install-sh -c"
1013 elif test -f $ac_dir/install.sh
; then
1015 ac_install_sh
="$ac_aux_dir/install.sh -c"
1019 if test -z "$ac_aux_dir"; then
1020 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1022 ac_config_guess
=$ac_aux_dir/config.guess
1023 ac_config_sub
=$ac_aux_dir/config.sub
1024 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1027 # Do some error checking and defaulting for the host and target type.
1029 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1032 # 1. You are not allowed to specify --host, --target, and nonopt at the
1034 # 2. Host defaults to nonopt.
1035 # 3. If nonopt is not specified, then host defaults to the current host,
1036 # as determined by config.guess.
1037 # 4. Target and build default to nonopt.
1038 # 5. If nonopt is not specified, then target and build default to host.
1040 # The aliases save the names the user supplied, while $host etc.
1041 # will get canonicalized.
1042 case $host---$target---$nonopt in
1043 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1044 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1048 # Make sure we can run config.sub.
1049 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1050 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1053 echo $ac_n "checking host system type""... $ac_c" 1>&6
1054 echo "configure:1055: checking host system type" >&5
1057 case "$host_alias" in
1061 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1062 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1064 *) host_alias
=$nonopt ;;
1068 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1069 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1070 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1071 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1072 echo "$ac_t""$host" 1>&6
1074 echo $ac_n "checking target system type""... $ac_c" 1>&6
1075 echo "configure:1076: checking target system type" >&5
1077 target_alias
=$target
1078 case "$target_alias" in
1081 NONE
) target_alias
=$host_alias ;;
1082 *) target_alias
=$nonopt ;;
1086 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1087 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1088 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1089 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1090 echo "$ac_t""$target" 1>&6
1092 echo $ac_n "checking build system type""... $ac_c" 1>&6
1093 echo "configure:1094: checking build system type" >&5
1096 case "$build_alias" in
1099 NONE
) build_alias
=$host_alias ;;
1100 *) build_alias
=$nonopt ;;
1104 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1105 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1106 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1107 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1108 echo "$ac_t""$build" 1>&6
1110 test "$host_alias" != "$target_alias" &&
1111 test "$program_prefix$program_suffix$program_transform_name" = \
1113 program_prefix
=${target_alias}-
1117 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1118 echo "configure:1119: checking whether ${MAKE-make} sets \${MAKE}" >&5
1119 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1120 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1123 cat > conftestmake
<<\EOF
1125 @
echo 'ac_maketemp="${MAKE}"'
1127 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1128 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1129 if test -n "$ac_maketemp"; then
1130 eval ac_cv_prog_make_
${ac_make}_set
=yes
1132 eval ac_cv_prog_make_
${ac_make}_set
=no
1136 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1137 echo "$ac_t""yes" 1>&6
1140 echo "$ac_t""no" 1>&6
1141 SET_MAKE
="MAKE=${MAKE-make}"
1144 # Extract the first word of "ranlib", so it can be a program name with args.
1145 set dummy ranlib
; ac_word
=$2
1146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1147 echo "configure:1148: checking for $ac_word" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 if test -n "$RANLIB"; then
1152 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1154 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1156 for ac_dir
in $ac_dummy; do
1157 test -z "$ac_dir" && ac_dir
=.
1158 if test -f $ac_dir/$ac_word; then
1159 ac_cv_prog_RANLIB
="ranlib"
1164 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1167 RANLIB
="$ac_cv_prog_RANLIB"
1168 if test -n "$RANLIB"; then
1169 echo "$ac_t""$RANLIB" 1>&6
1171 echo "$ac_t""no" 1>&6
1174 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1175 echo "configure:1176: checking for ANSI C header files" >&5
1176 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 cat > conftest.
$ac_ext <<EOF
1180 #line 1181 "configure"
1181 #include "confdefs.h"
1187 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1188 { (eval echo configure
:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1189 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1190 if test -z "$ac_err"; then
1192 ac_cv_header_stdc
=yes
1195 echo "configure: failed program was:" >&5
1196 cat conftest.
$ac_ext >&5
1198 ac_cv_header_stdc
=no
1202 if test $ac_cv_header_stdc = yes; then
1203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1204 cat > conftest.
$ac_ext <<EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1210 egrep "memchr" >/dev
/null
2>&1; then
1214 ac_cv_header_stdc
=no
1220 if test $ac_cv_header_stdc = yes; then
1221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1222 cat > conftest.
$ac_ext <<EOF
1223 #line 1224 "configure"
1224 #include "confdefs.h"
1227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1228 egrep "free" >/dev
/null
2>&1; then
1232 ac_cv_header_stdc
=no
1238 if test $ac_cv_header_stdc = yes; then
1239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1240 if test "$cross_compiling" = yes; then
1243 cat > conftest.
$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1247 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1248 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1250 int main () { int i; for (i = 0; i < 256; i++)
1251 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1255 if { (eval echo configure
:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1259 echo "configure: failed program was:" >&5
1260 cat conftest.
$ac_ext >&5
1262 ac_cv_header_stdc
=no
1270 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1271 if test $ac_cv_header_stdc = yes; then
1272 cat >> confdefs.h
<<\EOF
1273 #define STDC_HEADERS 1
1278 echo $ac_n "checking for working const""... $ac_c" 1>&6
1279 echo "configure:1280: checking for working const" >&5
1280 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 cat > conftest.
$ac_ext <<EOF
1284 #line 1285 "configure"
1285 #include "confdefs.h"
1289 /* Ultrix mips cc rejects this. */
1290 typedef int charset[2]; const charset x;
1291 /* SunOS 4.1.1 cc rejects this. */
1292 char const *const *ccp;
1294 /* NEC SVR4.0.2 mips cc rejects this. */
1295 struct point {int x, y;};
1296 static struct point const zero = {0,0};
1297 /* AIX XL C 1.02.0.0 rejects this.
1298 It does not let you subtract one const X* pointer from another in an arm
1299 of an if-expression whose if-part is not a constant expression */
1300 const char *g = "string";
1301 ccp = &g + (g ? g-g : 0);
1302 /* HPUX 7.0 cc rejects these. */
1305 ccp = (char const *const *) p;
1306 { /* SCO 3.2v4 cc rejects this. */
1308 char const *s = 0 ? (char *) 0 : (char const *) 0;
1312 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1314 const int *foo = &x[0];
1317 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1318 typedef const int *iptr;
1322 { /* AIX XL C 1.02.0.0 rejects this saying
1323 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1324 struct s { int j; const int *ap[3]; };
1325 struct s *b; b->j = 5;
1327 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1333 if { (eval echo configure
:1334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1337 echo "configure: failed program was:" >&5
1338 cat conftest.
$ac_ext >&5
1345 echo "$ac_t""$ac_cv_c_const" 1>&6
1346 if test $ac_cv_c_const = no
; then
1347 cat >> confdefs.h
<<\EOF
1353 echo $ac_n "checking for inline""... $ac_c" 1>&6
1354 echo "configure:1355: checking for inline" >&5
1355 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1359 for ac_kw
in inline __inline__ __inline
; do
1360 cat > conftest.
$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1368 if { (eval echo configure
:1369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1370 ac_cv_c_inline
=$ac_kw; break
1372 echo "configure: failed program was:" >&5
1373 cat conftest.
$ac_ext >&5
1380 echo "$ac_t""$ac_cv_c_inline" 1>&6
1381 case "$ac_cv_c_inline" in
1383 no
) cat >> confdefs.h
<<\EOF
1387 *) cat >> confdefs.h
<<EOF
1388 #define inline $ac_cv_c_inline
1393 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1394 echo "configure:1395: checking for off_t" >&5
1395 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 cat > conftest.
$ac_ext <<EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1401 #include <sys/types.h>
1407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1408 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1410 ac_cv_type_off_t
=yes
1418 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1419 if test $ac_cv_type_off_t = no
; then
1420 cat >> confdefs.h
<<\EOF
1426 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1427 echo "configure:1428: checking for size_t" >&5
1428 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 cat > conftest.
$ac_ext <<EOF
1432 #line 1433 "configure"
1433 #include "confdefs.h"
1434 #include <sys/types.h>
1440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1441 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1443 ac_cv_type_size_t
=yes
1446 ac_cv_type_size_t
=no
1451 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1452 if test $ac_cv_type_size_t = no
; then
1453 cat >> confdefs.h
<<\EOF
1454 #define size_t unsigned
1459 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1460 # for constant arguments. Useless!
1461 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1462 echo "configure:1463: checking for working alloca.h" >&5
1463 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1466 cat > conftest.
$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1471 char *p = alloca(2 * sizeof(int));
1474 if { (eval echo configure
:1475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1476 ac_cv_header_alloca_h
=yes
1478 echo "configure: failed program was:" >&5
1479 cat conftest.
$ac_ext >&5
1481 ac_cv_header_alloca_h
=no
1486 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1487 if test $ac_cv_header_alloca_h = yes; then
1488 cat >> confdefs.h
<<\EOF
1489 #define HAVE_ALLOCA_H 1
1494 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1495 echo "configure:1496: checking for alloca" >&5
1496 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 cat > conftest.
$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1504 # define alloca __builtin_alloca
1507 # include <malloc.h>
1508 # define alloca _alloca
1511 # include <alloca.h>
1516 # ifndef alloca /* predefined by HP cc +Olibcalls */
1525 char *p = (char *) alloca(1);
1528 if { (eval echo configure
:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1530 ac_cv_func_alloca_works
=yes
1532 echo "configure: failed program was:" >&5
1533 cat conftest.
$ac_ext >&5
1535 ac_cv_func_alloca_works
=no
1540 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1541 if test $ac_cv_func_alloca_works = yes; then
1542 cat >> confdefs.h
<<\EOF
1543 #define HAVE_ALLOCA 1
1548 if test $ac_cv_func_alloca_works = no
; then
1549 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1550 # that cause trouble. Some versions do not even contain alloca or
1551 # contain a buggy version. If you still want to use their alloca,
1552 # use ar to extract alloca.o from them instead of compiling alloca.c.
1553 ALLOCA
=alloca.
${ac_objext}
1554 cat >> confdefs.h
<<\EOF
1559 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1560 echo "configure:1561: checking whether alloca needs Cray hooks" >&5
1561 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1564 cat > conftest.
$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1567 #if defined(CRAY) && ! defined(CRAY2)
1574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1575 egrep "webecray" >/dev
/null
2>&1; then
1586 echo "$ac_t""$ac_cv_os_cray" 1>&6
1587 if test $ac_cv_os_cray = yes; then
1588 for ac_func
in _getb67 GETB67 getb67
; do
1589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1590 echo "configure:1591: checking for $ac_func" >&5
1591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 cat > conftest.
$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1597 /* System header to define __stub macros and hopefully few prototypes,
1598 which can conflict with char $ac_func(); below. */
1600 /* Override any gcc2 internal prototype to avoid an error. */
1601 /* We use char because int might match the return type of a gcc2
1602 builtin and then its argument prototype would still apply. */
1607 /* The GNU C library defines this for functions which it implements
1608 to always fail with ENOSYS. Some functions are actually named
1609 something starting with __ and the normal name is an alias. */
1610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1618 if { (eval echo configure
:1619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1620 eval "ac_cv_func_$ac_func=yes"
1622 echo "configure: failed program was:" >&5
1623 cat conftest.
$ac_ext >&5
1625 eval "ac_cv_func_$ac_func=no"
1630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1631 echo "$ac_t""yes" 1>&6
1632 cat >> confdefs.h
<<EOF
1633 #define CRAY_STACKSEG_END $ac_func
1638 echo "$ac_t""no" 1>&6
1644 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1645 echo "configure:1646: checking stack direction for C alloca" >&5
1646 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 if test "$cross_compiling" = yes; then
1650 ac_cv_c_stack_direction
=0
1652 cat > conftest.
$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 find_stack_direction ()
1657 static char *addr = 0;
1662 return find_stack_direction ();
1665 return (&dummy > addr) ? 1 : -1;
1669 exit (find_stack_direction() < 0);
1672 if { (eval echo configure
:1673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1674 ac_cv_c_stack_direction
=1
1676 echo "configure: failed program was:" >&5
1677 cat conftest.
$ac_ext >&5
1679 ac_cv_c_stack_direction
=-1
1686 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1687 cat >> confdefs.h
<<EOF
1688 #define STACK_DIRECTION $ac_cv_c_stack_direction
1693 for ac_hdr
in unistd.h
1695 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1697 echo "configure:1698: checking for $ac_hdr" >&5
1698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1701 cat > conftest.
$ac_ext <<EOF
1702 #line 1703 "configure"
1703 #include "confdefs.h"
1706 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1707 { (eval echo configure
:1708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1708 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1709 if test -z "$ac_err"; then
1711 eval "ac_cv_header_$ac_safe=yes"
1714 echo "configure: failed program was:" >&5
1715 cat conftest.
$ac_ext >&5
1717 eval "ac_cv_header_$ac_safe=no"
1721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1722 echo "$ac_t""yes" 1>&6
1723 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1724 cat >> confdefs.h
<<EOF
1725 #define $ac_tr_hdr 1
1729 echo "$ac_t""no" 1>&6
1733 for ac_func
in getpagesize
1735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $ac_func" >&5
1737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 cat > conftest.
$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1743 /* System header to define __stub macros and hopefully few prototypes,
1744 which can conflict with char $ac_func(); below. */
1746 /* Override any gcc2 internal prototype to avoid an error. */
1747 /* We use char because int might match the return type of a gcc2
1748 builtin and then its argument prototype would still apply. */
1753 /* The GNU C library defines this for functions which it implements
1754 to always fail with ENOSYS. Some functions are actually named
1755 something starting with __ and the normal name is an alias. */
1756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1764 if { (eval echo configure
:1765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1766 eval "ac_cv_func_$ac_func=yes"
1768 echo "configure: failed program was:" >&5
1769 cat conftest.
$ac_ext >&5
1771 eval "ac_cv_func_$ac_func=no"
1776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1777 echo "$ac_t""yes" 1>&6
1778 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1779 cat >> confdefs.h
<<EOF
1780 #define $ac_tr_func 1
1784 echo "$ac_t""no" 1>&6
1788 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1789 echo "configure:1790: checking for working mmap" >&5
1790 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1793 if test "$cross_compiling" = yes; then
1794 ac_cv_func_mmap_fixed_mapped
=no
1796 cat > conftest.
$ac_ext <<EOF
1797 #line 1798 "configure"
1798 #include "confdefs.h"
1800 /* Thanks to Mike Haertel and Jim Avera for this test.
1801 Here is a matrix of mmap possibilities:
1802 mmap private not fixed
1803 mmap private fixed at somewhere currently unmapped
1804 mmap private fixed at somewhere already mapped
1805 mmap shared not fixed
1806 mmap shared fixed at somewhere currently unmapped
1807 mmap shared fixed at somewhere already mapped
1808 For private mappings, we should verify that changes cannot be read()
1809 back from the file, nor mmap's back from the file at a different
1810 address. (There have been systems where private was not correctly
1811 implemented like the infamous i386 svr4.0, and systems where the
1812 VM page cache was not coherent with the filesystem buffer cache
1813 like early versions of FreeBSD and possibly contemporary NetBSD.)
1814 For shared mappings, we should conversely verify that changes get
1815 propogated back to all the places they're supposed to be.
1817 Grep wants private fixed already mapped.
1818 The main things grep needs to know about mmap are:
1819 * does it exist and is it safe to write into the mmap'd area
1820 * how to use it (BSD variants) */
1821 #include <sys/types.h>
1823 #include <sys/mman.h>
1825 /* This mess was copied from the GNU getpagesize.h. */
1826 #ifndef HAVE_GETPAGESIZE
1827 # ifdef HAVE_UNISTD_H
1828 # include <unistd.h>
1831 /* Assume that all systems that can run configure have sys/param.h. */
1832 # ifndef HAVE_SYS_PARAM_H
1833 # define HAVE_SYS_PARAM_H 1
1836 # ifdef _SC_PAGESIZE
1837 # define getpagesize() sysconf(_SC_PAGESIZE)
1838 # else /* no _SC_PAGESIZE */
1839 # ifdef HAVE_SYS_PARAM_H
1840 # include <sys/param.h>
1841 # ifdef EXEC_PAGESIZE
1842 # define getpagesize() EXEC_PAGESIZE
1843 # else /* no EXEC_PAGESIZE */
1845 # define getpagesize() NBPG * CLSIZE
1848 # endif /* no CLSIZE */
1849 # else /* no NBPG */
1851 # define getpagesize() NBPC
1852 # else /* no NBPC */
1854 # define getpagesize() PAGESIZE
1855 # endif /* PAGESIZE */
1856 # endif /* no NBPC */
1857 # endif /* no NBPG */
1858 # endif /* no EXEC_PAGESIZE */
1859 # else /* no HAVE_SYS_PARAM_H */
1860 # define getpagesize() 8192 /* punt totally */
1861 # endif /* no HAVE_SYS_PARAM_H */
1862 # endif /* no _SC_PAGESIZE */
1864 #endif /* no HAVE_GETPAGESIZE */
1867 extern "C" { void *malloc(unsigned); }
1875 char *data, *data2, *data3;
1879 pagesize = getpagesize();
1882 * First, make a file with some known garbage in it.
1884 data = malloc(pagesize);
1887 for (i = 0; i < pagesize; ++i)
1888 *(data + i) = rand();
1890 fd = creat("conftestmmap", 0600);
1893 if (write(fd, data, pagesize) != pagesize)
1898 * Next, try to mmap the file at a fixed address which
1899 * already has something else allocated at it. If we can,
1900 * also make sure that we see the same garbage.
1902 fd = open("conftestmmap", O_RDWR);
1905 data2 = malloc(2 * pagesize);
1908 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1909 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1910 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1912 for (i = 0; i < pagesize; ++i)
1913 if (*(data + i) != *(data2 + i))
1917 * Finally, make sure that changes to the mapped area
1918 * do not percolate back to the file as seen by read().
1919 * (This is a bug on some variants of i386 svr4.0.)
1921 for (i = 0; i < pagesize; ++i)
1922 *(data2 + i) = *(data2 + i) + 1;
1923 data3 = malloc(pagesize);
1926 if (read(fd, data3, pagesize) != pagesize)
1928 for (i = 0; i < pagesize; ++i)
1929 if (*(data + i) != *(data3 + i))
1932 unlink("conftestmmap");
1937 if { (eval echo configure
:1938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1939 ac_cv_func_mmap_fixed_mapped
=yes
1941 echo "configure: failed program was:" >&5
1942 cat conftest.
$ac_ext >&5
1944 ac_cv_func_mmap_fixed_mapped
=no
1951 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1952 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1953 cat >> confdefs.h
<<\EOF
1960 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1961 unistd.h values.h sys
/param.h
1963 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1964 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1965 echo "configure:1966: checking for $ac_hdr" >&5
1966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1969 cat > conftest.
$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1974 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1975 { (eval echo configure
:1976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1976 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1977 if test -z "$ac_err"; then
1979 eval "ac_cv_header_$ac_safe=yes"
1982 echo "configure: failed program was:" >&5
1983 cat conftest.
$ac_ext >&5
1985 eval "ac_cv_header_$ac_safe=no"
1989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1990 echo "$ac_t""yes" 1>&6
1991 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1992 cat >> confdefs.h
<<EOF
1993 #define $ac_tr_hdr 1
1997 echo "$ac_t""no" 1>&6
2001 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2002 __argz_count __argz_stringify __argz_next
2004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2005 echo "configure:2006: checking for $ac_func" >&5
2006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2009 cat > conftest.
$ac_ext <<EOF
2010 #line 2011 "configure"
2011 #include "confdefs.h"
2012 /* System header to define __stub macros and hopefully few prototypes,
2013 which can conflict with char $ac_func(); below. */
2015 /* Override any gcc2 internal prototype to avoid an error. */
2016 /* We use char because int might match the return type of a gcc2
2017 builtin and then its argument prototype would still apply. */
2022 /* The GNU C library defines this for functions which it implements
2023 to always fail with ENOSYS. Some functions are actually named
2024 something starting with __ and the normal name is an alias. */
2025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2033 if { (eval echo configure
:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2035 eval "ac_cv_func_$ac_func=yes"
2037 echo "configure: failed program was:" >&5
2038 cat conftest.
$ac_ext >&5
2040 eval "ac_cv_func_$ac_func=no"
2045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2046 echo "$ac_t""yes" 1>&6
2047 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2048 cat >> confdefs.h
<<EOF
2049 #define $ac_tr_func 1
2053 echo "$ac_t""no" 1>&6
2058 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2059 for ac_func
in stpcpy
2061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2062 echo "configure:2063: checking for $ac_func" >&5
2063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 cat > conftest.
$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2069 /* System header to define __stub macros and hopefully few prototypes,
2070 which can conflict with char $ac_func(); below. */
2072 /* Override any gcc2 internal prototype to avoid an error. */
2073 /* We use char because int might match the return type of a gcc2
2074 builtin and then its argument prototype would still apply. */
2079 /* The GNU C library defines this for functions which it implements
2080 to always fail with ENOSYS. Some functions are actually named
2081 something starting with __ and the normal name is an alias. */
2082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2090 if { (eval echo configure
:2091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2092 eval "ac_cv_func_$ac_func=yes"
2094 echo "configure: failed program was:" >&5
2095 cat conftest.
$ac_ext >&5
2097 eval "ac_cv_func_$ac_func=no"
2102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2103 echo "$ac_t""yes" 1>&6
2104 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2105 cat >> confdefs.h
<<EOF
2106 #define $ac_tr_func 1
2110 echo "$ac_t""no" 1>&6
2115 if test "${ac_cv_func_stpcpy}" = "yes"; then
2116 cat >> confdefs.h
<<\EOF
2117 #define HAVE_STPCPY 1
2122 if test $ac_cv_header_locale_h = yes; then
2123 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2124 echo "configure:2125: checking for LC_MESSAGES" >&5
2125 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2128 cat > conftest.
$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2136 if { (eval echo configure
:2137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2138 am_cv_val_LC_MESSAGES
=yes
2140 echo "configure: failed program was:" >&5
2141 cat conftest.
$ac_ext >&5
2143 am_cv_val_LC_MESSAGES
=no
2148 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2149 if test $am_cv_val_LC_MESSAGES = yes; then
2150 cat >> confdefs.h
<<\EOF
2151 #define HAVE_LC_MESSAGES 1
2156 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2157 echo "configure:2158: checking whether NLS is requested" >&5
2158 # Check whether --enable-nls or --disable-nls was given.
2159 if test "${enable_nls+set}" = set; then
2160 enableval
="$enable_nls"
2166 echo "$ac_t""$USE_NLS" 1>&6
2169 USE_INCLUDED_LIBINTL
=no
2171 if test "$USE_NLS" = "yes"; then
2172 cat >> confdefs.h
<<\EOF
2173 #define ENABLE_NLS 1
2176 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2177 echo "configure:2178: checking whether included gettext is requested" >&5
2178 # Check whether --with-included-gettext or --without-included-gettext was given.
2179 if test "${with_included_gettext+set}" = set; then
2180 withval
="$with_included_gettext"
2181 nls_cv_force_use_gnu_gettext
=$withval
2183 nls_cv_force_use_gnu_gettext
=no
2186 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2188 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2189 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2191 nls_cv_header_libgt
=
2194 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2195 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2196 echo "configure:2197: checking for libintl.h" >&5
2197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2200 cat > conftest.
$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2203 #include <libintl.h>
2205 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2206 { (eval echo configure
:2207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2207 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2208 if test -z "$ac_err"; then
2210 eval "ac_cv_header_$ac_safe=yes"
2213 echo "configure: failed program was:" >&5
2214 cat conftest.
$ac_ext >&5
2216 eval "ac_cv_header_$ac_safe=no"
2220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2223 echo "configure:2224: checking for gettext in libc" >&5
2224 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2227 cat > conftest.
$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 #include <libintl.h>
2232 return (int) gettext ("")
2235 if { (eval echo configure
:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2237 gt_cv_func_gettext_libc
=yes
2239 echo "configure: failed program was:" >&5
2240 cat conftest.
$ac_ext >&5
2242 gt_cv_func_gettext_libc
=no
2247 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2249 if test "$gt_cv_func_gettext_libc" != "yes"; then
2250 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2251 echo "configure:2252: checking for bindtextdomain in -lintl" >&5
2252 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 ac_save_LIBS
="$LIBS"
2258 cat > conftest.
$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2261 /* Override any gcc2 internal prototype to avoid an error. */
2262 /* We use char because int might match the return type of a gcc2
2263 builtin and then its argument prototype would still apply. */
2264 char bindtextdomain();
2270 if { (eval echo configure
:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2272 eval "ac_cv_lib_$ac_lib_var=yes"
2274 echo "configure: failed program was:" >&5
2275 cat conftest.
$ac_ext >&5
2277 eval "ac_cv_lib_$ac_lib_var=no"
2280 LIBS
="$ac_save_LIBS"
2283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2284 echo "$ac_t""yes" 1>&6
2285 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2286 echo "configure:2287: checking for gettext in libintl" >&5
2287 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2290 cat > conftest.
$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2295 return (int) gettext ("")
2298 if { (eval echo configure
:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2300 gt_cv_func_gettext_libintl
=yes
2302 echo "configure: failed program was:" >&5
2303 cat conftest.
$ac_ext >&5
2305 gt_cv_func_gettext_libintl
=no
2310 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2312 echo "$ac_t""no" 1>&6
2317 if test "$gt_cv_func_gettext_libc" = "yes" \
2318 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2319 cat >> confdefs.h
<<\EOF
2320 #define HAVE_GETTEXT 1
2323 # Extract the first word of "msgfmt", so it can be a program name with args.
2324 set dummy msgfmt
; ac_word
=$2
2325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2326 echo "configure:2327: checking for $ac_word" >&5
2327 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2332 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2335 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2336 for ac_dir
in $PATH; do
2337 test -z "$ac_dir" && ac_dir
=.
2338 if test -f $ac_dir/$ac_word; then
2339 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2340 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2346 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2350 MSGFMT
="$ac_cv_path_MSGFMT"
2351 if test -n "$MSGFMT"; then
2352 echo "$ac_t""$MSGFMT" 1>&6
2354 echo "$ac_t""no" 1>&6
2356 if test "$MSGFMT" != "no"; then
2357 for ac_func
in dcgettext
2359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2360 echo "configure:2361: checking for $ac_func" >&5
2361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2362 echo $ac_n "(cached) $ac_c" 1>&6
2364 cat > conftest.
$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2367 /* System header to define __stub macros and hopefully few prototypes,
2368 which can conflict with char $ac_func(); below. */
2370 /* Override any gcc2 internal prototype to avoid an error. */
2371 /* We use char because int might match the return type of a gcc2
2372 builtin and then its argument prototype would still apply. */
2377 /* The GNU C library defines this for functions which it implements
2378 to always fail with ENOSYS. Some functions are actually named
2379 something starting with __ and the normal name is an alias. */
2380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2388 if { (eval echo configure
:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2390 eval "ac_cv_func_$ac_func=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.
$ac_ext >&5
2395 eval "ac_cv_func_$ac_func=no"
2400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2401 echo "$ac_t""yes" 1>&6
2402 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2403 cat >> confdefs.h
<<EOF
2404 #define $ac_tr_func 1
2408 echo "$ac_t""no" 1>&6
2412 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2413 set dummy gmsgfmt
; ac_word
=$2
2414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2415 echo "configure:2416: checking for $ac_word" >&5
2416 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2421 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2424 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2427 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2429 for ac_dir
in $ac_dummy; do
2430 test -z "$ac_dir" && ac_dir
=.
2431 if test -f $ac_dir/$ac_word; then
2432 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2437 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2441 GMSGFMT
="$ac_cv_path_GMSGFMT"
2442 if test -n "$GMSGFMT"; then
2443 echo "$ac_t""$GMSGFMT" 1>&6
2445 echo "$ac_t""no" 1>&6
2448 # Extract the first word of "xgettext", so it can be a program name with args.
2449 set dummy xgettext
; ac_word
=$2
2450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2451 echo "configure:2452: checking for $ac_word" >&5
2452 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2453 echo $ac_n "(cached) $ac_c" 1>&6
2457 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2460 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2461 for ac_dir
in $PATH; do
2462 test -z "$ac_dir" && ac_dir
=.
2463 if test -f $ac_dir/$ac_word; then
2464 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2465 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2471 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2475 XGETTEXT
="$ac_cv_path_XGETTEXT"
2476 if test -n "$XGETTEXT"; then
2477 echo "$ac_t""$XGETTEXT" 1>&6
2479 echo "$ac_t""no" 1>&6
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2487 extern int _nl_msg_cat_cntr;
2488 return _nl_msg_cat_cntr
2491 if { (eval echo configure
:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2496 echo "configure: failed program was:" >&5
2497 cat conftest.
$ac_ext >&5
2508 echo "$ac_t""no" 1>&6
2513 if test "$CATOBJEXT" = "NONE"; then
2514 nls_cv_use_gnu_gettext
=yes
2518 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2519 INTLOBJS
="\$(GETTOBJS)"
2520 # Extract the first word of "msgfmt", so it can be a program name with args.
2521 set dummy msgfmt
; ac_word
=$2
2522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2523 echo "configure:2524: checking for $ac_word" >&5
2524 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2529 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2532 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2533 for ac_dir
in $PATH; do
2534 test -z "$ac_dir" && ac_dir
=.
2535 if test -f $ac_dir/$ac_word; then
2536 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2537 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2543 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2547 MSGFMT
="$ac_cv_path_MSGFMT"
2548 if test -n "$MSGFMT"; then
2549 echo "$ac_t""$MSGFMT" 1>&6
2551 echo "$ac_t""no" 1>&6
2554 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2555 set dummy gmsgfmt
; ac_word
=$2
2556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2557 echo "configure:2558: checking for $ac_word" >&5
2558 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2559 echo $ac_n "(cached) $ac_c" 1>&6
2563 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2566 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2569 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2571 for ac_dir
in $ac_dummy; do
2572 test -z "$ac_dir" && ac_dir
=.
2573 if test -f $ac_dir/$ac_word; then
2574 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2579 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2583 GMSGFMT
="$ac_cv_path_GMSGFMT"
2584 if test -n "$GMSGFMT"; then
2585 echo "$ac_t""$GMSGFMT" 1>&6
2587 echo "$ac_t""no" 1>&6
2590 # Extract the first word of "xgettext", so it can be a program name with args.
2591 set dummy xgettext
; ac_word
=$2
2592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2593 echo "configure:2594: checking for $ac_word" >&5
2594 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2599 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2602 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2603 for ac_dir
in $PATH; do
2604 test -z "$ac_dir" && ac_dir
=.
2605 if test -f $ac_dir/$ac_word; then
2606 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2607 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2613 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2617 XGETTEXT
="$ac_cv_path_XGETTEXT"
2618 if test -n "$XGETTEXT"; then
2619 echo "$ac_t""$XGETTEXT" 1>&6
2621 echo "$ac_t""no" 1>&6
2625 USE_INCLUDED_LIBINTL
=yes
2629 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2631 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2632 nls_cv_header_intl
=libintl.h
2633 nls_cv_header_libgt
=libgettext.h
2636 if test "$XGETTEXT" != ":"; then
2637 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2640 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2645 # We need to process the po/ directory.
2649 nls_cv_header_intl
=libintl.h
2650 nls_cv_header_libgt
=libgettext.h
2653 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2654 # because some of the sources are only built for this goal.
2655 if test "$PACKAGE" = gettext; then
2657 USE_INCLUDED_LIBINTL
=yes
2660 for lang
in $ALL_LINGUAS; do
2661 GMOFILES
="$GMOFILES $lang.gmo"
2662 POFILES
="$POFILES $lang.po"
2678 if test "x$CATOBJEXT" != "x"; then
2679 if test "x$ALL_LINGUAS" = "x"; then
2682 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2683 echo "configure:2684: checking for catalogs to be installed" >&5
2685 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2686 case "$ALL_LINGUAS" in
2687 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2690 LINGUAS
=$NEW_LINGUAS
2691 echo "$ac_t""$LINGUAS" 1>&6
2694 if test -n "$LINGUAS"; then
2695 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2699 if test $ac_cv_header_locale_h = yes; then
2700 INCLUDE_LOCALE_H
="#include <locale.h>"
2703 /* The system does not provide the header <locale.h>. Take care yourself. */"
2707 if test -f $srcdir/po2tbl.
sed.
in; then
2708 if test "$CATOBJEXT" = ".cat"; then
2709 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2710 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2711 echo "configure:2712: checking for linux/version.h" >&5
2712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2715 cat > conftest.
$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 #include <linux/version.h>
2720 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2721 { (eval echo configure
:2722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2722 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2723 if test -z "$ac_err"; then
2725 eval "ac_cv_header_$ac_safe=yes"
2728 echo "configure: failed program was:" >&5
2729 cat conftest.
$ac_ext >&5
2731 eval "ac_cv_header_$ac_safe=no"
2735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2736 echo "$ac_t""yes" 1>&6
2739 echo "$ac_t""no" 1>&6
2744 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2746 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2747 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2750 if test "$PACKAGE" = "gettext"; then
2760 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2766 if test -d $srcdir/po
; then
2767 test -d po || mkdir po
2768 if test "x$srcdir" != "x."; then
2769 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2770 posrcprefix
="$srcdir/"
2772 posrcprefix
="../$srcdir/"
2778 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2779 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2794 configdirs
="doc testsuite"
2796 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2797 if test "${enable_multi_ice+set}" = set; then
2798 enableval
="$enable_multi_ice"
2799 case "${enableval}" in
2800 yes ) enable_multi_ice
="yes" ;;
2801 no
) enable_multi_ice
="no" ;;
2802 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2808 if test "${enable_multi_ice}" = "yes"; then
2809 configdirs
="${configdirs} multi-ice"
2813 .
${srcdir}/configure.
host
2815 .
${srcdir}/configure.tgt
2818 for ac_prog
in mawk gawk nawk
awk
2820 # Extract the first word of "$ac_prog", so it can be a program name with args.
2821 set dummy
$ac_prog; ac_word
=$2
2822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2823 echo "configure:2824: checking for $ac_word" >&5
2824 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2827 if test -n "$AWK"; then
2828 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2830 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2832 for ac_dir
in $ac_dummy; do
2833 test -z "$ac_dir" && ac_dir
=.
2834 if test -f $ac_dir/$ac_word; then
2835 ac_cv_prog_AWK
="$ac_prog"
2842 AWK
="$ac_cv_prog_AWK"
2843 if test -n "$AWK"; then
2844 echo "$ac_t""$AWK" 1>&6
2846 echo "$ac_t""no" 1>&6
2849 test -n "$AWK" && break
2852 # Find a good install program. We prefer a C program (faster),
2853 # so one script is as good as another. But avoid the broken or
2854 # incompatible versions:
2855 # SysV /etc/install, /usr/sbin/install
2856 # SunOS /usr/etc/install
2857 # IRIX /sbin/install
2859 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2860 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2861 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2862 # ./install, which can be erroneously created by make from ./install.sh.
2863 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2864 echo "configure:2865: checking for a BSD compatible install" >&5
2865 if test -z "$INSTALL"; then
2866 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2869 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2870 for ac_dir
in $PATH; do
2871 # Account for people who put trailing slashes in PATH elements.
2873 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2875 # OSF1 and SCO ODT 3.0 have their own names for install.
2876 # Don't use installbsd from OSF since it installs stuff as root
2878 for ac_prog
in ginstall scoinst
install; do
2879 if test -f $ac_dir/$ac_prog; then
2880 if test $ac_prog = install &&
2881 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2882 # AIX install. It has an incompatible calling convention.
2885 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2896 if test "${ac_cv_path_install+set}" = set; then
2897 INSTALL
="$ac_cv_path_install"
2899 # As a last resort, use the slow shell script. We don't cache a
2900 # path for INSTALL within a source directory, because that will
2901 # break other packages using the cache if that directory is
2902 # removed, or if the path is relative.
2903 INSTALL
="$ac_install_sh"
2906 echo "$ac_t""$INSTALL" 1>&6
2908 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2909 # It thinks the first close brace ends the variable substitution.
2910 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2912 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2914 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2916 if test $host != $build; then
2917 ac_tool_prefix
=${host_alias}-
2922 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2923 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2925 echo "configure:2926: checking for $ac_word" >&5
2926 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2929 if test -n "$AR"; then
2930 ac_cv_prog_AR
="$AR" # Let the user override the test.
2932 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2934 for ac_dir
in $ac_dummy; do
2935 test -z "$ac_dir" && ac_dir
=.
2936 if test -f $ac_dir/$ac_word; then
2937 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2942 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2946 if test -n "$AR"; then
2947 echo "$ac_t""$AR" 1>&6
2949 echo "$ac_t""no" 1>&6
2954 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2955 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2957 echo "configure:2958: checking for $ac_word" >&5
2958 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2961 if test -n "$RANLIB"; then
2962 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2964 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2966 for ac_dir
in $ac_dummy; do
2967 test -z "$ac_dir" && ac_dir
=.
2968 if test -f $ac_dir/$ac_word; then
2969 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2976 RANLIB
="$ac_cv_prog_RANLIB"
2977 if test -n "$RANLIB"; then
2978 echo "$ac_t""$RANLIB" 1>&6
2980 echo "$ac_t""no" 1>&6
2984 if test -z "$ac_cv_prog_RANLIB"; then
2985 if test -n "$ac_tool_prefix"; then
2986 # Extract the first word of "ranlib", so it can be a program name with args.
2987 set dummy ranlib
; ac_word
=$2
2988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2989 echo "configure:2990: checking for $ac_word" >&5
2990 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2993 if test -n "$RANLIB"; then
2994 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2996 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2998 for ac_dir
in $ac_dummy; do
2999 test -z "$ac_dir" && ac_dir
=.
3000 if test -f $ac_dir/$ac_word; then
3001 ac_cv_prog_RANLIB
="ranlib"
3006 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3009 RANLIB
="$ac_cv_prog_RANLIB"
3010 if test -n "$RANLIB"; then
3011 echo "$ac_t""$RANLIB" 1>&6
3013 echo "$ac_t""no" 1>&6
3021 for ac_prog
in 'bison -y' byacc
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy
$ac_prog; ac_word
=$2
3025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3026 echo "configure:3027: checking for $ac_word" >&5
3027 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3030 if test -n "$YACC"; then
3031 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3033 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3035 for ac_dir
in $ac_dummy; do
3036 test -z "$ac_dir" && ac_dir
=.
3037 if test -f $ac_dir/$ac_word; then
3038 ac_cv_prog_YACC
="$ac_prog"
3045 YACC
="$ac_cv_prog_YACC"
3046 if test -n "$YACC"; then
3047 echo "$ac_t""$YACC" 1>&6
3049 echo "$ac_t""no" 1>&6
3052 test -n "$YACC" && break
3054 test -n "$YACC" || YACC
="yacc"
3057 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3058 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3060 echo "configure:3061: checking for $ac_word" >&5
3061 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3062 echo $ac_n "(cached) $ac_c" 1>&6
3064 if test -n "$MIG"; then
3065 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3067 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3069 for ac_dir
in $ac_dummy; do
3070 test -z "$ac_dir" && ac_dir
=.
3071 if test -f $ac_dir/$ac_word; then
3072 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3077 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3080 MIG
="$ac_cv_prog_MIG"
3081 if test -n "$MIG"; then
3082 echo "$ac_t""$MIG" 1>&6
3084 echo "$ac_t""no" 1>&6
3090 if test "$program_transform_name" = s
,x
,x
,; then
3091 program_transform_name
=
3093 # Double any \ or $. echo might interpret backslashes.
3094 cat <<\EOF_SED
> conftestsed
3095 s
,\\,\\\\,g
; s
,\$
,$$
,g
3097 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3100 test "$program_prefix" != NONE
&&
3101 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3102 # Use a double $ so make ignores it.
3103 test "$program_suffix" != NONE
&&
3104 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3106 # sed with no file args requires a program.
3107 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3110 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3111 echo "configure:3112: checking return type of signal handlers" >&5
3112 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 cat > conftest.
$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3118 #include <sys/types.h>
3124 extern "C" void (*signal (int, void (*)(int)))(int);
3126 void (*signal ()) ();
3133 if { (eval echo configure
:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3135 ac_cv_type_signal
=void
3137 echo "configure: failed program was:" >&5
3138 cat conftest.
$ac_ext >&5
3140 ac_cv_type_signal
=int
3145 echo "$ac_t""$ac_cv_type_signal" 1>&6
3146 cat >> confdefs.h
<<EOF
3147 #define RETSIGTYPE $ac_cv_type_signal
3152 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3153 echo "configure:3154: checking for ANSI C header files" >&5
3154 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 cat > conftest.
$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3165 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3166 { (eval echo configure
:3167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3167 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3168 if test -z "$ac_err"; then
3170 ac_cv_header_stdc
=yes
3173 echo "configure: failed program was:" >&5
3174 cat conftest.
$ac_ext >&5
3176 ac_cv_header_stdc
=no
3180 if test $ac_cv_header_stdc = yes; then
3181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3182 cat > conftest.
$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3188 egrep "memchr" >/dev
/null
2>&1; then
3192 ac_cv_header_stdc
=no
3198 if test $ac_cv_header_stdc = yes; then
3199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3200 cat > conftest.
$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3206 egrep "free" >/dev
/null
2>&1; then
3210 ac_cv_header_stdc
=no
3216 if test $ac_cv_header_stdc = yes; then
3217 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3218 if test "$cross_compiling" = yes; then
3221 cat > conftest.
$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3225 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3226 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3227 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3228 int main () { int i; for (i = 0; i < 256; i++)
3229 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3233 if { (eval echo configure
:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3237 echo "configure: failed program was:" >&5
3238 cat conftest.
$ac_ext >&5
3240 ac_cv_header_stdc
=no
3248 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3249 if test $ac_cv_header_stdc = yes; then
3250 cat >> confdefs.h
<<\EOF
3251 #define STDC_HEADERS 1
3257 for ac_hdr
in ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
3258 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3259 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3260 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3261 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3264 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_hdr" >&5
3267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 cat > conftest.
$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3275 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3276 { (eval echo configure
:3277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3277 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3278 if test -z "$ac_err"; then
3280 eval "ac_cv_header_$ac_safe=yes"
3283 echo "configure: failed program was:" >&5
3284 cat conftest.
$ac_ext >&5
3286 eval "ac_cv_header_$ac_safe=no"
3290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3292 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3293 cat >> confdefs.h
<<EOF
3294 #define $ac_tr_hdr 1
3298 echo "$ac_t""no" 1>&6
3302 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3303 echo "configure:3304: checking whether stat file-mode macros are broken" >&5
3304 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3307 cat > conftest.
$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 #include <sys/types.h>
3311 #include <sys/stat.h>
3313 #if defined(S_ISBLK) && defined(S_IFDIR)
3314 # if S_ISBLK (S_IFDIR)
3319 #if defined(S_ISBLK) && defined(S_IFCHR)
3320 # if S_ISBLK (S_IFCHR)
3325 #if defined(S_ISLNK) && defined(S_IFREG)
3326 # if S_ISLNK (S_IFREG)
3331 #if defined(S_ISSOCK) && defined(S_IFREG)
3332 # if S_ISSOCK (S_IFREG)
3338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3339 egrep "You lose" >/dev
/null
2>&1; then
3341 ac_cv_header_stat_broken
=yes
3344 ac_cv_header_stat_broken
=no
3350 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3351 if test $ac_cv_header_stat_broken = yes; then
3352 cat >> confdefs.h
<<\EOF
3353 #define STAT_MACROS_BROKEN 1
3359 echo $ac_n "checking for working const""... $ac_c" 1>&6
3360 echo "configure:3361: checking for working const" >&5
3361 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3370 /* Ultrix mips cc rejects this. */
3371 typedef int charset[2]; const charset x;
3372 /* SunOS 4.1.1 cc rejects this. */
3373 char const *const *ccp;
3375 /* NEC SVR4.0.2 mips cc rejects this. */
3376 struct point {int x, y;};
3377 static struct point const zero = {0,0};
3378 /* AIX XL C 1.02.0.0 rejects this.
3379 It does not let you subtract one const X* pointer from another in an arm
3380 of an if-expression whose if-part is not a constant expression */
3381 const char *g = "string";
3382 ccp = &g + (g ? g-g : 0);
3383 /* HPUX 7.0 cc rejects these. */
3386 ccp = (char const *const *) p;
3387 { /* SCO 3.2v4 cc rejects this. */
3389 char const *s = 0 ? (char *) 0 : (char const *) 0;
3393 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3395 const int *foo = &x[0];
3398 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3399 typedef const int *iptr;
3403 { /* AIX XL C 1.02.0.0 rejects this saying
3404 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3405 struct s { int j; const int *ap[3]; };
3406 struct s *b; b->j = 5;
3408 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3414 if { (eval echo configure
:3415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3418 echo "configure: failed program was:" >&5
3419 cat conftest.
$ac_ext >&5
3426 echo "$ac_t""$ac_cv_c_const" 1>&6
3427 if test $ac_cv_c_const = no
; then
3428 cat >> confdefs.h
<<\EOF
3435 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3438 echo "configure:3439: checking for $ac_func" >&5
3439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3442 cat > conftest.
$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 /* System header to define __stub macros and hopefully few prototypes,
3446 which can conflict with char $ac_func(); below. */
3448 /* Override any gcc2 internal prototype to avoid an error. */
3449 /* We use char because int might match the return type of a gcc2
3450 builtin and then its argument prototype would still apply. */
3455 /* The GNU C library defines this for functions which it implements
3456 to always fail with ENOSYS. Some functions are actually named
3457 something starting with __ and the normal name is an alias. */
3458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3466 if { (eval echo configure
:3467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3468 eval "ac_cv_func_$ac_func=yes"
3470 echo "configure: failed program was:" >&5
3471 cat conftest.
$ac_ext >&5
3473 eval "ac_cv_func_$ac_func=no"
3478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3479 echo "$ac_t""yes" 1>&6
3480 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3481 cat >> confdefs.h
<<EOF
3482 #define $ac_tr_func 1
3486 echo "$ac_t""no" 1>&6
3490 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3491 # for constant arguments. Useless!
3492 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3493 echo "configure:3494: checking for working alloca.h" >&5
3494 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 cat > conftest.
$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3502 char *p = alloca(2 * sizeof(int));
3505 if { (eval echo configure
:3506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3507 ac_cv_header_alloca_h
=yes
3509 echo "configure: failed program was:" >&5
3510 cat conftest.
$ac_ext >&5
3512 ac_cv_header_alloca_h
=no
3517 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3518 if test $ac_cv_header_alloca_h = yes; then
3519 cat >> confdefs.h
<<\EOF
3520 #define HAVE_ALLOCA_H 1
3525 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3526 echo "configure:3527: checking for alloca" >&5
3527 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 cat > conftest.
$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3535 # define alloca __builtin_alloca
3538 # include <malloc.h>
3539 # define alloca _alloca
3542 # include <alloca.h>
3547 # ifndef alloca /* predefined by HP cc +Olibcalls */
3556 char *p = (char *) alloca(1);
3559 if { (eval echo configure
:3560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3561 ac_cv_func_alloca_works
=yes
3563 echo "configure: failed program was:" >&5
3564 cat conftest.
$ac_ext >&5
3566 ac_cv_func_alloca_works
=no
3571 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3572 if test $ac_cv_func_alloca_works = yes; then
3573 cat >> confdefs.h
<<\EOF
3574 #define HAVE_ALLOCA 1
3579 if test $ac_cv_func_alloca_works = no
; then
3580 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3581 # that cause trouble. Some versions do not even contain alloca or
3582 # contain a buggy version. If you still want to use their alloca,
3583 # use ar to extract alloca.o from them instead of compiling alloca.c.
3584 ALLOCA
=alloca.
${ac_objext}
3585 cat >> confdefs.h
<<\EOF
3590 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3591 echo "configure:3592: checking whether alloca needs Cray hooks" >&5
3592 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3595 cat > conftest.
$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 #if defined(CRAY) && ! defined(CRAY2)
3605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3606 egrep "webecray" >/dev
/null
2>&1; then
3617 echo "$ac_t""$ac_cv_os_cray" 1>&6
3618 if test $ac_cv_os_cray = yes; then
3619 for ac_func
in _getb67 GETB67 getb67
; do
3620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3621 echo "configure:3622: checking for $ac_func" >&5
3622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3625 cat > conftest.
$ac_ext <<EOF
3626 #line 3627 "configure"
3627 #include "confdefs.h"
3628 /* System header to define __stub macros and hopefully few prototypes,
3629 which can conflict with char $ac_func(); below. */
3631 /* Override any gcc2 internal prototype to avoid an error. */
3632 /* We use char because int might match the return type of a gcc2
3633 builtin and then its argument prototype would still apply. */
3638 /* The GNU C library defines this for functions which it implements
3639 to always fail with ENOSYS. Some functions are actually named
3640 something starting with __ and the normal name is an alias. */
3641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3649 if { (eval echo configure
:3650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3651 eval "ac_cv_func_$ac_func=yes"
3653 echo "configure: failed program was:" >&5
3654 cat conftest.
$ac_ext >&5
3656 eval "ac_cv_func_$ac_func=no"
3661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3662 echo "$ac_t""yes" 1>&6
3663 cat >> confdefs.h
<<EOF
3664 #define CRAY_STACKSEG_END $ac_func
3669 echo "$ac_t""no" 1>&6
3675 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3676 echo "configure:3677: checking stack direction for C alloca" >&5
3677 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 if test "$cross_compiling" = yes; then
3681 ac_cv_c_stack_direction
=0
3683 cat > conftest.
$ac_ext <<EOF
3684 #line 3685 "configure"
3685 #include "confdefs.h"
3686 find_stack_direction ()
3688 static char *addr = 0;
3693 return find_stack_direction ();
3696 return (&dummy > addr) ? 1 : -1;
3700 exit (find_stack_direction() < 0);
3703 if { (eval echo configure
:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3705 ac_cv_c_stack_direction
=1
3707 echo "configure: failed program was:" >&5
3708 cat conftest.
$ac_ext >&5
3710 ac_cv_c_stack_direction
=-1
3717 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3718 cat >> confdefs.h
<<EOF
3719 #define STACK_DIRECTION $ac_cv_c_stack_direction
3725 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
3726 echo "configure:3727: checking for PTRACE_GETREGS" >&5
3727 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3730 cat > conftest.
$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3733 #include <sys/ptrace.h>
3738 if { (eval echo configure
:3739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3740 gdb_cv_have_ptrace_getregs
=yes
3742 echo "configure: failed program was:" >&5
3743 cat conftest.
$ac_ext >&5
3745 gdb_cv_have_ptrace_getregs
=no
3750 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
3751 if test $gdb_cv_have_ptrace_getregs = yes; then
3752 cat >> confdefs.h
<<\EOF
3753 #define HAVE_PTRACE_GETREGS 1
3758 echo $ac_n "checking for PTRACE_GETXFPREGS""... $ac_c" 1>&6
3759 echo "configure:3760: checking for PTRACE_GETXFPREGS" >&5
3760 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getxfpregs'+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"
3766 #include <sys/ptrace.h>
3771 if { (eval echo configure
:3772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3773 gdb_cv_have_ptrace_getxfpregs
=yes
3775 echo "configure: failed program was:" >&5
3776 cat conftest.
$ac_ext >&5
3778 gdb_cv_have_ptrace_getxfpregs
=no
3783 echo "$ac_t""$gdb_cv_have_ptrace_getxfpregs" 1>&6
3784 if test $gdb_cv_have_ptrace_getxfpregs = yes; then
3785 cat >> confdefs.h
<<\EOF
3786 #define HAVE_PTRACE_GETXFPREGS 1
3791 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
3792 echo "configure:3793: checking for socketpair in -lsocket" >&5
3793 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
3794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 ac_save_LIBS
="$LIBS"
3798 LIBS
="-lsocket $LIBS"
3799 cat > conftest.
$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3802 /* Override any gcc2 internal prototype to avoid an error. */
3803 /* We use char because int might match the return type of a gcc2
3804 builtin and then its argument prototype would still apply. */
3811 if { (eval echo configure
:3812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3813 eval "ac_cv_lib_$ac_lib_var=yes"
3815 echo "configure: failed program was:" >&5
3816 cat conftest.
$ac_ext >&5
3818 eval "ac_cv_lib_$ac_lib_var=no"
3821 LIBS
="$ac_save_LIBS"
3824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3825 echo "$ac_t""yes" 1>&6
3826 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3827 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3828 cat >> confdefs.h
<<EOF
3829 #define $ac_tr_lib 1
3832 LIBS
="-lsocket $LIBS"
3835 echo "$ac_t""no" 1>&6
3838 for ac_func
in socketpair
3840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3841 echo "configure:3842: checking for $ac_func" >&5
3842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3843 echo $ac_n "(cached) $ac_c" 1>&6
3845 cat > conftest.
$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3848 /* System header to define __stub macros and hopefully few prototypes,
3849 which can conflict with char $ac_func(); below. */
3851 /* Override any gcc2 internal prototype to avoid an error. */
3852 /* We use char because int might match the return type of a gcc2
3853 builtin and then its argument prototype would still apply. */
3858 /* The GNU C library defines this for functions which it implements
3859 to always fail with ENOSYS. Some functions are actually named
3860 something starting with __ and the normal name is an alias. */
3861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3869 if { (eval echo configure
:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3871 eval "ac_cv_func_$ac_func=yes"
3873 echo "configure: failed program was:" >&5
3874 cat conftest.
$ac_ext >&5
3876 eval "ac_cv_func_$ac_func=no"
3881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3882 echo "$ac_t""yes" 1>&6
3883 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3884 cat >> confdefs.h
<<EOF
3885 #define $ac_tr_func 1
3889 echo "$ac_t""no" 1>&6
3895 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3896 echo "configure:3897: checking whether malloc must be declared" >&5
3897 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3900 cat > conftest.
$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3905 #ifdef HAVE_STRING_H
3908 #ifdef HAVE_STRINGS_H
3909 #include <strings.h>
3912 #ifdef HAVE_STDLIB_H
3915 #ifdef HAVE_UNISTD_H
3919 char *(*pfn) = (char *(*)) malloc
3922 if { (eval echo configure
:3923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3924 bfd_cv_decl_needed_malloc
=no
3926 echo "configure: failed program was:" >&5
3927 cat conftest.
$ac_ext >&5
3929 bfd_cv_decl_needed_malloc
=yes
3934 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3935 if test $bfd_cv_decl_needed_malloc = yes; then
3936 cat >> confdefs.h
<<\EOF
3937 #define NEED_DECLARATION_MALLOC 1
3942 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3943 echo "configure:3944: checking whether realloc must be declared" >&5
3944 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3947 cat > conftest.
$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3952 #ifdef HAVE_STRING_H
3955 #ifdef HAVE_STRINGS_H
3956 #include <strings.h>
3959 #ifdef HAVE_STDLIB_H
3962 #ifdef HAVE_UNISTD_H
3966 char *(*pfn) = (char *(*)) realloc
3969 if { (eval echo configure
:3970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3971 bfd_cv_decl_needed_realloc
=no
3973 echo "configure: failed program was:" >&5
3974 cat conftest.
$ac_ext >&5
3976 bfd_cv_decl_needed_realloc
=yes
3981 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3982 if test $bfd_cv_decl_needed_realloc = yes; then
3983 cat >> confdefs.h
<<\EOF
3984 #define NEED_DECLARATION_REALLOC 1
3989 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3990 echo "configure:3991: checking whether free must be declared" >&5
3991 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3994 cat > conftest.
$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3999 #ifdef HAVE_STRING_H
4002 #ifdef HAVE_STRINGS_H
4003 #include <strings.h>
4006 #ifdef HAVE_STDLIB_H
4009 #ifdef HAVE_UNISTD_H
4013 char *(*pfn) = (char *(*)) free
4016 if { (eval echo configure
:4017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4018 bfd_cv_decl_needed_free
=no
4020 echo "configure: failed program was:" >&5
4021 cat conftest.
$ac_ext >&5
4023 bfd_cv_decl_needed_free
=yes
4028 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4029 if test $bfd_cv_decl_needed_free = yes; then
4030 cat >> confdefs.h
<<\EOF
4031 #define NEED_DECLARATION_FREE 1
4036 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4037 echo "configure:4038: checking whether strerror must be declared" >&5
4038 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4041 cat > conftest.
$ac_ext <<EOF
4042 #line 4043 "configure"
4043 #include "confdefs.h"
4046 #ifdef HAVE_STRING_H
4049 #ifdef HAVE_STRINGS_H
4050 #include <strings.h>
4053 #ifdef HAVE_STDLIB_H
4056 #ifdef HAVE_UNISTD_H
4060 char *(*pfn) = (char *(*)) strerror
4063 if { (eval echo configure
:4064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4065 bfd_cv_decl_needed_strerror
=no
4067 echo "configure: failed program was:" >&5
4068 cat conftest.
$ac_ext >&5
4070 bfd_cv_decl_needed_strerror
=yes
4075 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4076 if test $bfd_cv_decl_needed_strerror = yes; then
4077 cat >> confdefs.h
<<\EOF
4078 #define NEED_DECLARATION_STRERROR 1
4083 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4084 echo "configure:4085: checking whether strdup must be declared" >&5
4085 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 cat > conftest.
$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4093 #ifdef HAVE_STRING_H
4096 #ifdef HAVE_STRINGS_H
4097 #include <strings.h>
4100 #ifdef HAVE_STDLIB_H
4103 #ifdef HAVE_UNISTD_H
4107 char *(*pfn) = (char *(*)) strdup
4110 if { (eval echo configure
:4111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4112 bfd_cv_decl_needed_strdup
=no
4114 echo "configure: failed program was:" >&5
4115 cat conftest.
$ac_ext >&5
4117 bfd_cv_decl_needed_strdup
=yes
4122 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4123 if test $bfd_cv_decl_needed_strdup = yes; then
4124 cat >> confdefs.h
<<\EOF
4125 #define NEED_DECLARATION_STRDUP 1
4130 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4131 echo "configure:4132: checking whether strstr must be declared" >&5
4132 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4135 cat > conftest.
$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4140 #ifdef HAVE_STRING_H
4143 #ifdef HAVE_STRINGS_H
4144 #include <strings.h>
4147 #ifdef HAVE_STDLIB_H
4150 #ifdef HAVE_UNISTD_H
4154 char *(*pfn) = (char *(*)) strstr
4157 if { (eval echo configure
:4158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4159 bfd_cv_decl_needed_strstr
=no
4161 echo "configure: failed program was:" >&5
4162 cat conftest.
$ac_ext >&5
4164 bfd_cv_decl_needed_strstr
=yes
4169 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4170 if test $bfd_cv_decl_needed_strstr = yes; then
4171 cat >> confdefs.h
<<\EOF
4172 #define NEED_DECLARATION_STRSTR 1
4179 # The following save_state_t checkery is only necessary for HPUX
4180 # versions earlier than 10.20. When those fade from memory, this
4181 # could be expunged. --jsm 1999-03-22
4183 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4184 echo "configure:4185: checking for HPUX save_state structure" >&5
4185 cat > conftest.
$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 #include <machine/save_state.h>
4190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4191 egrep "save_state_t" >/dev
/null
2>&1; then
4193 gdb_cv_hpux_savestate
=yes
4196 gdb_cv_hpux_savestate
=no
4200 cat > conftest.
$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 #include <machine/save_state.h>
4205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206 egrep "ss_wide" >/dev
/null
2>&1; then
4208 gdb_cv_hpux_sswide
=yes
4211 gdb_cv_hpux_sswide
=no
4215 if test $gdb_cv_hpux_savestate = yes
4217 cat >> confdefs.h
<<\EOF
4218 #define HAVE_STRUCT_SAVE_STATE_T 1
4222 if test $gdb_cv_hpux_sswide = yes
4224 cat >> confdefs.h
<<\EOF
4225 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4229 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4232 # If we are configured native on GNU/Linux, work around problems with
4234 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4236 if test "${target}" = "${host}"; then
4239 cat >> confdefs.h
<<\EOF
4240 #define START_INFERIOR_TRAPS_EXPECTED 2
4243 cat >> confdefs.h
<<\EOF
4244 #define sys_quotactl 1
4248 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4249 cat >> confdefs.h
<<\EOF
4250 #define NEW_PROC_API 1
4254 # FIXME: we would like to define NEW_PROC_API for all versions of
4255 # Solaris from 2.6 on... but it isn't quite working yet. Seems
4256 # to work on sparc 2.6, so let's try it out there.
4257 sparc-sun-solaris2.6
)
4258 cat >> confdefs.h
<<\EOF
4259 #define NEW_PROC_API 1
4266 if test "$ac_cv_header_sys_procfs_h" = yes; then
4267 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4268 echo "configure:4269: checking for pstatus_t in sys/procfs.h" >&5
4269 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4272 cat > conftest.
$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 #include <sys/procfs.h>
4280 if { (eval echo configure
:4281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4282 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4284 echo "configure: failed program was:" >&5
4285 cat conftest.
$ac_ext >&5
4287 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4293 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4294 cat >> confdefs.h
<<\EOF
4295 #define HAVE_PSTATUS_T 1
4299 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4301 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4302 echo "configure:4303: checking for prrun_t in sys/procfs.h" >&5
4303 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4306 cat > conftest.
$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 #include <sys/procfs.h>
4314 if { (eval echo configure
:4315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4316 bfd_cv_have_sys_procfs_type_prrun_t
=yes
4318 echo "configure: failed program was:" >&5
4319 cat conftest.
$ac_ext >&5
4321 bfd_cv_have_sys_procfs_type_prrun_t
=no
4327 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4328 cat >> confdefs.h
<<\EOF
4329 #define HAVE_PRRUN_T 1
4333 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4335 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4336 echo "configure:4337: checking for gregset_t in sys/procfs.h" >&5
4337 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4338 echo $ac_n "(cached) $ac_c" 1>&6
4340 cat > conftest.
$ac_ext <<EOF
4341 #line 4342 "configure"
4342 #include "confdefs.h"
4343 #include <sys/procfs.h>
4348 if { (eval echo configure
:4349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4350 bfd_cv_have_sys_procfs_type_gregset_t
=yes
4352 echo "configure: failed program was:" >&5
4353 cat conftest.
$ac_ext >&5
4355 bfd_cv_have_sys_procfs_type_gregset_t
=no
4361 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4362 cat >> confdefs.h
<<\EOF
4363 #define HAVE_GREGSET_T 1
4367 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4369 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4370 echo "configure:4371: checking for fpregset_t in sys/procfs.h" >&5
4371 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4372 echo $ac_n "(cached) $ac_c" 1>&6
4374 cat > conftest.
$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4377 #include <sys/procfs.h>
4382 if { (eval echo configure
:4383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4384 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
4386 echo "configure: failed program was:" >&5
4387 cat conftest.
$ac_ext >&5
4389 bfd_cv_have_sys_procfs_type_fpregset_t
=no
4395 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4396 cat >> confdefs.h
<<\EOF
4397 #define HAVE_FPREGSET_T 1
4401 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4403 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
4404 echo "configure:4405: checking for prgregset_t in sys/procfs.h" >&5
4405 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4408 cat > conftest.
$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4411 #include <sys/procfs.h>
4416 if { (eval echo configure
:4417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4418 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
4420 echo "configure: failed program was:" >&5
4421 cat conftest.
$ac_ext >&5
4423 bfd_cv_have_sys_procfs_type_prgregset_t
=no
4429 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4430 cat >> confdefs.h
<<\EOF
4431 #define HAVE_PRGREGSET_T 1
4435 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
4437 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
4438 echo "configure:4439: checking for prfpregset_t in sys/procfs.h" >&5
4439 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+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"
4445 #include <sys/procfs.h>
4450 if { (eval echo configure
:4451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4452 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
4454 echo "configure: failed program was:" >&5
4455 cat conftest.
$ac_ext >&5
4457 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
4463 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4464 cat >> confdefs.h
<<\EOF
4465 #define HAVE_PRFPREGSET_T 1
4469 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
4471 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
4472 echo "configure:4473: checking for lwpid_t in sys/procfs.h" >&5
4473 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4476 cat > conftest.
$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4479 #include <sys/procfs.h>
4484 if { (eval echo configure
:4485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4486 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
4488 echo "configure: failed program was:" >&5
4489 cat conftest.
$ac_ext >&5
4491 bfd_cv_have_sys_procfs_type_lwpid_t
=no
4497 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4498 cat >> confdefs.h
<<\EOF
4499 #define HAVE_LWPID_T 1
4503 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
4505 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
4506 echo "configure:4507: checking for psaddr_t in sys/procfs.h" >&5
4507 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4510 cat > conftest.
$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 #include <sys/procfs.h>
4518 if { (eval echo configure
:4519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4520 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
4522 echo "configure: failed program was:" >&5
4523 cat conftest.
$ac_ext >&5
4525 bfd_cv_have_sys_procfs_type_psaddr_t
=no
4531 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4532 cat >> confdefs.h
<<\EOF
4533 #define HAVE_PSADDR_T 1
4537 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
4541 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4542 echo "configure:4543: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4543 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4544 echo $ac_n "(cached) $ac_c" 1>&6
4546 cat > conftest.
$ac_ext <<EOF
4547 #line 4548 "configure"
4548 #include "confdefs.h"
4550 #include <sys/types.h>
4551 #include <sys/procfs.h>
4556 dummy = ioctl(0, PIOCSET, &dummy);
4560 if { (eval echo configure
:4561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4562 gdb_cv_have_procfs_piocset
=yes
4564 echo "configure: failed program was:" >&5
4565 cat conftest.
$ac_ext >&5
4567 gdb_cv_have_procfs_piocset
=no
4572 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4573 if test $gdb_cv_have_procfs_piocset = yes; then
4574 cat >> confdefs.h
<<\EOF
4575 #define HAVE_PROCFS_PIOCSET 1
4581 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4582 echo "configure:4583: checking for main in -lm" >&5
4583 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
4584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6
4587 ac_save_LIBS
="$LIBS"
4589 cat > conftest.
$ac_ext <<EOF
4590 #line 4591 "configure"
4591 #include "confdefs.h"
4597 if { (eval echo configure
:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4599 eval "ac_cv_lib_$ac_lib_var=yes"
4601 echo "configure: failed program was:" >&5
4602 cat conftest.
$ac_ext >&5
4604 eval "ac_cv_lib_$ac_lib_var=no"
4607 LIBS
="$ac_save_LIBS"
4610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4611 echo "$ac_t""yes" 1>&6
4612 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4613 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4614 cat >> confdefs.h
<<EOF
4615 #define $ac_tr_lib 1
4621 echo "$ac_t""no" 1>&6
4625 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4626 echo "configure:4627: checking for wctype in -lc" >&5
4627 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 ac_save_LIBS
="$LIBS"
4633 cat > conftest.
$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4645 if { (eval echo configure
:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4647 eval "ac_cv_lib_$ac_lib_var=yes"
4649 echo "configure: failed program was:" >&5
4650 cat conftest.
$ac_ext >&5
4652 eval "ac_cv_lib_$ac_lib_var=no"
4655 LIBS
="$ac_save_LIBS"
4658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4659 echo "$ac_t""yes" 1>&6
4662 echo "$ac_t""no" 1>&6
4663 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4664 echo "configure:4665: checking for wctype in -lw" >&5
4665 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4666 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 ac_save_LIBS
="$LIBS"
4671 cat > conftest.
$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4674 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4683 if { (eval echo configure
:4684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4685 eval "ac_cv_lib_$ac_lib_var=yes"
4687 echo "configure: failed program was:" >&5
4688 cat conftest.
$ac_ext >&5
4690 eval "ac_cv_lib_$ac_lib_var=no"
4693 LIBS
="$ac_save_LIBS"
4696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4697 echo "$ac_t""yes" 1>&6
4698 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4699 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4700 cat >> confdefs.h
<<EOF
4701 #define $ac_tr_lib 1
4707 echo "$ac_t""no" 1>&6
4714 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4715 echo "configure:4716: checking for long long support in compiler" >&5
4716 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4719 cat > conftest.
$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4725 extern long long foo;
4726 switch (foo & 2) { case 0: return 1; }
4730 if { (eval echo configure
:4731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4732 gdb_cv_c_long_long
=yes
4734 echo "configure: failed program was:" >&5
4735 cat conftest.
$ac_ext >&5
4737 gdb_cv_c_long_long
=no
4742 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4743 if test $gdb_cv_c_long_long = yes; then
4744 cat >> confdefs.h
<<\EOF
4745 #define CC_HAS_LONG_LONG 1
4751 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4752 echo "configure:4753: checking for long long support in printf" >&5
4753 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4754 echo $ac_n "(cached) $ac_c" 1>&6
4756 if test "$cross_compiling" = yes; then
4757 gdb_cv_printf_has_long_long
=no
4759 cat > conftest.
$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4766 l = (l << 16) + 0x0123;
4767 l = (l << 16) + 0x4567;
4768 l = (l << 16) + 0x89ab;
4769 l = (l << 16) + 0xcdef;
4770 sprintf (buf, "0x%016llx", l);
4771 return (strcmp ("0x0123456789abcdef", buf));
4774 if { (eval echo configure
:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4776 gdb_cv_printf_has_long_long
=yes
4778 echo "configure: failed program was:" >&5
4779 cat conftest.
$ac_ext >&5
4781 gdb_cv_printf_has_long_long
=no
4788 if test $gdb_cv_printf_has_long_long = yes; then
4789 cat >> confdefs.h
<<\EOF
4790 #define PRINTF_HAS_LONG_LONG 1
4794 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4797 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4798 echo "configure:4799: checking for long double support in compiler" >&5
4799 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4802 cat > conftest.
$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4810 if { (eval echo configure
:4811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4812 ac_cv_c_long_double
=yes
4814 echo "configure: failed program was:" >&5
4815 cat conftest.
$ac_ext >&5
4817 ac_cv_c_long_double
=no
4822 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4823 if test $ac_cv_c_long_double = yes; then
4824 cat >> confdefs.h
<<\EOF
4825 #define HAVE_LONG_DOUBLE 1
4831 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4832 echo "configure:4833: checking for long double support in printf" >&5
4833 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4836 if test "$cross_compiling" = yes; then
4837 gdb_cv_printf_has_long_double
=no
4839 cat > conftest.
$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4845 long double f = 3.141592653;
4846 sprintf (buf, "%Lg", f);
4847 return (strncmp ("3.14159", buf, 7));
4850 if { (eval echo configure
:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4852 gdb_cv_printf_has_long_double
=yes
4854 echo "configure: failed program was:" >&5
4855 cat conftest.
$ac_ext >&5
4857 gdb_cv_printf_has_long_double
=no
4864 if test $gdb_cv_printf_has_long_double = yes; then
4865 cat >> confdefs.h
<<\EOF
4866 #define PRINTF_HAS_LONG_DOUBLE 1
4870 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4873 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4874 echo "configure:4875: checking for long double support in scanf" >&5
4875 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4878 if test "$cross_compiling" = yes; then
4879 gdb_cv_scanf_has_long_double
=no
4881 cat > conftest.
$ac_ext <<EOF
4882 #line 4883 "configure"
4883 #include "confdefs.h"
4886 char *buf = "3.141592653";
4888 sscanf (buf, "%Lg", &f);
4889 return !(f > 3.14159 && f < 3.14160);
4892 if { (eval echo configure
:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4894 gdb_cv_scanf_has_long_double
=yes
4896 echo "configure: failed program was:" >&5
4897 cat conftest.
$ac_ext >&5
4899 gdb_cv_scanf_has_long_double
=no
4906 if test $gdb_cv_scanf_has_long_double = yes; then
4907 cat >> confdefs.h
<<\EOF
4908 #define SCANF_HAS_LONG_DOUBLE 1
4912 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4914 for ac_hdr
in unistd.h
4916 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4918 echo "configure:4919: checking for $ac_hdr" >&5
4919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4920 echo $ac_n "(cached) $ac_c" 1>&6
4922 cat > conftest.
$ac_ext <<EOF
4923 #line 4924 "configure"
4924 #include "confdefs.h"
4927 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4928 { (eval echo configure
:4929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4929 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4930 if test -z "$ac_err"; then
4932 eval "ac_cv_header_$ac_safe=yes"
4935 echo "configure: failed program was:" >&5
4936 cat conftest.
$ac_ext >&5
4938 eval "ac_cv_header_$ac_safe=no"
4942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4943 echo "$ac_t""yes" 1>&6
4944 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4945 cat >> confdefs.h
<<EOF
4946 #define $ac_tr_hdr 1
4950 echo "$ac_t""no" 1>&6
4954 for ac_func
in getpagesize
4956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4957 echo "configure:4958: checking for $ac_func" >&5
4958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4959 echo $ac_n "(cached) $ac_c" 1>&6
4961 cat > conftest.
$ac_ext <<EOF
4962 #line 4963 "configure"
4963 #include "confdefs.h"
4964 /* System header to define __stub macros and hopefully few prototypes,
4965 which can conflict with char $ac_func(); below. */
4967 /* Override any gcc2 internal prototype to avoid an error. */
4968 /* We use char because int might match the return type of a gcc2
4969 builtin and then its argument prototype would still apply. */
4974 /* The GNU C library defines this for functions which it implements
4975 to always fail with ENOSYS. Some functions are actually named
4976 something starting with __ and the normal name is an alias. */
4977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4985 if { (eval echo configure
:4986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4987 eval "ac_cv_func_$ac_func=yes"
4989 echo "configure: failed program was:" >&5
4990 cat conftest.
$ac_ext >&5
4992 eval "ac_cv_func_$ac_func=no"
4997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4998 echo "$ac_t""yes" 1>&6
4999 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5000 cat >> confdefs.h
<<EOF
5001 #define $ac_tr_func 1
5005 echo "$ac_t""no" 1>&6
5009 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5010 echo "configure:5011: checking for working mmap" >&5
5011 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5014 if test "$cross_compiling" = yes; then
5015 ac_cv_func_mmap_fixed_mapped
=no
5017 cat > conftest.
$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5021 /* Thanks to Mike Haertel and Jim Avera for this test.
5022 Here is a matrix of mmap possibilities:
5023 mmap private not fixed
5024 mmap private fixed at somewhere currently unmapped
5025 mmap private fixed at somewhere already mapped
5026 mmap shared not fixed
5027 mmap shared fixed at somewhere currently unmapped
5028 mmap shared fixed at somewhere already mapped
5029 For private mappings, we should verify that changes cannot be read()
5030 back from the file, nor mmap's back from the file at a different
5031 address. (There have been systems where private was not correctly
5032 implemented like the infamous i386 svr4.0, and systems where the
5033 VM page cache was not coherent with the filesystem buffer cache
5034 like early versions of FreeBSD and possibly contemporary NetBSD.)
5035 For shared mappings, we should conversely verify that changes get
5036 propogated back to all the places they're supposed to be.
5038 Grep wants private fixed already mapped.
5039 The main things grep needs to know about mmap are:
5040 * does it exist and is it safe to write into the mmap'd area
5041 * how to use it (BSD variants) */
5042 #include <sys/types.h>
5044 #include <sys/mman.h>
5046 /* This mess was copied from the GNU getpagesize.h. */
5047 #ifndef HAVE_GETPAGESIZE
5048 # ifdef HAVE_UNISTD_H
5049 # include <unistd.h>
5052 /* Assume that all systems that can run configure have sys/param.h. */
5053 # ifndef HAVE_SYS_PARAM_H
5054 # define HAVE_SYS_PARAM_H 1
5057 # ifdef _SC_PAGESIZE
5058 # define getpagesize() sysconf(_SC_PAGESIZE)
5059 # else /* no _SC_PAGESIZE */
5060 # ifdef HAVE_SYS_PARAM_H
5061 # include <sys/param.h>
5062 # ifdef EXEC_PAGESIZE
5063 # define getpagesize() EXEC_PAGESIZE
5064 # else /* no EXEC_PAGESIZE */
5066 # define getpagesize() NBPG * CLSIZE
5069 # endif /* no CLSIZE */
5070 # else /* no NBPG */
5072 # define getpagesize() NBPC
5073 # else /* no NBPC */
5075 # define getpagesize() PAGESIZE
5076 # endif /* PAGESIZE */
5077 # endif /* no NBPC */
5078 # endif /* no NBPG */
5079 # endif /* no EXEC_PAGESIZE */
5080 # else /* no HAVE_SYS_PARAM_H */
5081 # define getpagesize() 8192 /* punt totally */
5082 # endif /* no HAVE_SYS_PARAM_H */
5083 # endif /* no _SC_PAGESIZE */
5085 #endif /* no HAVE_GETPAGESIZE */
5088 extern "C" { void *malloc(unsigned); }
5096 char *data, *data2, *data3;
5100 pagesize = getpagesize();
5103 * First, make a file with some known garbage in it.
5105 data = malloc(pagesize);
5108 for (i = 0; i < pagesize; ++i)
5109 *(data + i) = rand();
5111 fd = creat("conftestmmap", 0600);
5114 if (write(fd, data, pagesize) != pagesize)
5119 * Next, try to mmap the file at a fixed address which
5120 * already has something else allocated at it. If we can,
5121 * also make sure that we see the same garbage.
5123 fd = open("conftestmmap", O_RDWR);
5126 data2 = malloc(2 * pagesize);
5129 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5130 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5131 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5133 for (i = 0; i < pagesize; ++i)
5134 if (*(data + i) != *(data2 + i))
5138 * Finally, make sure that changes to the mapped area
5139 * do not percolate back to the file as seen by read().
5140 * (This is a bug on some variants of i386 svr4.0.)
5142 for (i = 0; i < pagesize; ++i)
5143 *(data2 + i) = *(data2 + i) + 1;
5144 data3 = malloc(pagesize);
5147 if (read(fd, data3, pagesize) != pagesize)
5149 for (i = 0; i < pagesize; ++i)
5150 if (*(data + i) != *(data3 + i))
5153 unlink("conftestmmap");
5158 if { (eval echo configure
:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5160 ac_cv_func_mmap_fixed_mapped
=yes
5162 echo "configure: failed program was:" >&5
5163 cat conftest.
$ac_ext >&5
5165 ac_cv_func_mmap_fixed_mapped
=no
5172 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5173 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5174 cat >> confdefs.h
<<\EOF
5183 if test ${build} = ${host} -a ${host} = ${target} ; then
5186 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
5187 echo "configure:5188: checking for HPUX/OSF thread support" >&5
5188 if test -f /usr
/include
/dce
/cma_config.h
; then
5189 if test "$GCC" = "yes" ; then
5190 echo "$ac_t""yes" 1>&6
5191 cat >> confdefs.h
<<\EOF
5192 #define HAVE_HPUX_THREAD_SUPPORT 1
5195 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
5196 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
5198 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
5201 echo "$ac_t""no" 1>&6
5205 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
5206 echo "configure:5207: checking for Solaris thread debugging library" >&5
5207 if test -f /usr
/lib
/libthread_db.so
.1 ; then
5208 echo "$ac_t""yes" 1>&6
5209 cat >> confdefs.h
<<\EOF
5210 #define HAVE_THREAD_DB_LIB 1
5213 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
5214 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
5215 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5216 echo "configure:5217: checking for dlopen in -ldl" >&5
5217 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6
5221 ac_save_LIBS
="$LIBS"
5223 cat > conftest.
$ac_ext <<EOF
5224 #line 5225 "configure"
5225 #include "confdefs.h"
5226 /* Override any gcc2 internal prototype to avoid an error. */
5227 /* We use char because int might match the return type of a gcc2
5228 builtin and then its argument prototype would still apply. */
5235 if { (eval echo configure
:5236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5237 eval "ac_cv_lib_$ac_lib_var=yes"
5239 echo "configure: failed program was:" >&5
5240 cat conftest.
$ac_ext >&5
5242 eval "ac_cv_lib_$ac_lib_var=no"
5245 LIBS
="$ac_save_LIBS"
5248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5249 echo "$ac_t""yes" 1>&6
5250 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5251 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5252 cat >> confdefs.h
<<EOF
5253 #define $ac_tr_lib 1
5259 echo "$ac_t""no" 1>&6
5262 if test "$GCC" = "yes" ; then
5263 # The GNU linker requires the -export-dynamic option to make
5264 # all symbols visible in the dynamic symbol table.
5265 hold_ldflags
=$LDFLAGS
5266 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
5267 echo "configure:5268: checking for the ld -export-dynamic flag" >&5
5268 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
5269 cat > conftest.
$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5277 if { (eval echo configure
:5278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5281 echo "configure: failed program was:" >&5
5282 cat conftest.
$ac_ext >&5
5287 LDFLAGS
=$hold_ldflags
5288 echo "$ac_t""$found" 1>&6
5289 if test $found = yes; then
5290 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
5293 # Sun randomly tweaked the prototypes in <proc_service.h>
5295 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
5296 echo "configure:5297: checking if <proc_service.h> is old" >&5
5297 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
5298 echo $ac_n "(cached) $ac_c" 1>&6
5301 cat > conftest.
$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5305 #include <proc_service.h>
5307 (struct ps_prochandle*, psaddr_t, const void*, size_t);
5313 if { (eval echo configure
:5314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5315 gdb_cv_proc_service_is_old
=no
5317 echo "configure: failed program was:" >&5
5318 cat conftest.
$ac_ext >&5
5320 gdb_cv_proc_service_is_old
=yes
5326 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
5327 if test $gdb_cv_proc_service_is_old = yes; then
5328 cat >> confdefs.h
<<\EOF
5329 #define PROC_SERVICE_IS_OLD 1
5334 echo "$ac_t""no" 1>&6
5342 # Check whether --enable-gdbmi or --disable-gdbmi was given.
5343 if test "${enable_gdbmi+set}" = set; then
5344 enableval
="$enable_gdbmi"
5346 case "${enable_gdbmi}" in
5348 "") enable_gdbmi
=yes ;;
5350 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
5356 case ${enable_gdbmi} in
5358 if test -d "${srcdir}/mi" ; then
5359 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
5360 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
5361 CONFIG_SRCS
="${CONFIG_SRS} \$(SUBDIR_MI_SRCS)"
5362 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
5363 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
5364 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
5365 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
5366 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
5367 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
5372 # Check whether --enable-tui or --disable-tui was given.
5373 if test "${enable_tui+set}" = set; then
5374 enableval
="$enable_tui"
5376 case "${enable_tui}" in
5378 "") enable_tui
=yes ;;
5380 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
5386 case ${enable_tui} in
5388 cat >> confdefs.h
<<\EOF
5393 TUI_LIBRARY
=tui
/libtui.a
5403 # Check whether --enable-netrom or --disable-netrom was given.
5404 if test "${enable_netrom+set}" = set; then
5405 enableval
="$enable_netrom"
5406 case "${enableval}" in
5407 yes) enable_netrom
=yes ;;
5408 no
) enable_netrom
=no
;;
5409 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5414 if test "${enable_netrom}" = "yes"; then
5415 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
5416 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
5419 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5420 if test "${enable_build_warnings+set}" = set; then
5421 enableval
="$enable_build_warnings"
5423 # not yet: -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
5424 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith"
5425 case "${enableval}" in
5427 no
) build_warnings
="-w";;
5428 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5429 build_warnings
="${build_warnings} ${t}";;
5430 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5431 build_warnings
="${t} ${build_warnings}";;
5432 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5434 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5435 echo "Setting warning flags = $build_warnings" 6>&1
5439 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5441 # Separate out the -Werror flag as some files just cannot be
5442 # compiled with it enabled.
5443 for w
in ${build_warnings}; do
5445 -Werr*) WERROR_CFLAGS
=-Werror ;;
5446 *) WARN_CFLAGS
="${WARN_CFLAGS} $w"
5462 # Check whether --with-mmalloc or --without-mmalloc was given.
5463 if test "${with_mmalloc+set}" = set; then
5464 withval
="$with_mmalloc"
5465 case "${withval}" in
5466 yes) want_mmalloc
=true
;;
5467 no
) want_mmalloc
=false
;;
5468 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5474 if test x
$want_mmalloc = xtrue
; then
5475 cat >> confdefs.h
<<\EOF
5476 #define USE_MMALLOC 1
5479 cat >> confdefs.h
<<\EOF
5480 #define MMCHECK_FORCE 1
5483 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
5484 MMALLOC
='../mmalloc/libmmalloc.a'
5487 # Check whether --with-included-regex or --without-included-regex was given.
5488 if test "${with_included_regex+set}" = set; then
5489 withval
="$with_included_regex"
5490 case "${withval}" in
5491 yes) want_included_regex
=true
;;
5492 no
) want_included_regex
=false
;;
5493 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
5496 want_included_regex
=true
5500 REGEX_CFLAGS
="-DUSE_INCLUDED_REGEX"
5501 if test $want_included_regex = false
; then
5502 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
5503 echo "configure:5504: checking for GNU regex" >&5
5504 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5507 cat > conftest.
$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 #include <gnu-versions.h>
5511 #include <sys/types.h>
5514 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
5515 #error No valid GNU regex.
5520 if { (eval echo configure
:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5522 gdb_cv_have_gnu_regex
=yes
5524 echo "configure: failed program was:" >&5
5525 cat conftest.
$ac_ext >&5
5527 gdb_cv_have_gnu_regex
=no
5532 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
5533 if test $gdb_cv_have_gnu_regex = yes; then
5541 # In the Cygwin environment, we need some additional flags.
5542 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5543 echo "configure:5544: checking for cygwin" >&5
5544 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5545 echo $ac_n "(cached) $ac_c" 1>&6
5547 cat > conftest.
$ac_ext <<EOF
5548 #line 5549 "configure"
5549 #include "confdefs.h"
5551 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5556 egrep "lose" >/dev
/null
2>&1; then
5558 gdb_cv_os_cygwin
=yes
5567 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5569 DLLTOOL
=${DLLTOOL-dlltool}
5570 WINDRES
=${WINDRES-windres}
5574 if test x
$gdb_host = xgo32
; then
5577 if test x
$gdb_cv_os_cygwin = xyes
; then
5578 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5581 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5582 echo "configure:5583: checking for tgetent in -lncurses" >&5
5583 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5585 echo $ac_n "(cached) $ac_c" 1>&6
5587 ac_save_LIBS
="$LIBS"
5588 LIBS
="-lncurses $LIBS"
5589 cat > conftest.
$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5592 /* Override any gcc2 internal prototype to avoid an error. */
5593 /* We use char because int might match the return type of a gcc2
5594 builtin and then its argument prototype would still apply. */
5601 if { (eval echo configure
:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5603 eval "ac_cv_lib_$ac_lib_var=yes"
5605 echo "configure: failed program was:" >&5
5606 cat conftest.
$ac_ext >&5
5608 eval "ac_cv_lib_$ac_lib_var=no"
5611 LIBS
="$ac_save_LIBS"
5614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5615 echo "$ac_t""yes" 1>&6
5618 echo "$ac_t""no" 1>&6
5619 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
5620 echo "configure:5621: checking for tgetent in -lHcurses" >&5
5621 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
5622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5623 echo $ac_n "(cached) $ac_c" 1>&6
5625 ac_save_LIBS
="$LIBS"
5626 LIBS
="-lHcurses $LIBS"
5627 cat > conftest.
$ac_ext <<EOF
5628 #line 5629 "configure"
5629 #include "confdefs.h"
5630 /* Override any gcc2 internal prototype to avoid an error. */
5631 /* We use char because int might match the return type of a gcc2
5632 builtin and then its argument prototype would still apply. */
5639 if { (eval echo configure
:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5641 eval "ac_cv_lib_$ac_lib_var=yes"
5643 echo "configure: failed program was:" >&5
5644 cat conftest.
$ac_ext >&5
5646 eval "ac_cv_lib_$ac_lib_var=no"
5649 LIBS
="$ac_save_LIBS"
5652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5653 echo "$ac_t""yes" 1>&6
5656 echo "$ac_t""no" 1>&6
5657 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5658 echo "configure:5659: checking for tgetent in -ltermlib" >&5
5659 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
5660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5661 echo $ac_n "(cached) $ac_c" 1>&6
5663 ac_save_LIBS
="$LIBS"
5664 LIBS
="-ltermlib $LIBS"
5665 cat > conftest.
$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5668 /* Override any gcc2 internal prototype to avoid an error. */
5669 /* We use char because int might match the return type of a gcc2
5670 builtin and then its argument prototype would still apply. */
5677 if { (eval echo configure
:5678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5679 eval "ac_cv_lib_$ac_lib_var=yes"
5681 echo "configure: failed program was:" >&5
5682 cat conftest.
$ac_ext >&5
5684 eval "ac_cv_lib_$ac_lib_var=no"
5687 LIBS
="$ac_save_LIBS"
5690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5691 echo "$ac_t""yes" 1>&6
5694 echo "$ac_t""no" 1>&6
5695 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5696 echo "configure:5697: checking for tgetent in -ltermcap" >&5
5697 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5699 echo $ac_n "(cached) $ac_c" 1>&6
5701 ac_save_LIBS
="$LIBS"
5702 LIBS
="-ltermcap $LIBS"
5703 cat > conftest.
$ac_ext <<EOF
5704 #line 5705 "configure"
5705 #include "confdefs.h"
5706 /* Override any gcc2 internal prototype to avoid an error. */
5707 /* We use char because int might match the return type of a gcc2
5708 builtin and then its argument prototype would still apply. */
5715 if { (eval echo configure
:5716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5717 eval "ac_cv_lib_$ac_lib_var=yes"
5719 echo "configure: failed program was:" >&5
5720 cat conftest.
$ac_ext >&5
5722 eval "ac_cv_lib_$ac_lib_var=no"
5725 LIBS
="$ac_save_LIBS"
5728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5729 echo "$ac_t""yes" 1>&6
5732 echo "$ac_t""no" 1>&6
5733 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5734 echo "configure:5735: checking for tgetent in -lcurses" >&5
5735 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5737 echo $ac_n "(cached) $ac_c" 1>&6
5739 ac_save_LIBS
="$LIBS"
5740 LIBS
="-lcurses $LIBS"
5741 cat > conftest.
$ac_ext <<EOF
5742 #line 5743 "configure"
5743 #include "confdefs.h"
5744 /* Override any gcc2 internal prototype to avoid an error. */
5745 /* We use char because int might match the return type of a gcc2
5746 builtin and then its argument prototype would still apply. */
5753 if { (eval echo configure
:5754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5755 eval "ac_cv_lib_$ac_lib_var=yes"
5757 echo "configure: failed program was:" >&5
5758 cat conftest.
$ac_ext >&5
5760 eval "ac_cv_lib_$ac_lib_var=no"
5763 LIBS
="$ac_save_LIBS"
5766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5767 echo "$ac_t""yes" 1>&6
5770 echo "$ac_t""no" 1>&6
5771 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5772 echo "configure:5773: checking for tgetent in -lterminfo" >&5
5773 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
5774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5777 ac_save_LIBS
="$LIBS"
5778 LIBS
="-lterminfo $LIBS"
5779 cat > conftest.
$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5782 /* Override any gcc2 internal prototype to avoid an error. */
5783 /* We use char because int might match the return type of a gcc2
5784 builtin and then its argument prototype would still apply. */
5791 if { (eval echo configure
:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5793 eval "ac_cv_lib_$ac_lib_var=yes"
5795 echo "configure: failed program was:" >&5
5796 cat conftest.
$ac_ext >&5
5798 eval "ac_cv_lib_$ac_lib_var=no"
5801 LIBS
="$ac_save_LIBS"
5804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5805 echo "$ac_t""yes" 1>&6
5808 echo "$ac_t""no" 1>&6
5822 if test "x$TERM_LIB" = x
5824 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
5830 # libreadline needs libuser32.a in a cygwin environment
5832 if test x
$gdb_cv_os_cygwin = xyes
; then
5833 WIN32LIBS
="-luser32"
5835 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
5841 LIBGUI
="../libgui/src/libgui.a"
5842 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
5846 # Check whether --with-cpu or --without-cpu was given.
5847 if test "${with_cpu+set}" = set; then
5850 powerpc-
* | powerpcle-
* )
5851 ## It would be nice to keep this table in sync with the one in
5853 case "${with_cpu}" in
5854 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
5856 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
5858 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
5859 ## These are all RS6000 variants, as far as GDB is concerned.
5869 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
5875 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
5878 cat >> confdefs.h
<<EOF
5879 #define TARGET_CPU_DEFAULT "${with_cpu}"
5887 # Check whether --enable-gdbtk or --disable-gdbtk was given.
5888 if test "${enable_gdbtk+set}" = set; then
5889 enableval
="$enable_gdbtk"
5890 case "${enableval}" in
5894 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5897 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5905 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
5909 # Default is on for everything but go32 and Cygwin
5914 if test -d "${srcdir}/gdbtk" ; then
5930 if test "${enable_gdbtk}" = "yes"; then
5934 # Ok, lets find the tcl configuration
5935 # First, look for one uninstalled.
5936 # the alternative search directory is invoked by --with-tclconfig
5939 if test x
"${no_tcl}" = x
; then
5940 # we reset no_tcl in case something fails here
5942 # Check whether --with-tclconfig or --without-tclconfig was given.
5943 if test "${with_tclconfig+set}" = set; then
5944 withval
="$with_tclconfig"
5945 with_tclconfig
=${withval}
5948 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
5949 echo "configure:5950: checking for Tcl configuration" >&5
5950 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
5951 echo $ac_n "(cached) $ac_c" 1>&6
5955 # First check to see if --with-tclconfig was specified.
5956 if test x
"${with_tclconfig}" != x
; then
5957 if test -f "${with_tclconfig}/tclConfig.sh" ; then
5958 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
5960 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
5964 # then check for a private Tcl installation
5965 if test x
"${ac_cv_c_tclconfig}" = x
; then
5968 `ls -dr ../tcl[7-9]* 2>/dev/null` \
5970 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
5972 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
5973 if test -f "$i/${configdir}/tclConfig.sh" ; then
5974 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5979 # check in a few common install locations
5980 if test x
"${ac_cv_c_tclconfig}" = x
; then
5981 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5982 if test -f "$i/tclConfig.sh" ; then
5983 ac_cv_c_tclconfig
=`(cd $i; pwd)`
5988 # check in a few other private locations
5989 if test x
"${ac_cv_c_tclconfig}" = x
; then
5992 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
5993 if test -f "$i/${configdir}/tclConfig.sh" ; then
5994 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
6002 if test x
"${ac_cv_c_tclconfig}" = x
; then
6003 TCLCONFIG
="# no Tcl configs found"
6004 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
6007 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
6008 echo "$ac_t""found $TCLCONFIG" 1>&6
6012 if test -z "${no_tcl}"; then
6042 # Ok, lets find the tk configuration
6043 # First, look for one uninstalled.
6044 # the alternative search directory is invoked by --with-tkconfig
6047 if test x
"${no_tk}" = x
; then
6048 # we reset no_tk in case something fails here
6050 # Check whether --with-tkconfig or --without-tkconfig was given.
6051 if test "${with_tkconfig+set}" = set; then
6052 withval
="$with_tkconfig"
6053 with_tkconfig
=${withval}
6056 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
6057 echo "configure:6058: checking for Tk configuration" >&5
6058 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
6059 echo $ac_n "(cached) $ac_c" 1>&6
6063 # First check to see if --with-tkconfig was specified.
6064 if test x
"${with_tkconfig}" != x
; then
6065 if test -f "${with_tkconfig}/tkConfig.sh" ; then
6066 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
6068 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
6072 # then check for a private Tk library
6073 if test x
"${ac_cv_c_tkconfig}" = x
; then
6076 `ls -dr ../tk[4-9]* 2>/dev/null` \
6078 `ls -dr ../../tk[4-9]* 2>/dev/null` \
6080 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
6081 if test -f "$i/${configdir}/tkConfig.sh" ; then
6082 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
6087 # check in a few common install locations
6088 if test x
"${ac_cv_c_tkconfig}" = x
; then
6089 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6090 if test -f "$i/tkConfig.sh" ; then
6091 ac_cv_c_tkconfig
=`(cd $i; pwd)`
6096 # check in a few other private locations
6097 if test x
"${ac_cv_c_tkconfig}" = x
; then
6100 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
6101 if test -f "$i/${configdir}/tkConfig.sh" ; then
6102 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
6110 if test x
"${ac_cv_c_tkconfig}" = x
; then
6111 TKCONFIG
="# no Tk configs found"
6112 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
6115 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
6116 echo "$ac_t""found $TKCONFIG" 1>&6
6122 # If $no_tk is nonempty, then we can't do Tk, and there is no
6123 # point to doing Tcl.
6124 if test -z "${no_tk}"; then
6126 if test -f "$TKCONFIG" ; then
6144 # Ok, lets find the tcl source trees so we can use the headers
6145 # Warning: transition of version 9 to 10 will break this algorithm
6146 # because 10 sorts before 9. We also look for just tcl. We have to
6147 # be careful that we don't match stuff like tclX by accident.
6148 # the alternative search directory is involked by --with-tclinclude
6152 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
6153 echo "configure:6154: checking for Tcl private headers. dir=${configdir}" >&5
6154 # Check whether --with-tclinclude or --without-tclinclude was given.
6155 if test "${with_tclinclude+set}" = set; then
6156 withval
="$with_tclinclude"
6157 with_tclinclude
=${withval}
6160 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6164 # first check to see if --with-tclinclude was specified
6165 if test x
"${with_tclinclude}" != x
; then
6166 if test -f ${with_tclinclude}/tclInt.h
; then
6167 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
6168 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
6169 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
6171 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6175 # next check if it came with Tcl configuration file
6176 if test x
"${ac_cv_c_tclconfig}" = x
; then
6177 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
6178 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
6182 # next check in private source directory
6184 # since ls returns lowest version numbers first, reverse its output
6185 if test x
"${ac_cv_c_tclh}" = x
; then
6188 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
6189 ${srcdir}/..
/..
/tcl \
6190 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
6191 ${srcdir}/..
/..
/..
/tcl \
6192 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
6193 if test -f $i/generic
/tclInt.h
; then
6194 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
6199 # finally check in a few common install locations
6201 # since ls returns lowest version numbers first, reverse its output
6202 if test x
"${ac_cv_c_tclh}" = x
; then
6204 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
6205 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
6206 /usr
/local
/src
/tcl \
6207 /usr
/local
/lib
/tcl \
6208 ${prefix}/include
; do
6209 if test -f $i/generic
/tclInt.h
; then
6210 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
6215 # see if one is installed
6216 if test x
"${ac_cv_c_tclh}" = x
; then
6217 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
6218 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
6219 echo "configure:6220: checking for tclInt.h" >&5
6220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6221 echo $ac_n "(cached) $ac_c" 1>&6
6223 cat > conftest.
$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6228 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6229 { (eval echo configure
:6230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6230 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6231 if test -z "$ac_err"; then
6233 eval "ac_cv_header_$ac_safe=yes"
6236 echo "configure: failed program was:" >&5
6237 cat conftest.
$ac_ext >&5
6239 eval "ac_cv_header_$ac_safe=no"
6243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6244 echo "$ac_t""yes" 1>&6
6245 ac_cv_c_tclh
=installed
6247 echo "$ac_t""no" 1>&6
6255 if test x
"${ac_cv_c_tclh}" = x
; then
6256 TCLHDIR
="# no Tcl private headers found"
6257 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
6259 if test x
"${ac_cv_c_tclh}" != x
; then
6261 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
6262 echo "$ac_t""is installed" 1>&6
6265 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
6266 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
6267 TCLHDIR
="-I${ac_cv_c_tclh}"
6275 # Ok, lets find the tk source trees so we can use the headers
6276 # If the directory (presumably symlink) named "tk" exists, use that one
6277 # in preference to any others. Same logic is used when choosing library
6278 # and again with Tcl. The search order is the best place to look first, then in
6279 # decreasing significance. The loop breaks if the trigger file is found.
6280 # Note the gross little conversion here of srcdir by cd'ing to the found
6281 # directory. This converts the path from a relative to an absolute, so
6282 # recursive cache variables for the path will work right. We check all
6283 # the possible paths in one loop rather than many seperate loops to speed
6285 # the alternative search directory is involked by --with-tkinclude
6288 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
6289 echo "configure:6290: checking for Tk private headers" >&5
6290 # Check whether --with-tkinclude or --without-tkinclude was given.
6291 if test "${with_tkinclude+set}" = set; then
6292 withval
="$with_tkinclude"
6293 with_tkinclude
=${withval}
6296 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6300 # first check to see if --with-tkinclude was specified
6301 if test x
"${with_tkinclude}" != x
; then
6302 if test -f ${with_tkinclude}/tk.h
; then
6303 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
6304 elif test -f ${with_tkinclude}/generic
/tk.h
; then
6305 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
6307 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6311 # next check if it came with Tk configuration file
6312 if test x
"${ac_cv_c_tkconfig}" = x
; then
6313 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
6314 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
6318 # next check in private source directory
6320 # since ls returns lowest version numbers first, reverse its output
6321 if test x
"${ac_cv_c_tkh}" = x
; then
6324 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
6325 ${srcdir}/..
/..
/tk \
6326 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
6327 ${srcdir}/..
/..
/..
/tk \
6328 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
6329 if test -f $i/generic
/tk.h
; then
6330 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6335 # finally check in a few common install locations
6337 # since ls returns lowest version numbers first, reverse its output
6338 if test x
"${ac_cv_c_tkh}" = x
; then
6340 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
6341 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
6344 ${prefix}/include
; do
6345 if test -f $i/generic
/tk.h
; then
6346 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6351 # see if one is installed
6352 if test x
"${ac_cv_c_tkh}" = x
; then
6353 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
6354 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
6355 echo "configure:6356: checking for tk.h" >&5
6356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6357 echo $ac_n "(cached) $ac_c" 1>&6
6359 cat > conftest.
$ac_ext <<EOF
6360 #line 6361 "configure"
6361 #include "confdefs.h"
6364 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6365 { (eval echo configure
:6366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6366 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6367 if test -z "$ac_err"; then
6369 eval "ac_cv_header_$ac_safe=yes"
6372 echo "configure: failed program was:" >&5
6373 cat conftest.
$ac_ext >&5
6375 eval "ac_cv_header_$ac_safe=no"
6379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6380 echo "$ac_t""yes" 1>&6
6381 ac_cv_c_tkh
=installed
6383 echo "$ac_t""no" 1>&6
6391 if test x
"${ac_cv_c_tkh}" != x
; then
6393 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
6394 echo "$ac_t""is installed" 1>&6
6397 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
6398 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
6399 TKHDIR
="-I${ac_cv_c_tkh}"
6402 TKHDIR
="# no Tk directory found"
6403 echo "configure: warning: Can't find Tk private headers" 1>&2
6410 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6411 echo "configure:6412: checking for Itcl private headers. srcdir=${srcdir}" >&5
6412 if test x
"${ac_cv_c_itclh}" = x
; then
6413 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
6414 if test -f $i/generic
/itcl.h
; then
6415 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
6420 if test x
"${ac_cv_c_itclh}" = x
; then
6421 ITCLHDIR
="# no Itcl private headers found"
6422 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
6424 if test x
"${ac_cv_c_itclh}" != x
; then
6425 ITCLHDIR
="-I${ac_cv_c_itclh}"
6427 # should always be here
6428 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
6433 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6434 echo "configure:6435: checking for Itk private headers. srcdir=${srcdir}" >&5
6435 if test x
"${ac_cv_c_itkh}" = x
; then
6436 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
6437 if test -f $i/generic
/itk.h
; then
6438 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
6443 if test x
"${ac_cv_c_itkh}" = x
; then
6444 ITKHDIR
="# no Itk private headers found"
6445 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
6447 if test x
"${ac_cv_c_itkh}" != x
; then
6448 ITKHDIR
="-I${ac_cv_c_itkh}"
6450 # should always be here
6451 # ITKLIB="../itcl/itk/unix/libitk.a"
6456 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6457 echo "configure:6458: checking for Tix private headers. srcdir=${srcdir}" >&5
6458 if test x
"${ac_cv_c_tixh}" = x
; then
6459 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
6460 if test -f $i/generic
/tix.h
; then
6461 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
6466 if test x
"${ac_cv_c_tixh}" = x
; then
6467 TIXHDIR
="# no Tix private headers found"
6468 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
6470 if test x
"${ac_cv_c_tixh}" != x
; then
6471 TIXHDIR
="-I${ac_cv_c_tixh}"
6476 # now look for Itcl library stuff
6480 # Ok, lets find the itcl configuration
6481 # First, look for one uninstalled.
6482 # the alternative search directory is invoked by --with-itclconfig
6485 if test x
"${no_itcl}" = x
; then
6486 # we reset no_itcl in case something fails here
6488 # Check whether --with-itclconfig or --without-itclconfig was given.
6489 if test "${with_itclconfig+set}" = set; then
6490 withval
="$with_itclconfig"
6491 with_itclconfig
=${withval}
6494 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
6495 echo "configure:6496: checking for Itcl configuration" >&5
6496 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6501 # First check to see if --with-itclconfig was specified.
6502 if test x
"${with_itclconfig}" != x
; then
6503 if test -f "${with_itclconfig}/itclConfig.sh" ; then
6504 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
6506 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
6510 # then check for a private Itcl library
6511 if test x
"${ac_cv_c_itclconfig}" = x
; then
6514 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
6516 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
6518 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
6519 if test -f "$i/itclConfig.sh" ; then
6520 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6525 # check in a few common install locations
6526 if test x
"${ac_cv_c_itclconfig}" = x
; then
6527 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6528 if test -f "$i/itclConfig.sh" ; then
6529 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6534 # check in a few other private locations
6535 if test x
"${ac_cv_c_itclconfig}" = x
; then
6537 ${srcdir}/..
/itcl
/itcl \
6538 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
6539 if test -f "$i/itclConfig.sh" ; then
6540 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6548 if test x
"${ac_cv_c_itclconfig}" = x
; then
6549 ITCLCONFIG
="# no Itcl configs found"
6550 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
6553 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
6554 echo "$ac_t""found $ITCLCONFIG" 1>&6
6558 if test -z "${no_itcl}"; then
6560 if test -f "$ITCLCONFIG" ; then
6576 itcldir
=..
/itcl
/itcl
/win
/
6579 itcldir
=..
/itcl
/itcl
/unix
/
6584 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
6585 ITCL_DEPS
="${itcldir}${ITCL_LIB_FILE}"
6589 # now look for Itk library stuff
6592 # Ok, lets find the itk configuration
6593 # First, look for one uninstalled.
6594 # the alternative search directory is invoked by --with-itkconfig
6597 if test x
"${no_itk}" = x
; then
6598 # we reset no_itk in case something fails here
6600 # Check whether --with-itkconfig or --without-itkconfig was given.
6601 if test "${with_itkconfig+set}" = set; then
6602 withval
="$with_itkconfig"
6603 with_itkconfig
=${withval}
6606 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
6607 echo "configure:6608: checking for Itk configuration" >&5
6608 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
6609 echo $ac_n "(cached) $ac_c" 1>&6
6613 # First check to see if --with-itkconfig was specified.
6614 if test x
"${with_itkconfig}" != x
; then
6615 if test -f "${with_itkconfig}/itkConfig.sh" ; then
6616 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
6618 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
6622 # then check for a private Itk library
6623 if test x
"${ac_cv_c_itkconfig}" = x
; then
6626 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
6628 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
6630 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
6631 if test -f "$i/itkConfig.sh" ; then
6632 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6637 # check in a few common install locations
6638 if test x
"${ac_cv_c_itkconfig}" = x
; then
6639 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6640 if test -f "$i/itkConfig.sh" ; then
6641 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6646 # check in a few other private locations
6647 if test x
"${ac_cv_c_itkconfig}" = x
; then
6649 ${srcdir}/..
/itcl
/itk \
6650 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
6651 if test -f "$i/itkConfig.sh" ; then
6652 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6660 if test x
"${ac_cv_c_itkconfig}" = x
; then
6661 ITKCONFIG
="# no Itk configs found"
6662 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
6665 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
6666 echo "$ac_t""found $ITKCONFIG" 1>&6
6671 if test -z "${no_itcl}"; then
6673 if test -f "$ITKCONFIG" ; then
6690 itkdir
=..
/itcl
/itk
/win
/
6693 itkdir
=..
/itcl
/itk
/unix
/
6697 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
6698 ITK_DEPS
="${itkdir}${ITK_LIB_FILE}"
6701 # now look for Tix library stuff
6704 # Ok, lets find the tix configuration
6705 # First, look for one uninstalled.
6706 # the alternative search directory is invoked by --with-itkconfig
6709 if test x
"${no_tix}" = x
; then
6710 # we reset no_tix in case something fails here
6712 # Check whether --with-tixconfig or --without-tixconfig was given.
6713 if test "${with_tixconfig+set}" = set; then
6714 withval
="$with_tixconfig"
6715 with_tixconfig
=${withval}
6718 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
6719 echo "configure:6720: checking for Tix configuration" >&5
6720 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
6721 echo $ac_n "(cached) $ac_c" 1>&6
6725 # First check to see if --with-tixconfig was specified.
6726 if test x
"${with_tixconfig}" != x
; then
6727 if test -f "${with_tixconfig}/tixConfig.sh" ; then
6728 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
6730 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
6734 # then check for a private Tix library
6735 if test x
"${ac_cv_c_tixconfig}" = x
; then
6738 `ls -dr ../tix 2>/dev/null` \
6740 `ls -dr ../../tix 2>/dev/null` \
6742 `ls -dr ../../../tix 2>/dev/null` ; do
6743 echo "**** Looking at $i - with ${configdir}"
6744 if test -f "$i/tixConfig.sh" ; then
6745 ac_cv_c_tixconfig
=`(cd $i; pwd)`
6750 # check in a few common install locations
6751 if test x
"${ac_cv_c_tixconfig}" = x
; then
6752 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6753 echo "**** Looking at $i"
6754 if test -f "$i/tixConfig.sh" ; then
6755 ac_cv_c_tixconfig
=`(cd $i; pwd)`
6760 # check in a few other private locations
6761 echo "**** Other private locations"
6762 if test x
"${ac_cv_c_tixconfig}" = x
; then
6765 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
6766 echo "**** Looking at $i - with ${configdir}"
6767 if test -f "$i/${configdir}/tixConfig.sh" ; then
6768 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
6776 if test x
"${ac_cv_c_tixconfig}" = x
; then
6777 TIXCONFIG
="# no Tix configs found"
6778 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
6781 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
6782 echo "$ac_t""found $TIXCONFIG" 1>&6
6787 if test -z "${no_tix}"; then
6789 if test -f "$TIXCONFIG" ; then
6800 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
6801 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
6804 ENABLE_CFLAGS
="$ENABLE_CFLAGS -DGDBTK"
6805 # Tcl/Tk 8.1 require -fwritable strings. I don't
6806 # know whether 8.2 will or not, but I bet it will.
6807 # I don't have to worry about 7.x since we don't support it.
6809 if test "$GCC" = "yes"; then
6810 if test "$TCL_VERSION" != "8.0" ; then
6811 GDBTK_CFLAGS
="-fwritable-strings"
6815 # Include some libraries that Tcl and Tk want.
6816 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
6817 CONFIG_DEPS
='$(LIBGUI) $(ITCL_DEPS) $(ITK_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
6818 # Yes, the ordering seems wrong here. But it isn't.
6819 # TK_LIBS is the list of libraries that need to be linked
6820 # after Tcl/Tk. Note that this isn't put into LIBS. If it
6821 # were in LIBS then any link tests after this point would
6822 # try to include things like `$(LIBGUI)', which wouldn't work.
6823 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
6824 CONFIG_SRCS
="${CONFIG_SRCS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
6825 CONFIG_OBS
="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-varobj.o gdbtk-wrapper.o"
6826 CONFIG_INITS
="${CONFIG_INITS} gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c"
6827 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
6828 CONFIG_CLEAN
="${CONFIG_ALL} \$(SUBDIR_GDBTK_CLEAN)"
6829 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
6830 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
6832 if test x
$gdb_cv_os_cygwin = xyes
; then
6833 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
6834 WIN32LDAPP
="-Wl,--subsystem,console"
6835 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
6853 # If we find X, set shell vars x_includes and x_libraries to the
6854 # paths, otherwise set no_x=yes.
6855 # Uses ac_ vars as temps to allow command line to override cache and checks.
6856 # --without-x overrides everything else, but does not touch the cache.
6857 echo $ac_n "checking for X""... $ac_c" 1>&6
6858 echo "configure:6859: checking for X" >&5
6860 # Check whether --with-x or --without-x was given.
6861 if test "${with_x+set}" = set; then
6866 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6867 if test "x$with_x" = xno
; then
6868 # The user explicitly disabled X.
6871 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6872 # Both variables are already set.
6875 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6878 # One or both of the vars are not set, and there is no cached value.
6879 ac_x_includes
=NO ac_x_libraries
=NO
6881 if mkdir conftestdir
; then
6883 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6884 cat > Imakefile
<<'EOF'
6886 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6888 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6889 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6890 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6891 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6892 for ac_extension
in a so sl
; do
6893 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6894 test -f $ac_im_libdir/libX11.
$ac_extension; then
6895 ac_im_usrlibdir
=$ac_im_libdir; break
6898 # Screen out bogus values from the imake configuration. They are
6899 # bogus both because they are the default anyway, and because
6900 # using them would break gcc on systems where it needs fixed includes.
6901 case "$ac_im_incroot" in
6903 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
6905 case "$ac_im_usrlibdir" in
6907 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
6914 if test "$ac_x_includes" = NO
; then
6915 # Guess where to find include files, by looking for this one X11 .h file.
6916 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
6918 # First, try using that file with no special directory specified.
6919 cat > conftest.
$ac_ext <<EOF
6920 #line 6921 "configure"
6921 #include "confdefs.h"
6922 #include <$x_direct_test_include>
6924 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6925 { (eval echo configure
:6926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6926 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6927 if test -z "$ac_err"; then
6929 # We can compile using X headers with no special include directory.
6933 echo "configure: failed program was:" >&5
6934 cat conftest.
$ac_ext >&5
6936 # Look for the header file in a standard set of common directories.
6937 # Check X11 before X11Rn because it is often a symlink to the current release.
6940 /usr
/X11R
6/include \
6941 /usr
/X11R
5/include \
6942 /usr
/X11R
4/include \
6945 /usr
/include
/X11R6 \
6946 /usr
/include
/X11R5 \
6947 /usr
/include
/X11R4 \
6949 /usr
/local
/X11
/include \
6950 /usr
/local
/X11R
6/include \
6951 /usr
/local
/X11R
5/include \
6952 /usr
/local
/X11R
4/include \
6954 /usr
/local
/include
/X11 \
6955 /usr
/local
/include
/X11R6 \
6956 /usr
/local
/include
/X11R5 \
6957 /usr
/local
/include
/X11R4 \
6961 /usr
/XFree86
/include
/X11 \
6964 /usr
/local
/include \
6965 /usr
/unsupported
/include \
6966 /usr
/athena
/include \
6967 /usr
/local
/x11r
5/include \
6968 /usr
/lpp
/Xamples
/include \
6970 /usr
/openwin
/include \
6971 /usr
/openwin
/share
/include \
6974 if test -r "$ac_dir/$x_direct_test_include"; then
6975 ac_x_includes
=$ac_dir
6981 fi # $ac_x_includes = NO
6983 if test "$ac_x_libraries" = NO
; then
6984 # Check for the libraries.
6986 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
6987 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
6989 # See if we find them without any special options.
6990 # Don't add to $LIBS permanently.
6991 ac_save_LIBS
="$LIBS"
6992 LIBS
="-l$x_direct_test_library $LIBS"
6993 cat > conftest.
$ac_ext <<EOF
6994 #line 6995 "configure"
6995 #include "confdefs.h"
6998 ${x_direct_test_function}()
7001 if { (eval echo configure
:7002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7003 LIBS
="$ac_save_LIBS"
7004 # We can link X programs with no special library path.
7007 echo "configure: failed program was:" >&5
7008 cat conftest.
$ac_ext >&5
7010 LIBS
="$ac_save_LIBS"
7011 # First see if replacing the include by lib works.
7012 # Check X11 before X11Rn because it is often a symlink to the current release.
7013 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
7024 /usr
/local
/X11
/lib \
7025 /usr
/local
/X11R
6/lib \
7026 /usr
/local
/X11R
5/lib \
7027 /usr
/local
/X11R
4/lib \
7029 /usr
/local
/lib
/X11 \
7030 /usr
/local
/lib
/X11R6 \
7031 /usr
/local
/lib
/X11R5 \
7032 /usr
/local
/lib
/X11R4 \
7036 /usr
/XFree86
/lib
/X11 \
7040 /usr
/unsupported
/lib \
7042 /usr
/local
/x11r
5/lib \
7043 /usr
/lpp
/Xamples
/lib \
7047 /usr
/openwin
/share
/lib \
7050 for ac_extension
in a so sl
; do
7051 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
7052 ac_x_libraries
=$ac_dir
7059 fi # $ac_x_libraries = NO
7061 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
7062 # Didn't find X anywhere. Cache the known absence of X.
7063 ac_cv_have_x
="have_x=no"
7065 # Record where we found X for the cache.
7066 ac_cv_have_x
="have_x=yes \
7067 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7071 eval "$ac_cv_have_x"
7074 if test "$have_x" != yes; then
7075 echo "$ac_t""$have_x" 1>&6
7078 # If each of the values was on the command line, it overrides each guess.
7079 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7080 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7081 # Update the cache value to reflect the command line values.
7082 ac_cv_have_x
="have_x=yes \
7083 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7084 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7089 # Unlike the sim directory, whether a simulator is linked is controlled by
7090 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7091 # This code just checks for a few cases where we'd like to ignore those
7092 # definitions, even when they're present in the '.mt' file. These cases
7093 # are when --disable-sim is specified, or if the simulator directory is
7094 # not part of the soruce tree.
7096 # Check whether --enable-sim or --disable-sim was given.
7097 if test "${enable_sim+set}" = set; then
7098 enableval
="$enable_sim"
7099 echo "enable_sim = $enable_sim";
7100 echo "enableval = ${enableval}";
7101 case "${enableval}" in
7102 yes) ignore_sim
=false
;;
7103 no
) ignore_sim
=true
;;
7104 *) ignore_sim
=false
;;
7111 if test ! -d "${srcdir}/../sim"; then
7115 if test "${ignore_sim}" = "true"; then
7117 IGNORE_SIM_OBS
="SIM_OBS="
7121 cat >> confdefs.h
<<\EOF
7140 # Begin stuff to support --enable-shared
7141 # Check whether --enable-shared or --disable-shared was given.
7142 if test "${enable_shared+set}" = set; then
7143 enableval
="$enable_shared"
7144 case "${enableval}" in
7153 # If we have shared libraries, try to set rpath reasonably.
7154 if test "${shared}" = "true"; then
7157 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
7159 *-*-irix5* |
*-*-irix6*)
7160 HLDFLAGS
='-Wl,-rpath,$(libdir)'
7164 *-*-linux* |
*-pc-linux-gnu*)
7165 HLDFLAGS
='-Wl,-rpath,$(libdir)'
7168 HLDFLAGS
='-R $(libdir)'
7171 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;'
7176 # On SunOS, if the linker supports the -rpath option, use it to
7177 # prevent ../bfd and ../opcodes from being included in the run time
7181 echo 'main () { }' > conftest.c
7182 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
7183 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
7185 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
7187 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
7189 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
7191 elif test "${shared}" = "true"; then
7192 HLDFLAGS
='-Wl,-rpath=$(libdir)'
7194 HLDFLAGS
='-Wl,-rpath='
7196 rm -f conftest.t conftest.c conftest
7201 # End stuff to support --enable-shared
7203 # target_subdir is used by the testsuite to find the target libraries.
7205 if test "${host}" != "${target}"; then
7206 target_subdir
="${target_alias}/"
7211 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
7212 if test ! -f ${host_makefile_frag}; then
7213 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
7215 frags
="$frags $host_makefile_frag"
7217 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
7218 if test ! -f ${target_makefile_frag}; then
7219 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
7221 frags
="$frags $target_makefile_frag"
7228 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7229 ' ${host_makefile_frag}`
7231 targetfile
=`sed -n '
7232 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7233 ' ${target_makefile_frag}`
7235 # these really aren't orthogonal true/false values of the same condition,
7236 # but shells are slow enough that I like to reuse the test conditions
7238 if test "${target}" = "${host}"; then
7239 nativefile
=`sed -n '
7240 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7241 ' ${host_makefile_frag}`
7243 # GDBserver is only useful in a "native" enviroment
7244 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
7248 SUBDIRS
="doc testsuite nlm"
7249 if test "${enable_multi_ice}" = "yes"; then
7250 SUBDIRS
="${SUBDIRS} multi-ice"
7255 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
7256 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
7257 # corresponding links. But we have to remove the xm.h files and tm.h
7258 # files anyway, e.g. when switching from "configure host" to
7264 if test "${hostfile}" != ""; then
7265 files
="${files} config/${gdb_host_cpu}/${hostfile}"
7266 links
="${links} xm.h"
7269 if test "${targetfile}" != ""; then
7270 files
="${files} config/${gdb_target_cpu}/${targetfile}"
7271 links
="${links} tm.h"
7274 if test "${nativefile}" != ""; then
7275 files
="${files} config/${gdb_host_cpu}/${nativefile}"
7276 links
="${links} nm.h"
7278 # A cross-only configuration.
7279 files
="${files} config/nm-empty.h"
7280 links
="${links} nm.h"
7282 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7283 echo "configure:7284: checking whether ln -s works" >&5
7284 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7285 echo $ac_n "(cached) $ac_c" 1>&6
7288 if ln -s X conftestdata
2>/dev
/null
7291 ac_cv_prog_LN_S
="ln -s"
7296 LN_S
="$ac_cv_prog_LN_S"
7297 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7298 echo "$ac_t""yes" 1>&6
7300 echo "$ac_t""no" 1>&6
7306 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7307 echo "configure:7308: checking for Cygwin environment" >&5
7308 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7311 cat > conftest.
$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7318 #define __CYGWIN__ __CYGWIN32__
7323 if { (eval echo configure
:7324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7327 echo "configure: failed program was:" >&5
7328 cat conftest.
$ac_ext >&5
7336 echo "$ac_t""$ac_cv_cygwin" 1>&6
7338 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
7339 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7340 echo "configure:7341: checking for mingw32 environment" >&5
7341 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
7342 echo $ac_n "(cached) $ac_c" 1>&6
7344 cat > conftest.
$ac_ext <<EOF
7345 #line 7346 "configure"
7346 #include "confdefs.h"
7352 if { (eval echo configure
:7353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7356 echo "configure: failed program was:" >&5
7357 cat conftest.
$ac_ext >&5
7365 echo "$ac_t""$ac_cv_mingw32" 1>&6
7367 test "$ac_cv_mingw32" = yes && MINGW32
=yes
7370 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7371 echo "configure:7372: checking for executable suffix" >&5
7372 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
7373 echo $ac_n "(cached) $ac_c" 1>&6
7375 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
7379 echo 'int main () { return 0; }' > conftest.
$ac_ext
7381 if { (eval echo configure
:7382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7382 for file in conftest.
*; do
7384 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
7385 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
7389 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7392 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
7397 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
7398 echo "$ac_t""${ac_cv_exeext}" 1>&6
7402 subdirs
="$configdirs"
7405 cat > confcache
<<\EOF
7406 # This file is a shell script that caches the results of configure
7407 # tests run on this system so they can be shared between configure
7408 # scripts and configure runs. It is not useful on other systems.
7409 # If it contains results you don't want to keep, you may remove or edit it.
7411 # By default, configure uses ./config.cache as the cache file,
7412 # creating it if it does not exist already. You can give configure
7413 # the --cache-file=FILE option to use a different cache file; that is
7414 # what configure does when it calls configure scripts in
7415 # subdirectories, so they share the cache.
7416 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7417 # config.status only pays attention to the cache file if you give it the
7418 # --recheck option to rerun configure.
7421 # The following way of writing the cache mishandles newlines in values,
7422 # but we know of no workaround that is simple, portable, and efficient.
7423 # So, don't put newlines in cache variables' values.
7424 # Ultrix sh set writes to stderr and can't be redirected directly,
7425 # and sets the high bit in the cache file unless we assign to the vars.
7427 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7429 # `set' does not quote correctly, so add quotes (double-quote substitution
7430 # turns \\\\ into \\, and sed turns \\ into \).
7432 -e "s/'/'\\\\''/g" \
7433 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7436 # `set' quotes correctly as required by POSIX, so do not add quotes.
7437 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7440 if cmp -s $cache_file confcache
; then
7443 if test -w $cache_file; then
7444 echo "updating cache $cache_file"
7445 cat confcache
> $cache_file
7447 echo "not updating unwritable cache $cache_file"
7452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7454 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7455 # Let make expand exec_prefix.
7456 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7458 # Any assignment to VPATH causes Sun make to only execute
7459 # the first set of double-colon rules, so remove it if not needed.
7460 # If there is a colon in the path, we need to keep it.
7461 if test "x$srcdir" = x.
; then
7462 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7465 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7467 DEFS
=-DHAVE_CONFIG_H
7469 # Without the "./", some shells look in PATH for config.status.
7470 : ${CONFIG_STATUS=./config.status}
7472 echo creating
$CONFIG_STATUS
7473 rm -f $CONFIG_STATUS
7474 cat > $CONFIG_STATUS <<EOF
7476 # Generated automatically by configure.
7477 # Run this file to recreate the current configuration.
7478 # This directory was configured as follows,
7479 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7481 # $0 $ac_configure_args
7483 # Compiler output produced by configure, useful for debugging
7484 # configure, is in ./config.log if it exists.
7486 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7489 case "\$ac_option" in
7490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7491 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7492 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7493 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7494 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7496 -help | --help | --hel | --he | --h)
7497 echo "\$ac_cs_usage"; exit 0 ;;
7498 *) echo "\$ac_cs_usage"; exit 1 ;;
7502 ac_given_srcdir=$srcdir
7503 ac_given_INSTALL="$INSTALL"
7505 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7507 cat >> $CONFIG_STATUS <<EOF
7509 # Protect against being on the right side of a sed subst in config.status.
7510 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7511 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7515 s%@CFLAGS@%$CFLAGS%g
7516 s%@CPPFLAGS@%$CPPFLAGS%g
7517 s%@CXXFLAGS@%$CXXFLAGS%g
7518 s%@FFLAGS@%$FFLAGS%g
7520 s%@LDFLAGS@%$LDFLAGS%g
7522 s%@exec_prefix@%$exec_prefix%g
7523 s%@prefix@%$prefix%g
7524 s%@program_transform_name@%$program_transform_name%g
7525 s%@bindir@%$bindir%g
7526 s%@sbindir@%$sbindir%g
7527 s%@libexecdir@%$libexecdir%g
7528 s%@datadir@%$datadir%g
7529 s%@sysconfdir@%$sysconfdir%g
7530 s%@sharedstatedir@%$sharedstatedir%g
7531 s%@localstatedir@%$localstatedir%g
7532 s%@libdir@%$libdir%g
7533 s%@includedir@%$includedir%g
7534 s%@oldincludedir@%$oldincludedir%g
7535 s%@infodir@%$infodir%g
7536 s%@mandir@%$mandir%g
7540 s%@host_alias@%$host_alias%g
7541 s%@host_cpu@%$host_cpu%g
7542 s%@host_vendor@%$host_vendor%g
7543 s%@host_os@%$host_os%g
7544 s%@target@%$target%g
7545 s%@target_alias@%$target_alias%g
7546 s%@target_cpu@%$target_cpu%g
7547 s%@target_vendor@%$target_vendor%g
7548 s%@target_os@%$target_os%g
7550 s%@build_alias@%$build_alias%g
7551 s%@build_cpu@%$build_cpu%g
7552 s%@build_vendor@%$build_vendor%g
7553 s%@build_os@%$build_os%g
7554 s%@SET_MAKE@%$SET_MAKE%g
7555 s%@RANLIB@%$RANLIB%g
7556 s%@ALLOCA@%$ALLOCA%g
7557 s%@USE_NLS@%$USE_NLS%g
7558 s%@MSGFMT@%$MSGFMT%g
7559 s%@GMSGFMT@%$GMSGFMT%g
7560 s%@XGETTEXT@%$XGETTEXT%g
7561 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7562 s%@CATALOGS@%$CATALOGS%g
7563 s%@CATOBJEXT@%$CATOBJEXT%g
7564 s%@DATADIRNAME@%$DATADIRNAME%g
7565 s%@GMOFILES@%$GMOFILES%g
7566 s%@INSTOBJEXT@%$INSTOBJEXT%g
7567 s%@INTLDEPS@%$INTLDEPS%g
7568 s%@INTLLIBS@%$INTLLIBS%g
7569 s%@INTLOBJS@%$INTLOBJS%g
7570 s%@POFILES@%$POFILES%g
7572 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7574 s%@GT_YES@%$GT_YES%g
7575 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7578 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7579 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7580 s%@INSTALL_DATA@%$INSTALL_DATA%g
7584 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
7585 s%@BUILD_TUI@%$BUILD_TUI%g
7586 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
7587 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7588 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
7589 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
7590 s%@MMALLOC@%$MMALLOC%g
7592 s%@REGEX_CFLAGS@%$REGEX_CFLAGS%g
7593 s%@DLLTOOL@%$DLLTOOL%g
7594 s%@WINDRES@%$WINDRES%g
7595 s%@TERM_LIB@%$TERM_LIB%g
7596 s%@WIN32LIBS@%$WIN32LIBS%g
7597 s%@LIBGUI@%$LIBGUI%g
7598 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
7599 s%@WIN32LDAPP@%$WIN32LDAPP%g
7600 s%@TCL_VERSION@%$TCL_VERSION%g
7601 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
7602 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
7603 s%@TCL_CC@%$TCL_CC%g
7604 s%@TCL_DEFS@%$TCL_DEFS%g
7605 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
7606 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
7607 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
7608 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
7609 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
7610 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
7611 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
7612 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
7613 s%@TCL_RANLIB@%$TCL_RANLIB%g
7614 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
7615 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
7616 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
7617 s%@TK_VERSION@%$TK_VERSION%g
7618 s%@TK_DEFS@%$TK_DEFS%g
7619 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
7620 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
7621 s%@TK_XLIBSW@%$TK_XLIBSW%g
7622 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
7623 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
7624 s%@TCLHDIR@%$TCLHDIR%g
7625 s%@TKHDIR@%$TKHDIR%g
7626 s%@ITCLHDIR@%$ITCLHDIR%g
7627 s%@ITKHDIR@%$ITKHDIR%g
7628 s%@TIXHDIR@%$TIXHDIR%g
7629 s%@ITCL_VERSION@%$ITCL_VERSION%g
7630 s%@ITCL_DEFS@%$ITCL_DEFS%g
7631 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
7632 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
7633 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
7634 s%@ITK_VERSION@%$ITK_VERSION%g
7635 s%@ITK_DEFS@%$ITK_DEFS%g
7636 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
7637 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
7638 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
7639 s%@TIX_VERSION@%$TIX_VERSION%g
7640 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
7641 s%@X_CFLAGS@%$X_CFLAGS%g
7642 s%@X_LDFLAGS@%$X_LDFLAGS%g
7643 s%@X_LIBS@%$X_LIBS%g
7644 s%@ITCLLIB@%$ITCLLIB%g
7645 s%@ITCL_DEPS@%$ITCL_DEPS%g
7646 s%@ITKLIB@%$ITKLIB%g
7647 s%@ITK_DEPS@%$ITK_DEPS%g
7648 s%@TIXLIB@%$TIXLIB%g
7649 s%@TIX_DEPS@%$TIX_DEPS%g
7650 s%@GDBTKLIBS@%$GDBTKLIBS%g
7651 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
7652 s%@IGNORE_SIM@%$IGNORE_SIM%g
7653 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
7654 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
7655 s%@CONFIG_OBS@%$CONFIG_OBS%g
7656 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
7657 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
7658 s%@CONFIG_INITS@%$CONFIG_INITS%g
7659 s%@CONFIG_ALL@%$CONFIG_ALL%g
7660 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
7661 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
7662 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
7663 s%@HLDFLAGS@%$HLDFLAGS%g
7664 s%@HLDENV@%$HLDENV%g
7665 s%@target_subdir@%$target_subdir%g
7666 /@host_makefile_frag@/r $host_makefile_frag
7667 s%@host_makefile_frag@%%g
7668 /@target_makefile_frag@/r $target_makefile_frag
7669 s%@target_makefile_frag@%%g
7671 s%@SUBDIRS@%$SUBDIRS%g
7673 s%@EXEEXT@%$EXEEXT%g
7674 s%@subdirs@%$subdirs%g
7679 cat >> $CONFIG_STATUS <<\EOF
7681 # Split the substitutions into bite-sized pieces for seds with
7682 # small command number limits, like on Digital OSF/1 and HP-UX.
7683 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7684 ac_file
=1 # Number of current file.
7685 ac_beg
=1 # First line for current file.
7686 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7689 while $ac_more_lines; do
7690 if test $ac_beg -gt 1; then
7691 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7693 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7695 if test ! -s conftest.s
$ac_file; then
7697 rm -f conftest.s
$ac_file
7699 if test -z "$ac_sed_cmds"; then
7700 ac_sed_cmds
="sed -f conftest.s$ac_file"
7702 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7704 ac_file
=`expr $ac_file + 1`
7706 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7709 if test -z "$ac_sed_cmds"; then
7714 cat >> $CONFIG_STATUS <<EOF
7716 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
7718 cat >> $CONFIG_STATUS <<\EOF
7719 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7720 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7722 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7723 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7724 *) ac_file_in
="${ac_file}.in" ;;
7727 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7729 # Remove last slash and all that follows it. Not all systems have dirname.
7730 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7731 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7732 # The file is in a subdirectory.
7733 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7734 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7735 # A "../" for each directory in $ac_dir_suffix.
7736 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7738 ac_dir_suffix
= ac_dots
=
7741 case "$ac_given_srcdir" in
7743 if test -z "$ac_dots"; then top_srcdir
=.
7744 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7745 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7747 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7748 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7751 case "$ac_given_INSTALL" in
7752 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7753 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7756 echo creating
"$ac_file"
7758 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7760 *Makefile
*) ac_comsub
="1i\\
7761 # $configure_input" ;;
7765 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7767 s%@configure_input@%$configure_input%g
7768 s%@srcdir@%$srcdir%g
7769 s%@top_srcdir@%$top_srcdir%g
7770 s%@INSTALL@%$INSTALL%g
7771 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7775 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7776 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7778 # ac_d sets the value in "#define NAME VALUE" lines.
7779 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7780 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7783 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7784 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7785 ac_uB
='\([ ]\)%\1#\2define\3'
7788 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7789 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7790 ac_eB
='$%\1#\2define\3'
7794 if test "${CONFIG_HEADERS+set}" != set; then
7796 cat >> $CONFIG_STATUS <<EOF
7797 CONFIG_HEADERS="config.h:config.in"
7799 cat >> $CONFIG_STATUS <<\EOF
7801 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7802 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7804 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7805 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7806 *) ac_file_in
="${ac_file}.in" ;;
7809 echo creating
$ac_file
7811 rm -f conftest.frag conftest.
in conftest.out
7812 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7813 cat $ac_file_inputs > conftest.
in
7817 # Transform confdefs.h into a sed script conftest.vals that substitutes
7818 # the proper values into config.h.in to produce config.h. And first:
7819 # Protect against being on the right side of a sed subst in config.status.
7820 # Protect against being in an unquoted here document in config.status.
7822 cat > conftest.hdr
<<\EOF
7825 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7829 sed -n -f conftest.hdr confdefs.h > conftest.vals
7832 # This sed command replaces #undef with comments. This is necessary, for
7833 # example, in the case of _POSIX_SOURCE, which is predefined and required
7834 # on some systems where configure will not decide to define it.
7835 cat >> conftest.vals <<\EOF
7836 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7839 # Break up conftest.vals because some shells have a limit on
7840 # the size of here documents, and old seds have small limits too.
7845 ac_lines=`grep -c . conftest.vals
`
7846 # grep -c gives empty output for an empty file on some AIX systems.
7847 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7848 # Write a limited-size here document to conftest.frag.
7849 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7850 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7852 sed -f conftest.frag conftest.in > conftest.out
7854 mv conftest.out conftest.in
7856 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7858 mv conftest.tail conftest.vals
7862 cat >> $CONFIG_STATUS <<\EOF
7863 rm -f conftest.frag conftest.h
7864 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7865 cat conftest.in >> conftest.h
7867 if cmp -s $ac_file conftest.h 2>/dev/null; then
7868 echo "$ac_file is unchanged"
7871 # Remove last slash and all that follows it. Not all systems have dirname.
7872 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7873 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7874 # The file is in a subdirectory.
7875 test ! -d "$ac_dir" && mkdir "$ac_dir"
7878 mv conftest.h $ac_file
7884 cat >> $CONFIG_STATUS <<EOF
7889 cat >> $CONFIG_STATUS <<\EOF
7890 srcdir=$ac_given_srcdir
7891 while test -n "$ac_sources"; do
7892 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7893 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7895 echo "linking $srcdir/$ac_source to $ac_dest"
7897 if test ! -r $srcdir/$ac_source; then
7898 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7902 # Make relative symlinks.
7903 # Remove last slash and all that follows it. Not all systems have dirname.
7904 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7905 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7906 # The dest file is in a subdirectory.
7907 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7908 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7909 # A "../" for each directory in $ac_dest_dir_suffix.
7910 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7912 ac_dest_dir_suffix= ac_dots=
7916 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7917 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7920 # Make a symlink if possible; otherwise try a hard link.
7921 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7922 ln $srcdir/$ac_source $ac_dest; then :
7924 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7928 cat >> $CONFIG_STATUS <<EOF
7930 gdb_host_cpu=$gdb_host_cpu
7931 gdb_target_cpu=$gdb_target_cpu
7932 nativefile=$nativefile
7935 cat >> $CONFIG_STATUS <<\EOF
7937 if test "${nativefile}" = ""; then
7938 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
7939 < Makefile > Makefile.tem
7940 mv -f Makefile.tem Makefile
7943 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
7944 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
7945 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
7946 mv -f Makefile.tmp Makefile
7949 case x$CONFIG_HEADERS in
7950 xconfig.h:config.in)
7956 chmod +x $CONFIG_STATUS
7957 rm -fr confdefs* $ac_clean_files
7958 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7960 if test "$no_recursion" != yes; then
7962 # Remove --cache-file and --srcdir arguments so they do not pile up.
7963 ac_sub_configure_args=
7965 for ac_arg in $ac_configure_args; do
7966 if test -n "$ac_prev"; then
7971 -cache-file | --cache-file | --cache-fil | --cache-fi \
7972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7973 ac_prev=cache_file ;;
7974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7977 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7979 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7981 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7985 for ac_config_dir in $configdirs; do
7987 # Do not complain, so a configure script can configure whichever
7988 # parts of a large source tree are present.
7989 if test ! -d $srcdir/$ac_config_dir; then
7993 echo configuring in $ac_config_dir
7998 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8000 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8008 # A "../" for each directory in /$ac_config_dir.
8009 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
8012 .) # No --srcdir option. We are building in place.
8013 ac_sub_srcdir=$srcdir ;;
8014 /*) # Absolute path.
8015 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8017 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8020 # Check for guested configure; otherwise get Cygnus style configure.
8021 if test -f $ac_sub_srcdir/configure; then
8022 ac_sub_configure=$ac_sub_srcdir/configure
8023 elif test -f $ac_sub_srcdir/configure.in; then
8024 ac_sub_configure=$ac_configure
8026 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8030 # The recursion is here.
8031 if test -n "$ac_sub_configure"; then
8033 # Make the cache file name correct relative to the subdirectory.
8034 case "$cache_file" in
8035 /*) ac_sub_cache_file=$cache_file ;;
8037 ac_sub_cache_file="$ac_dots$cache_file" ;;
8039 case "$ac_given_INSTALL" in
8040 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8041 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8044 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8045 # The eval makes quoting arguments work.
8046 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8049 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }