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-cpu=CPU Set the default CPU variant to debug"
33 --enable-gdbtk Enable GDBTK GUI front end"
35 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
37 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
39 --with-tclinclude=DIR Directory where tcl private headers are"
41 --with-tkinclude=DIR Directory where tk private headers are"
43 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
45 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
47 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
49 --with-x use the X Window System"
51 --enable-sim Link gdb with simulator"
53 --enable-shared Use shared libraries"
55 # Initialize some variables set by options.
56 # The variables have the same names as the options, with
57 # dashes changed to underlines.
59 cache_file
=.
/config.cache
68 program_transform_name
=s
,x
,x
,
76 bindir
='${exec_prefix}/bin'
77 sbindir
='${exec_prefix}/sbin'
78 libexecdir
='${exec_prefix}/libexec'
79 datadir
='${prefix}/share'
80 sysconfdir
='${prefix}/etc'
81 sharedstatedir
='${prefix}/com'
82 localstatedir
='${prefix}/var'
83 libdir
='${exec_prefix}/lib'
84 includedir
='${prefix}/include'
85 oldincludedir
='/usr/include'
86 infodir
='${prefix}/info'
87 mandir
='${prefix}/man'
89 # Initialize some other variables.
92 SHELL
=${CONFIG_SHELL-/bin/sh}
93 # Maximum number of lines to put in a shell here document.
100 # If the previous option needs an argument, assign it.
101 if test -n "$ac_prev"; then
102 eval "$ac_prev=\$ac_option"
108 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
112 # Accept the important Cygnus configure options, so we can diagnose typos.
116 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
118 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
119 bindir
="$ac_optarg" ;;
121 -build |
--build |
--buil |
--bui |
--bu)
123 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
124 build
="$ac_optarg" ;;
126 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
127 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
128 ac_prev
=cache_file
;;
129 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
130 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
131 cache_file
="$ac_optarg" ;;
133 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
135 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
137 datadir
="$ac_optarg" ;;
139 -disable-* |
--disable-*)
140 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}=no" ;;
148 -enable-* |
--enable-*)
149 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}='$ac_optarg'" ;;
161 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
162 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
163 |
--exec |
--exe |
--ex)
164 ac_prev
=exec_prefix
;;
165 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
166 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
167 |
--exec=* |
--exe=* |
--ex=*)
168 exec_prefix
="$ac_optarg" ;;
170 -gas |
--gas |
--ga |
--g)
171 # Obsolete; use --with-gas.
174 -help |
--help |
--hel |
--he)
175 # Omit some internal or obsolete options to make the list less imposing.
176 # This message is too long to be a string in the A/UX 3.1 sh.
178 Usage: configure [options] [host]
179 Options: [defaults in brackets after descriptions]
181 --cache-file=FILE cache test results in FILE
182 --help print this message
183 --no-create do not create output files
184 --quiet, --silent do not print \`checking...' messages
185 --version print the version of autoconf that created configure
186 Directory and file names:
187 --prefix=PREFIX install architecture-independent files in PREFIX
189 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
191 --bindir=DIR user executables in DIR [EPREFIX/bin]
192 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
193 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
194 --datadir=DIR read-only architecture-independent data in DIR
196 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
197 --sharedstatedir=DIR modifiable architecture-independent data in DIR
199 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
200 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
201 --includedir=DIR C header files in DIR [PREFIX/include]
202 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
203 --infodir=DIR info documentation in DIR [PREFIX/info]
204 --mandir=DIR man documentation in DIR [PREFIX/man]
205 --srcdir=DIR find the sources in DIR [configure dir or ..]
206 --program-prefix=PREFIX prepend PREFIX to installed program names
207 --program-suffix=SUFFIX append SUFFIX to installed program names
208 --program-transform-name=PROGRAM
209 run sed PROGRAM on installed program names
213 --build=BUILD configure for building on BUILD [BUILD=HOST]
214 --host=HOST configure for HOST [guessed]
215 --target=TARGET configure for TARGET [TARGET=HOST]
216 Features and packages:
217 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
218 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
219 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
220 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
221 --x-includes=DIR X include files are in DIR
222 --x-libraries=DIR X library files are in DIR
224 if test -n "$ac_help"; then
225 echo "--enable and --with options recognized:$ac_help"
229 -host |
--host |
--hos |
--ho)
231 -host=* |
--host=* |
--hos=* |
--ho=*)
234 -includedir |
--includedir |
--includedi |
--included |
--include \
235 |
--includ |
--inclu |
--incl |
--inc)
236 ac_prev
=includedir
;;
237 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
238 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
239 includedir
="$ac_optarg" ;;
241 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
243 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
244 infodir
="$ac_optarg" ;;
246 -libdir |
--libdir |
--libdi |
--libd)
248 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
249 libdir
="$ac_optarg" ;;
251 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
252 |
--libexe |
--libex |
--libe)
253 ac_prev
=libexecdir
;;
254 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
255 |
--libexe=* |
--libex=* |
--libe=*)
256 libexecdir
="$ac_optarg" ;;
258 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
259 |
--localstate |
--localstat |
--localsta |
--localst \
260 |
--locals |
--local |
--loca |
--loc |
--lo)
261 ac_prev
=localstatedir
;;
262 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
263 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
264 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
265 localstatedir
="$ac_optarg" ;;
267 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
269 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
270 mandir
="$ac_optarg" ;;
273 # Obsolete; use --without-fp.
276 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
280 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
281 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
284 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
285 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
286 |
--oldin |
--oldi |
--old |
--ol |
--o)
287 ac_prev
=oldincludedir
;;
288 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
289 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
290 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
291 oldincludedir
="$ac_optarg" ;;
293 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
295 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
296 prefix
="$ac_optarg" ;;
298 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
299 |
--program-pre |
--program-pr |
--program-p)
300 ac_prev
=program_prefix
;;
301 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
302 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
303 program_prefix
="$ac_optarg" ;;
305 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
306 |
--program-suf |
--program-su |
--program-s)
307 ac_prev
=program_suffix
;;
308 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
309 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
310 program_suffix
="$ac_optarg" ;;
312 -program-transform-name |
--program-transform-name \
313 |
--program-transform-nam |
--program-transform-na \
314 |
--program-transform-n |
--program-transform- \
315 |
--program-transform |
--program-transfor \
316 |
--program-transfo |
--program-transf \
317 |
--program-trans |
--program-tran \
318 |
--progr-tra |
--program-tr |
--program-t)
319 ac_prev
=program_transform_name
;;
320 -program-transform-name=* |
--program-transform-name=* \
321 |
--program-transform-nam=* |
--program-transform-na=* \
322 |
--program-transform-n=* |
--program-transform-=* \
323 |
--program-transform=* |
--program-transfor=* \
324 |
--program-transfo=* |
--program-transf=* \
325 |
--program-trans=* |
--program-tran=* \
326 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
327 program_transform_name
="$ac_optarg" ;;
329 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
330 |
-silent |
--silent |
--silen |
--sile |
--sil)
333 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
335 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
337 sbindir
="$ac_optarg" ;;
339 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
340 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
341 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
343 ac_prev
=sharedstatedir
;;
344 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
345 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
346 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
348 sharedstatedir
="$ac_optarg" ;;
350 -site |
--site |
--sit)
352 -site=* |
--site=* |
--sit=*)
355 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
357 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
358 srcdir
="$ac_optarg" ;;
360 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
361 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
362 ac_prev
=sysconfdir
;;
363 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
364 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
365 sysconfdir
="$ac_optarg" ;;
367 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
369 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
370 target
="$ac_optarg" ;;
372 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
375 -version |
--version |
--versio |
--versi |
--vers)
376 echo "configure generated by autoconf version 2.13"
380 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package
=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}='$ac_optarg'" ;;
392 -without-* |
--without-*)
393 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package
=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}=no" ;;
402 # Obsolete; use --with-x.
405 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
406 |
--x-incl |
--x-inc |
--x-in |
--x-i)
407 ac_prev
=x_includes
;;
408 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
409 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
410 x_includes
="$ac_optarg" ;;
412 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
413 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
414 ac_prev
=x_libraries
;;
415 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
416 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
417 x_libraries
="$ac_optarg" ;;
419 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424 echo "configure: warning: $ac_option: invalid host type" 1>&2
426 if test "x$nonopt" != xNONE
; then
427 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
435 if test -n "$ac_prev"; then
436 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
441 # File descriptor usage:
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell metacharacters.
467 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
468 |
--no-cr |
--no-c) ;;
469 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
470 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
471 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
473 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
478 # Only set these to C if already set. These must not be set unconditionally
479 # because not all systems understand e.g. LANG=C (notably SCO).
480 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481 # Non-C LC_CTYPE values break the ctype check.
482 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
483 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
484 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
485 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
488 rm -rf conftest
* confdefs.h
489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
492 # A filename unique to this package, relative to the directory that
493 # configure is in, which we can look for to find out if srcdir is correct.
494 ac_unique_file
=main.c
496 # Find the source files, if location was not specified.
497 if test -z "$srcdir"; then
498 ac_srcdir_defaulted
=yes
499 # Try the directory containing this script, then its parent.
501 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
504 if test ! -r $srcdir/$ac_unique_file; then
508 ac_srcdir_defaulted
=no
510 if test ! -r $srcdir/$ac_unique_file; then
511 if test "$ac_srcdir_defaulted" = yes; then
512 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
514 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
517 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
519 # Prefer explicitly selected file to automatically selected ones.
520 if test -z "$CONFIG_SITE"; then
521 if test "x$prefix" != xNONE
; then
522 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
524 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
527 for ac_site_file
in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
538 echo "creating cache $cache_file"
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp
='$CPP $CPPFLAGS'
545 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling
=$ac_cv_prog_cc_cross
551 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
560 ac_n
= ac_c
='\c' ac_t
=
566 # Extract the first word of "gcc", so it can be a program name with args.
567 set dummy gcc
; ac_word
=$2
568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
569 echo "configure:570: checking for $ac_word" >&5
570 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
571 echo $ac_n "(cached) $ac_c" 1>&6
573 if test -n "$CC"; then
574 ac_cv_prog_CC
="$CC" # Let the user override the test.
576 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
578 for ac_dir
in $ac_dummy; do
579 test -z "$ac_dir" && ac_dir
=.
580 if test -f $ac_dir/$ac_word; then
589 if test -n "$CC"; then
590 echo "$ac_t""$CC" 1>&6
592 echo "$ac_t""no" 1>&6
595 if test -z "$CC"; then
596 # Extract the first word of "cc", so it can be a program name with args.
597 set dummy cc
; ac_word
=$2
598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
599 echo "configure:600: checking for $ac_word" >&5
600 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
601 echo $ac_n "(cached) $ac_c" 1>&6
603 if test -n "$CC"; then
604 ac_cv_prog_CC
="$CC" # Let the user override the test.
606 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
609 for ac_dir
in $ac_dummy; do
610 test -z "$ac_dir" && ac_dir
=.
611 if test -f $ac_dir/$ac_word; then
612 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
621 if test $ac_prog_rejected = yes; then
622 # We found a bogon in the path, so make sure we never use it.
623 set dummy
$ac_cv_prog_CC
625 if test $# -gt 0; then
626 # We chose a different compiler from the bogus one.
627 # However, it has the same basename, so the bogon will be chosen
628 # first if we set CC to just the basename; use the full file name.
630 set dummy
"$ac_dir/$ac_word" "$@"
638 if test -n "$CC"; then
639 echo "$ac_t""$CC" 1>&6
641 echo "$ac_t""no" 1>&6
644 if test -z "$CC"; then
647 # Extract the first word of "cl", so it can be a program name with args.
648 set dummy cl
; ac_word
=$2
649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
650 echo "configure:651: checking for $ac_word" >&5
651 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
652 echo $ac_n "(cached) $ac_c" 1>&6
654 if test -n "$CC"; then
655 ac_cv_prog_CC
="$CC" # Let the user override the test.
657 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
659 for ac_dir
in $ac_dummy; do
660 test -z "$ac_dir" && ac_dir
=.
661 if test -f $ac_dir/$ac_word; then
670 if test -n "$CC"; then
671 echo "$ac_t""$CC" 1>&6
673 echo "$ac_t""no" 1>&6
678 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
681 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
682 echo "configure:683: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
685 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
686 ac_cpp
='$CPP $CPPFLAGS'
687 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
688 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
689 cross_compiling
=$ac_cv_prog_cc_cross
691 cat > conftest.
$ac_ext << EOF
693 #line 694 "configure"
694 #include "confdefs.h"
698 if { (eval echo configure
:699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
699 ac_cv_prog_cc_works
=yes
700 # If we can't run a trivial program, we are probably using a cross compiler.
701 if (.
/conftest
; exit) 2>/dev
/null
; then
702 ac_cv_prog_cc_cross
=no
704 ac_cv_prog_cc_cross
=yes
707 echo "configure: failed program was:" >&5
708 cat conftest.
$ac_ext >&5
709 ac_cv_prog_cc_works
=no
713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
714 ac_cpp
='$CPP $CPPFLAGS'
715 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
716 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
717 cross_compiling
=$ac_cv_prog_cc_cross
719 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
720 if test $ac_cv_prog_cc_works = no
; then
721 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
723 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
724 echo "configure:725: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
725 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
726 cross_compiling
=$ac_cv_prog_cc_cross
728 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
729 echo "configure:730: checking whether we are using GNU C" >&5
730 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
733 cat > conftest.c
<<EOF
738 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
745 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
747 if test $ac_cv_prog_gcc = yes; then
753 ac_test_CFLAGS
="${CFLAGS+set}"
754 ac_save_CFLAGS
="$CFLAGS"
756 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
757 echo "configure:758: checking whether ${CC-cc} accepts -g" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 echo 'void f(){}' > conftest.c
762 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
771 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
772 if test "$ac_test_CFLAGS" = set; then
773 CFLAGS
="$ac_save_CFLAGS"
774 elif test $ac_cv_prog_cc_g = yes; then
775 if test "$GCC" = yes; then
781 if test "$GCC" = yes; then
788 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
789 echo "configure:790: checking how to run the C preprocessor" >&5
790 # On Suns, sometimes $CPP names a directory.
791 if test -n "$CPP" && test -d "$CPP"; then
794 if test -z "$CPP"; then
795 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
796 echo $ac_n "(cached) $ac_c" 1>&6
798 # This must be in double quotes, not single quotes, because CPP may get
799 # substituted into the Makefile and "${CC-cc}" will confuse make.
801 # On the NeXT, cc -E runs the code through the compiler's parser,
802 # not just through cpp.
803 cat > conftest.
$ac_ext <<EOF
804 #line 805 "configure"
805 #include "confdefs.h"
809 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
810 { (eval echo configure
:811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
811 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
812 if test -z "$ac_err"; then
816 echo "configure: failed program was:" >&5
817 cat conftest.
$ac_ext >&5
819 CPP
="${CC-cc} -E -traditional-cpp"
820 cat > conftest.
$ac_ext <<EOF
821 #line 822 "configure"
822 #include "confdefs.h"
826 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
827 { (eval echo configure
:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
828 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
829 if test -z "$ac_err"; then
833 echo "configure: failed program was:" >&5
834 cat conftest.
$ac_ext >&5
836 CPP
="${CC-cc} -nologo -E"
837 cat > conftest.
$ac_ext <<EOF
838 #line 839 "configure"
839 #include "confdefs.h"
843 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
844 { (eval echo configure
:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
845 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
846 if test -z "$ac_err"; then
850 echo "configure: failed program was:" >&5
851 cat conftest.
$ac_ext >&5
860 ac_cv_prog_CPP
="$CPP"
862 CPP
="$ac_cv_prog_CPP"
864 ac_cv_prog_CPP
="$CPP"
866 echo "$ac_t""$CPP" 1>&6
868 echo $ac_n "checking for AIX""... $ac_c" 1>&6
869 echo "configure:870: checking for AIX" >&5
870 cat > conftest.
$ac_ext <<EOF
871 #line 872 "configure"
872 #include "confdefs.h"
878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
879 egrep "yes" >/dev
/null
2>&1; then
881 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
882 #define _ALL_SOURCE 1
887 echo "$ac_t""no" 1>&6
892 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
893 echo "configure:894: checking for POSIXized ISC" >&5
894 if test -d /etc
/conf
/kconfig.d
&&
895 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
897 echo "$ac_t""yes" 1>&6
898 ISC
=yes # If later tests want to check for ISC.
899 cat >> confdefs.h
<<\EOF
900 #define _POSIX_SOURCE 1
903 if test "$GCC" = yes; then
909 echo "$ac_t""no" 1>&6
916 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
917 echo "configure:918: checking for ${CC-cc} option to accept ANSI C" >&5
918 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 am_cv_prog_cc_stdc
=no
923 # Don't try gcc -ansi; that turns off useful extensions and
924 # breaks some systems' header files.
926 # Ultrix and OSF/1 -std1
927 # HP-UX -Aa -D_HPUX_SOURCE
928 # SVR4 -Xc -D__EXTENSIONS__
929 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
931 CC
="$ac_save_CC $ac_arg"
932 cat > conftest.
$ac_ext <<EOF
933 #line 934 "configure"
934 #include "confdefs.h"
937 #include <sys/types.h>
938 #include <sys/stat.h>
939 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
940 struct buf { int x; };
941 FILE * (*rcsopen) (struct buf *, struct stat *, int);
942 static char *e (p, i)
948 static char *f (char * (*g) (char **, int), char **p, ...)
953 s = g (p, va_arg (v,int));
957 int test (int i, double x);
958 struct s1 {int (*f) (int a);};
959 struct s2 {int (*f) (double a);};
960 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
966 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
970 if { (eval echo configure
:971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
972 am_cv_prog_cc_stdc
="$ac_arg"; break
974 echo "configure: failed program was:" >&5
975 cat conftest.
$ac_ext >&5
983 if test -z "$am_cv_prog_cc_stdc"; then
984 echo "$ac_t""none needed" 1>&6
986 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
988 case "x$am_cv_prog_cc_stdc" in
990 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
995 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
996 if test -f $ac_dir/install-sh
; then
998 ac_install_sh
="$ac_aux_dir/install-sh -c"
1000 elif test -f $ac_dir/install.sh
; then
1002 ac_install_sh
="$ac_aux_dir/install.sh -c"
1006 if test -z "$ac_aux_dir"; then
1007 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1009 ac_config_guess
=$ac_aux_dir/config.guess
1010 ac_config_sub
=$ac_aux_dir/config.sub
1011 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1014 # Do some error checking and defaulting for the host and target type.
1016 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1019 # 1. You are not allowed to specify --host, --target, and nonopt at the
1021 # 2. Host defaults to nonopt.
1022 # 3. If nonopt is not specified, then host defaults to the current host,
1023 # as determined by config.guess.
1024 # 4. Target and build default to nonopt.
1025 # 5. If nonopt is not specified, then target and build default to host.
1027 # The aliases save the names the user supplied, while $host etc.
1028 # will get canonicalized.
1029 case $host---$target---$nonopt in
1030 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1031 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1035 # Make sure we can run config.sub.
1036 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1037 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1040 echo $ac_n "checking host system type""... $ac_c" 1>&6
1041 echo "configure:1042: checking host system type" >&5
1044 case "$host_alias" in
1048 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1049 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1051 *) host_alias
=$nonopt ;;
1055 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1056 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1057 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1058 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1059 echo "$ac_t""$host" 1>&6
1061 echo $ac_n "checking target system type""... $ac_c" 1>&6
1062 echo "configure:1063: checking target system type" >&5
1064 target_alias
=$target
1065 case "$target_alias" in
1068 NONE
) target_alias
=$host_alias ;;
1069 *) target_alias
=$nonopt ;;
1073 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1074 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1075 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1076 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1077 echo "$ac_t""$target" 1>&6
1079 echo $ac_n "checking build system type""... $ac_c" 1>&6
1080 echo "configure:1081: checking build system type" >&5
1083 case "$build_alias" in
1086 NONE
) build_alias
=$host_alias ;;
1087 *) build_alias
=$nonopt ;;
1091 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1092 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1093 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1094 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1095 echo "$ac_t""$build" 1>&6
1097 test "$host_alias" != "$target_alias" &&
1098 test "$program_prefix$program_suffix$program_transform_name" = \
1100 program_prefix
=${target_alias}-
1104 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1105 echo "configure:1106: checking whether ${MAKE-make} sets \${MAKE}" >&5
1106 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1107 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 cat > conftestmake
<<\EOF
1112 @
echo 'ac_maketemp="${MAKE}"'
1114 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1115 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1116 if test -n "$ac_maketemp"; then
1117 eval ac_cv_prog_make_
${ac_make}_set
=yes
1119 eval ac_cv_prog_make_
${ac_make}_set
=no
1123 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1124 echo "$ac_t""yes" 1>&6
1127 echo "$ac_t""no" 1>&6
1128 SET_MAKE
="MAKE=${MAKE-make}"
1131 # Extract the first word of "ranlib", so it can be a program name with args.
1132 set dummy ranlib
; ac_word
=$2
1133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1134 echo "configure:1135: checking for $ac_word" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1138 if test -n "$RANLIB"; then
1139 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1141 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1143 for ac_dir
in $ac_dummy; do
1144 test -z "$ac_dir" && ac_dir
=.
1145 if test -f $ac_dir/$ac_word; then
1146 ac_cv_prog_RANLIB
="ranlib"
1151 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1154 RANLIB
="$ac_cv_prog_RANLIB"
1155 if test -n "$RANLIB"; then
1156 echo "$ac_t""$RANLIB" 1>&6
1158 echo "$ac_t""no" 1>&6
1161 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1162 echo "configure:1163: checking for ANSI C header files" >&5
1163 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 cat > conftest.
$ac_ext <<EOF
1167 #line 1168 "configure"
1168 #include "confdefs.h"
1174 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1175 { (eval echo configure
:1176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1176 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1177 if test -z "$ac_err"; then
1179 ac_cv_header_stdc
=yes
1182 echo "configure: failed program was:" >&5
1183 cat conftest.
$ac_ext >&5
1185 ac_cv_header_stdc
=no
1189 if test $ac_cv_header_stdc = yes; then
1190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1191 cat > conftest.
$ac_ext <<EOF
1192 #line 1193 "configure"
1193 #include "confdefs.h"
1196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1197 egrep "memchr" >/dev
/null
2>&1; then
1201 ac_cv_header_stdc
=no
1207 if test $ac_cv_header_stdc = yes; then
1208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1209 cat > conftest.
$ac_ext <<EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1215 egrep "free" >/dev
/null
2>&1; then
1219 ac_cv_header_stdc
=no
1225 if test $ac_cv_header_stdc = yes; then
1226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1227 if test "$cross_compiling" = yes; then
1230 cat > conftest.
$ac_ext <<EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1234 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1235 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1237 int main () { int i; for (i = 0; i < 256; i++)
1238 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1242 if { (eval echo configure
:1243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1246 echo "configure: failed program was:" >&5
1247 cat conftest.
$ac_ext >&5
1249 ac_cv_header_stdc
=no
1257 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1258 if test $ac_cv_header_stdc = yes; then
1259 cat >> confdefs.h
<<\EOF
1260 #define STDC_HEADERS 1
1265 echo $ac_n "checking for working const""... $ac_c" 1>&6
1266 echo "configure:1267: checking for working const" >&5
1267 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1270 cat > conftest.
$ac_ext <<EOF
1271 #line 1272 "configure"
1272 #include "confdefs.h"
1276 /* Ultrix mips cc rejects this. */
1277 typedef int charset[2]; const charset x;
1278 /* SunOS 4.1.1 cc rejects this. */
1279 char const *const *ccp;
1281 /* NEC SVR4.0.2 mips cc rejects this. */
1282 struct point {int x, y;};
1283 static struct point const zero = {0,0};
1284 /* AIX XL C 1.02.0.0 rejects this.
1285 It does not let you subtract one const X* pointer from another in an arm
1286 of an if-expression whose if-part is not a constant expression */
1287 const char *g = "string";
1288 ccp = &g + (g ? g-g : 0);
1289 /* HPUX 7.0 cc rejects these. */
1292 ccp = (char const *const *) p;
1293 { /* SCO 3.2v4 cc rejects this. */
1295 char const *s = 0 ? (char *) 0 : (char const *) 0;
1299 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1301 const int *foo = &x[0];
1304 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1305 typedef const int *iptr;
1309 { /* AIX XL C 1.02.0.0 rejects this saying
1310 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1311 struct s { int j; const int *ap[3]; };
1312 struct s *b; b->j = 5;
1314 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1320 if { (eval echo configure
:1321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1324 echo "configure: failed program was:" >&5
1325 cat conftest.
$ac_ext >&5
1332 echo "$ac_t""$ac_cv_c_const" 1>&6
1333 if test $ac_cv_c_const = no
; then
1334 cat >> confdefs.h
<<\EOF
1340 echo $ac_n "checking for inline""... $ac_c" 1>&6
1341 echo "configure:1342: checking for inline" >&5
1342 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1346 for ac_kw
in inline __inline__ __inline
; do
1347 cat > conftest.
$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1355 if { (eval echo configure
:1356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1357 ac_cv_c_inline
=$ac_kw; break
1359 echo "configure: failed program was:" >&5
1360 cat conftest.
$ac_ext >&5
1367 echo "$ac_t""$ac_cv_c_inline" 1>&6
1368 case "$ac_cv_c_inline" in
1370 no
) cat >> confdefs.h
<<\EOF
1374 *) cat >> confdefs.h
<<EOF
1375 #define inline $ac_cv_c_inline
1380 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1381 echo "configure:1382: checking for off_t" >&5
1382 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1385 cat > conftest.
$ac_ext <<EOF
1386 #line 1387 "configure"
1387 #include "confdefs.h"
1388 #include <sys/types.h>
1394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1395 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1397 ac_cv_type_off_t
=yes
1405 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1406 if test $ac_cv_type_off_t = no
; then
1407 cat >> confdefs.h
<<\EOF
1413 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1414 echo "configure:1415: checking for size_t" >&5
1415 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1418 cat > conftest.
$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1421 #include <sys/types.h>
1427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1428 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1430 ac_cv_type_size_t
=yes
1433 ac_cv_type_size_t
=no
1438 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1439 if test $ac_cv_type_size_t = no
; then
1440 cat >> confdefs.h
<<\EOF
1441 #define size_t unsigned
1446 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1447 # for constant arguments. Useless!
1448 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1449 echo "configure:1450: checking for working alloca.h" >&5
1450 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1453 cat > conftest.
$ac_ext <<EOF
1454 #line 1455 "configure"
1455 #include "confdefs.h"
1458 char *p = alloca(2 * sizeof(int));
1461 if { (eval echo configure
:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1463 ac_cv_header_alloca_h
=yes
1465 echo "configure: failed program was:" >&5
1466 cat conftest.
$ac_ext >&5
1468 ac_cv_header_alloca_h
=no
1473 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1474 if test $ac_cv_header_alloca_h = yes; then
1475 cat >> confdefs.h
<<\EOF
1476 #define HAVE_ALLOCA_H 1
1481 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1482 echo "configure:1483: checking for alloca" >&5
1483 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 cat > conftest.
$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1491 # define alloca __builtin_alloca
1494 # include <malloc.h>
1495 # define alloca _alloca
1498 # include <alloca.h>
1503 # ifndef alloca /* predefined by HP cc +Olibcalls */
1512 char *p = (char *) alloca(1);
1515 if { (eval echo configure
:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1517 ac_cv_func_alloca_works
=yes
1519 echo "configure: failed program was:" >&5
1520 cat conftest.
$ac_ext >&5
1522 ac_cv_func_alloca_works
=no
1527 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1528 if test $ac_cv_func_alloca_works = yes; then
1529 cat >> confdefs.h
<<\EOF
1530 #define HAVE_ALLOCA 1
1535 if test $ac_cv_func_alloca_works = no
; then
1536 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1537 # that cause trouble. Some versions do not even contain alloca or
1538 # contain a buggy version. If you still want to use their alloca,
1539 # use ar to extract alloca.o from them instead of compiling alloca.c.
1540 ALLOCA
=alloca.
${ac_objext}
1541 cat >> confdefs.h
<<\EOF
1546 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1547 echo "configure:1548: checking whether alloca needs Cray hooks" >&5
1548 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1551 cat > conftest.
$ac_ext <<EOF
1552 #line 1553 "configure"
1553 #include "confdefs.h"
1554 #if defined(CRAY) && ! defined(CRAY2)
1561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1562 egrep "webecray" >/dev
/null
2>&1; then
1573 echo "$ac_t""$ac_cv_os_cray" 1>&6
1574 if test $ac_cv_os_cray = yes; then
1575 for ac_func
in _getb67 GETB67 getb67
; do
1576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1577 echo "configure:1578: checking for $ac_func" >&5
1578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1581 cat > conftest.
$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1584 /* System header to define __stub macros and hopefully few prototypes,
1585 which can conflict with char $ac_func(); below. */
1587 /* Override any gcc2 internal prototype to avoid an error. */
1588 /* We use char because int might match the return type of a gcc2
1589 builtin and then its argument prototype would still apply. */
1594 /* The GNU C library defines this for functions which it implements
1595 to always fail with ENOSYS. Some functions are actually named
1596 something starting with __ and the normal name is an alias. */
1597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1605 if { (eval echo configure
:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1607 eval "ac_cv_func_$ac_func=yes"
1609 echo "configure: failed program was:" >&5
1610 cat conftest.
$ac_ext >&5
1612 eval "ac_cv_func_$ac_func=no"
1617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1618 echo "$ac_t""yes" 1>&6
1619 cat >> confdefs.h
<<EOF
1620 #define CRAY_STACKSEG_END $ac_func
1625 echo "$ac_t""no" 1>&6
1631 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1632 echo "configure:1633: checking stack direction for C alloca" >&5
1633 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1636 if test "$cross_compiling" = yes; then
1637 ac_cv_c_stack_direction
=0
1639 cat > conftest.
$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 find_stack_direction ()
1644 static char *addr = 0;
1649 return find_stack_direction ();
1652 return (&dummy > addr) ? 1 : -1;
1656 exit (find_stack_direction() < 0);
1659 if { (eval echo configure
:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1661 ac_cv_c_stack_direction
=1
1663 echo "configure: failed program was:" >&5
1664 cat conftest.
$ac_ext >&5
1666 ac_cv_c_stack_direction
=-1
1673 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1674 cat >> confdefs.h
<<EOF
1675 #define STACK_DIRECTION $ac_cv_c_stack_direction
1680 for ac_hdr
in unistd.h
1682 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1684 echo "configure:1685: checking for $ac_hdr" >&5
1685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1688 cat > conftest.
$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1693 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1694 { (eval echo configure
:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1695 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1696 if test -z "$ac_err"; then
1698 eval "ac_cv_header_$ac_safe=yes"
1701 echo "configure: failed program was:" >&5
1702 cat conftest.
$ac_ext >&5
1704 eval "ac_cv_header_$ac_safe=no"
1708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1709 echo "$ac_t""yes" 1>&6
1710 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1711 cat >> confdefs.h
<<EOF
1712 #define $ac_tr_hdr 1
1716 echo "$ac_t""no" 1>&6
1720 for ac_func
in getpagesize
1722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1723 echo "configure:1724: checking for $ac_func" >&5
1724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1727 cat > conftest.
$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1730 /* System header to define __stub macros and hopefully few prototypes,
1731 which can conflict with char $ac_func(); below. */
1733 /* Override any gcc2 internal prototype to avoid an error. */
1734 /* We use char because int might match the return type of a gcc2
1735 builtin and then its argument prototype would still apply. */
1740 /* The GNU C library defines this for functions which it implements
1741 to always fail with ENOSYS. Some functions are actually named
1742 something starting with __ and the normal name is an alias. */
1743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1751 if { (eval echo configure
:1752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1753 eval "ac_cv_func_$ac_func=yes"
1755 echo "configure: failed program was:" >&5
1756 cat conftest.
$ac_ext >&5
1758 eval "ac_cv_func_$ac_func=no"
1763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1764 echo "$ac_t""yes" 1>&6
1765 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1766 cat >> confdefs.h
<<EOF
1767 #define $ac_tr_func 1
1771 echo "$ac_t""no" 1>&6
1775 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1776 echo "configure:1777: checking for working mmap" >&5
1777 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 if test "$cross_compiling" = yes; then
1781 ac_cv_func_mmap_fixed_mapped
=no
1783 cat > conftest.
$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1787 /* Thanks to Mike Haertel and Jim Avera for this test.
1788 Here is a matrix of mmap possibilities:
1789 mmap private not fixed
1790 mmap private fixed at somewhere currently unmapped
1791 mmap private fixed at somewhere already mapped
1792 mmap shared not fixed
1793 mmap shared fixed at somewhere currently unmapped
1794 mmap shared fixed at somewhere already mapped
1795 For private mappings, we should verify that changes cannot be read()
1796 back from the file, nor mmap's back from the file at a different
1797 address. (There have been systems where private was not correctly
1798 implemented like the infamous i386 svr4.0, and systems where the
1799 VM page cache was not coherent with the filesystem buffer cache
1800 like early versions of FreeBSD and possibly contemporary NetBSD.)
1801 For shared mappings, we should conversely verify that changes get
1802 propogated back to all the places they're supposed to be.
1804 Grep wants private fixed already mapped.
1805 The main things grep needs to know about mmap are:
1806 * does it exist and is it safe to write into the mmap'd area
1807 * how to use it (BSD variants) */
1808 #include <sys/types.h>
1810 #include <sys/mman.h>
1812 /* This mess was copied from the GNU getpagesize.h. */
1813 #ifndef HAVE_GETPAGESIZE
1814 # ifdef HAVE_UNISTD_H
1815 # include <unistd.h>
1818 /* Assume that all systems that can run configure have sys/param.h. */
1819 # ifndef HAVE_SYS_PARAM_H
1820 # define HAVE_SYS_PARAM_H 1
1823 # ifdef _SC_PAGESIZE
1824 # define getpagesize() sysconf(_SC_PAGESIZE)
1825 # else /* no _SC_PAGESIZE */
1826 # ifdef HAVE_SYS_PARAM_H
1827 # include <sys/param.h>
1828 # ifdef EXEC_PAGESIZE
1829 # define getpagesize() EXEC_PAGESIZE
1830 # else /* no EXEC_PAGESIZE */
1832 # define getpagesize() NBPG * CLSIZE
1835 # endif /* no CLSIZE */
1836 # else /* no NBPG */
1838 # define getpagesize() NBPC
1839 # else /* no NBPC */
1841 # define getpagesize() PAGESIZE
1842 # endif /* PAGESIZE */
1843 # endif /* no NBPC */
1844 # endif /* no NBPG */
1845 # endif /* no EXEC_PAGESIZE */
1846 # else /* no HAVE_SYS_PARAM_H */
1847 # define getpagesize() 8192 /* punt totally */
1848 # endif /* no HAVE_SYS_PARAM_H */
1849 # endif /* no _SC_PAGESIZE */
1851 #endif /* no HAVE_GETPAGESIZE */
1854 extern "C" { void *malloc(unsigned); }
1862 char *data, *data2, *data3;
1866 pagesize = getpagesize();
1869 * First, make a file with some known garbage in it.
1871 data = malloc(pagesize);
1874 for (i = 0; i < pagesize; ++i)
1875 *(data + i) = rand();
1877 fd = creat("conftestmmap", 0600);
1880 if (write(fd, data, pagesize) != pagesize)
1885 * Next, try to mmap the file at a fixed address which
1886 * already has something else allocated at it. If we can,
1887 * also make sure that we see the same garbage.
1889 fd = open("conftestmmap", O_RDWR);
1892 data2 = malloc(2 * pagesize);
1895 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1896 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1897 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1899 for (i = 0; i < pagesize; ++i)
1900 if (*(data + i) != *(data2 + i))
1904 * Finally, make sure that changes to the mapped area
1905 * do not percolate back to the file as seen by read().
1906 * (This is a bug on some variants of i386 svr4.0.)
1908 for (i = 0; i < pagesize; ++i)
1909 *(data2 + i) = *(data2 + i) + 1;
1910 data3 = malloc(pagesize);
1913 if (read(fd, data3, pagesize) != pagesize)
1915 for (i = 0; i < pagesize; ++i)
1916 if (*(data + i) != *(data3 + i))
1919 unlink("conftestmmap");
1924 if { (eval echo configure
:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1926 ac_cv_func_mmap_fixed_mapped
=yes
1928 echo "configure: failed program was:" >&5
1929 cat conftest.
$ac_ext >&5
1931 ac_cv_func_mmap_fixed_mapped
=no
1938 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1939 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1940 cat >> confdefs.h
<<\EOF
1947 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1948 unistd.h values.h sys
/param.h
1950 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1951 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1952 echo "configure:1953: checking for $ac_hdr" >&5
1953 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1956 cat > conftest.
$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1961 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1962 { (eval echo configure
:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1963 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1964 if test -z "$ac_err"; then
1966 eval "ac_cv_header_$ac_safe=yes"
1969 echo "configure: failed program was:" >&5
1970 cat conftest.
$ac_ext >&5
1972 eval "ac_cv_header_$ac_safe=no"
1976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1977 echo "$ac_t""yes" 1>&6
1978 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1979 cat >> confdefs.h
<<EOF
1980 #define $ac_tr_hdr 1
1984 echo "$ac_t""no" 1>&6
1988 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1989 __argz_count __argz_stringify __argz_next
1991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1992 echo "configure:1993: checking for $ac_func" >&5
1993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1996 cat > conftest.
$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
1999 /* System header to define __stub macros and hopefully few prototypes,
2000 which can conflict with char $ac_func(); below. */
2002 /* Override any gcc2 internal prototype to avoid an error. */
2003 /* We use char because int might match the return type of a gcc2
2004 builtin and then its argument prototype would still apply. */
2009 /* The GNU C library defines this for functions which it implements
2010 to always fail with ENOSYS. Some functions are actually named
2011 something starting with __ and the normal name is an alias. */
2012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2020 if { (eval echo configure
:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2022 eval "ac_cv_func_$ac_func=yes"
2024 echo "configure: failed program was:" >&5
2025 cat conftest.
$ac_ext >&5
2027 eval "ac_cv_func_$ac_func=no"
2032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2033 echo "$ac_t""yes" 1>&6
2034 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2035 cat >> confdefs.h
<<EOF
2036 #define $ac_tr_func 1
2040 echo "$ac_t""no" 1>&6
2045 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2046 for ac_func
in stpcpy
2048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2049 echo "configure:2050: checking for $ac_func" >&5
2050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2053 cat > conftest.
$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2056 /* System header to define __stub macros and hopefully few prototypes,
2057 which can conflict with char $ac_func(); below. */
2059 /* Override any gcc2 internal prototype to avoid an error. */
2060 /* We use char because int might match the return type of a gcc2
2061 builtin and then its argument prototype would still apply. */
2066 /* The GNU C library defines this for functions which it implements
2067 to always fail with ENOSYS. Some functions are actually named
2068 something starting with __ and the normal name is an alias. */
2069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2077 if { (eval echo configure
:2078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2079 eval "ac_cv_func_$ac_func=yes"
2081 echo "configure: failed program was:" >&5
2082 cat conftest.
$ac_ext >&5
2084 eval "ac_cv_func_$ac_func=no"
2089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2090 echo "$ac_t""yes" 1>&6
2091 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2092 cat >> confdefs.h
<<EOF
2093 #define $ac_tr_func 1
2097 echo "$ac_t""no" 1>&6
2102 if test "${ac_cv_func_stpcpy}" = "yes"; then
2103 cat >> confdefs.h
<<\EOF
2104 #define HAVE_STPCPY 1
2109 if test $ac_cv_header_locale_h = yes; then
2110 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2111 echo "configure:2112: checking for LC_MESSAGES" >&5
2112 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2115 cat > conftest.
$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2123 if { (eval echo configure
:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2125 am_cv_val_LC_MESSAGES
=yes
2127 echo "configure: failed program was:" >&5
2128 cat conftest.
$ac_ext >&5
2130 am_cv_val_LC_MESSAGES
=no
2135 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2136 if test $am_cv_val_LC_MESSAGES = yes; then
2137 cat >> confdefs.h
<<\EOF
2138 #define HAVE_LC_MESSAGES 1
2143 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2144 echo "configure:2145: checking whether NLS is requested" >&5
2145 # Check whether --enable-nls or --disable-nls was given.
2146 if test "${enable_nls+set}" = set; then
2147 enableval
="$enable_nls"
2153 echo "$ac_t""$USE_NLS" 1>&6
2156 USE_INCLUDED_LIBINTL
=no
2158 if test "$USE_NLS" = "yes"; then
2159 cat >> confdefs.h
<<\EOF
2160 #define ENABLE_NLS 1
2163 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2164 echo "configure:2165: checking whether included gettext is requested" >&5
2165 # Check whether --with-included-gettext or --without-included-gettext was given.
2166 if test "${with_included_gettext+set}" = set; then
2167 withval
="$with_included_gettext"
2168 nls_cv_force_use_gnu_gettext
=$withval
2170 nls_cv_force_use_gnu_gettext
=no
2173 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2175 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2176 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2178 nls_cv_header_libgt
=
2181 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2182 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2183 echo "configure:2184: checking for libintl.h" >&5
2184 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 cat > conftest.
$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 #include <libintl.h>
2192 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2193 { (eval echo configure
:2194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2194 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2195 if test -z "$ac_err"; then
2197 eval "ac_cv_header_$ac_safe=yes"
2200 echo "configure: failed program was:" >&5
2201 cat conftest.
$ac_ext >&5
2203 eval "ac_cv_header_$ac_safe=no"
2207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2209 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2210 echo "configure:2211: checking for gettext in libc" >&5
2211 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 cat > conftest.
$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2217 #include <libintl.h>
2219 return (int) gettext ("")
2222 if { (eval echo configure
:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2224 gt_cv_func_gettext_libc
=yes
2226 echo "configure: failed program was:" >&5
2227 cat conftest.
$ac_ext >&5
2229 gt_cv_func_gettext_libc
=no
2234 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2236 if test "$gt_cv_func_gettext_libc" != "yes"; then
2237 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2238 echo "configure:2239: checking for bindtextdomain in -lintl" >&5
2239 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 ac_save_LIBS
="$LIBS"
2245 cat > conftest.
$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2248 /* Override any gcc2 internal prototype to avoid an error. */
2249 /* We use char because int might match the return type of a gcc2
2250 builtin and then its argument prototype would still apply. */
2251 char bindtextdomain();
2257 if { (eval echo configure
:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2259 eval "ac_cv_lib_$ac_lib_var=yes"
2261 echo "configure: failed program was:" >&5
2262 cat conftest.
$ac_ext >&5
2264 eval "ac_cv_lib_$ac_lib_var=no"
2267 LIBS
="$ac_save_LIBS"
2270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2271 echo "$ac_t""yes" 1>&6
2272 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2273 echo "configure:2274: checking for gettext in libintl" >&5
2274 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 cat > conftest.
$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2282 return (int) gettext ("")
2285 if { (eval echo configure
:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2287 gt_cv_func_gettext_libintl
=yes
2289 echo "configure: failed program was:" >&5
2290 cat conftest.
$ac_ext >&5
2292 gt_cv_func_gettext_libintl
=no
2297 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2299 echo "$ac_t""no" 1>&6
2304 if test "$gt_cv_func_gettext_libc" = "yes" \
2305 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2306 cat >> confdefs.h
<<\EOF
2307 #define HAVE_GETTEXT 1
2310 # Extract the first word of "msgfmt", so it can be a program name with args.
2311 set dummy msgfmt
; ac_word
=$2
2312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2313 echo "configure:2314: checking for $ac_word" >&5
2314 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2319 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2322 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2323 for ac_dir
in $PATH; do
2324 test -z "$ac_dir" && ac_dir
=.
2325 if test -f $ac_dir/$ac_word; then
2326 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2327 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2333 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2337 MSGFMT
="$ac_cv_path_MSGFMT"
2338 if test -n "$MSGFMT"; then
2339 echo "$ac_t""$MSGFMT" 1>&6
2341 echo "$ac_t""no" 1>&6
2343 if test "$MSGFMT" != "no"; then
2344 for ac_func
in dcgettext
2346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_func" >&5
2348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2351 cat > conftest.
$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2354 /* System header to define __stub macros and hopefully few prototypes,
2355 which can conflict with char $ac_func(); below. */
2357 /* Override any gcc2 internal prototype to avoid an error. */
2358 /* We use char because int might match the return type of a gcc2
2359 builtin and then its argument prototype would still apply. */
2364 /* The GNU C library defines this for functions which it implements
2365 to always fail with ENOSYS. Some functions are actually named
2366 something starting with __ and the normal name is an alias. */
2367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2375 if { (eval echo configure
:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2377 eval "ac_cv_func_$ac_func=yes"
2379 echo "configure: failed program was:" >&5
2380 cat conftest.
$ac_ext >&5
2382 eval "ac_cv_func_$ac_func=no"
2387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2388 echo "$ac_t""yes" 1>&6
2389 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2390 cat >> confdefs.h
<<EOF
2391 #define $ac_tr_func 1
2395 echo "$ac_t""no" 1>&6
2399 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2400 set dummy gmsgfmt
; ac_word
=$2
2401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2402 echo "configure:2403: checking for $ac_word" >&5
2403 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2408 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2411 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2414 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2416 for ac_dir
in $ac_dummy; do
2417 test -z "$ac_dir" && ac_dir
=.
2418 if test -f $ac_dir/$ac_word; then
2419 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2424 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2428 GMSGFMT
="$ac_cv_path_GMSGFMT"
2429 if test -n "$GMSGFMT"; then
2430 echo "$ac_t""$GMSGFMT" 1>&6
2432 echo "$ac_t""no" 1>&6
2435 # Extract the first word of "xgettext", so it can be a program name with args.
2436 set dummy xgettext
; ac_word
=$2
2437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2438 echo "configure:2439: checking for $ac_word" >&5
2439 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2444 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2447 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2448 for ac_dir
in $PATH; do
2449 test -z "$ac_dir" && ac_dir
=.
2450 if test -f $ac_dir/$ac_word; then
2451 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2452 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2458 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2462 XGETTEXT
="$ac_cv_path_XGETTEXT"
2463 if test -n "$XGETTEXT"; then
2464 echo "$ac_t""$XGETTEXT" 1>&6
2466 echo "$ac_t""no" 1>&6
2469 cat > conftest.
$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2474 extern int _nl_msg_cat_cntr;
2475 return _nl_msg_cat_cntr
2478 if { (eval echo configure
:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2483 echo "configure: failed program was:" >&5
2484 cat conftest.
$ac_ext >&5
2495 echo "$ac_t""no" 1>&6
2500 if test "$CATOBJEXT" = "NONE"; then
2501 nls_cv_use_gnu_gettext
=yes
2505 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2506 INTLOBJS
="\$(GETTOBJS)"
2507 # Extract the first word of "msgfmt", so it can be a program name with args.
2508 set dummy msgfmt
; ac_word
=$2
2509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2510 echo "configure:2511: checking for $ac_word" >&5
2511 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2516 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2519 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2520 for ac_dir
in $PATH; do
2521 test -z "$ac_dir" && ac_dir
=.
2522 if test -f $ac_dir/$ac_word; then
2523 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2524 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2530 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2534 MSGFMT
="$ac_cv_path_MSGFMT"
2535 if test -n "$MSGFMT"; then
2536 echo "$ac_t""$MSGFMT" 1>&6
2538 echo "$ac_t""no" 1>&6
2541 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2542 set dummy gmsgfmt
; ac_word
=$2
2543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_word" >&5
2545 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2550 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2553 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2556 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2558 for ac_dir
in $ac_dummy; do
2559 test -z "$ac_dir" && ac_dir
=.
2560 if test -f $ac_dir/$ac_word; then
2561 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2566 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2570 GMSGFMT
="$ac_cv_path_GMSGFMT"
2571 if test -n "$GMSGFMT"; then
2572 echo "$ac_t""$GMSGFMT" 1>&6
2574 echo "$ac_t""no" 1>&6
2577 # Extract the first word of "xgettext", so it can be a program name with args.
2578 set dummy xgettext
; ac_word
=$2
2579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_word" >&5
2581 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2586 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2589 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2590 for ac_dir
in $PATH; do
2591 test -z "$ac_dir" && ac_dir
=.
2592 if test -f $ac_dir/$ac_word; then
2593 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2594 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2600 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2604 XGETTEXT
="$ac_cv_path_XGETTEXT"
2605 if test -n "$XGETTEXT"; then
2606 echo "$ac_t""$XGETTEXT" 1>&6
2608 echo "$ac_t""no" 1>&6
2612 USE_INCLUDED_LIBINTL
=yes
2616 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2618 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2619 nls_cv_header_intl
=libintl.h
2620 nls_cv_header_libgt
=libgettext.h
2623 if test "$XGETTEXT" != ":"; then
2624 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2627 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2632 # We need to process the po/ directory.
2636 nls_cv_header_intl
=libintl.h
2637 nls_cv_header_libgt
=libgettext.h
2640 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2641 # because some of the sources are only built for this goal.
2642 if test "$PACKAGE" = gettext; then
2644 USE_INCLUDED_LIBINTL
=yes
2647 for lang
in $ALL_LINGUAS; do
2648 GMOFILES
="$GMOFILES $lang.gmo"
2649 POFILES
="$POFILES $lang.po"
2665 if test "x$CATOBJEXT" != "x"; then
2666 if test "x$ALL_LINGUAS" = "x"; then
2669 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2670 echo "configure:2671: checking for catalogs to be installed" >&5
2672 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2673 case "$ALL_LINGUAS" in
2674 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2677 LINGUAS
=$NEW_LINGUAS
2678 echo "$ac_t""$LINGUAS" 1>&6
2681 if test -n "$LINGUAS"; then
2682 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2686 if test $ac_cv_header_locale_h = yes; then
2687 INCLUDE_LOCALE_H
="#include <locale.h>"
2690 /* The system does not provide the header <locale.h>. Take care yourself. */"
2694 if test -f $srcdir/po2tbl.
sed.
in; then
2695 if test "$CATOBJEXT" = ".cat"; then
2696 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2697 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2698 echo "configure:2699: checking for linux/version.h" >&5
2699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 cat > conftest.
$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 #include <linux/version.h>
2707 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2708 { (eval echo configure
:2709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2709 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2710 if test -z "$ac_err"; then
2712 eval "ac_cv_header_$ac_safe=yes"
2715 echo "configure: failed program was:" >&5
2716 cat conftest.
$ac_ext >&5
2718 eval "ac_cv_header_$ac_safe=no"
2722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2723 echo "$ac_t""yes" 1>&6
2726 echo "$ac_t""no" 1>&6
2731 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2733 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2734 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2737 if test "$PACKAGE" = "gettext"; then
2747 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2753 if test -d $srcdir/po
; then
2754 test -d po || mkdir po
2755 if test "x$srcdir" != "x."; then
2756 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2757 posrcprefix
="$srcdir/"
2759 posrcprefix
="../$srcdir/"
2765 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2766 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2779 configdirs
="doc testsuite"
2781 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2782 if test "${enable_multi_ice+set}" = set; then
2783 enableval
="$enable_multi_ice"
2784 case "${enableval}" in
2785 yes ) enable_multi_ice
="yes" ;;
2786 no
) enable_multi_ice
="no" ;;
2787 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2793 if test "${enable_multi_ice}" = "yes"; then
2794 configdirs
="${configdirs} multi-ice"
2798 .
${srcdir}/configure.
host
2800 .
${srcdir}/configure.tgt
2803 for ac_prog
in mawk gawk nawk
awk
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy
$ac_prog; ac_word
=$2
2807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2808 echo "configure:2809: checking for $ac_word" >&5
2809 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2812 if test -n "$AWK"; then
2813 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2815 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2817 for ac_dir
in $ac_dummy; do
2818 test -z "$ac_dir" && ac_dir
=.
2819 if test -f $ac_dir/$ac_word; then
2820 ac_cv_prog_AWK
="$ac_prog"
2827 AWK
="$ac_cv_prog_AWK"
2828 if test -n "$AWK"; then
2829 echo "$ac_t""$AWK" 1>&6
2831 echo "$ac_t""no" 1>&6
2834 test -n "$AWK" && break
2837 # Find a good install program. We prefer a C program (faster),
2838 # so one script is as good as another. But avoid the broken or
2839 # incompatible versions:
2840 # SysV /etc/install, /usr/sbin/install
2841 # SunOS /usr/etc/install
2842 # IRIX /sbin/install
2844 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2845 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2846 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2847 # ./install, which can be erroneously created by make from ./install.sh.
2848 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2849 echo "configure:2850: checking for a BSD compatible install" >&5
2850 if test -z "$INSTALL"; then
2851 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2854 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2855 for ac_dir
in $PATH; do
2856 # Account for people who put trailing slashes in PATH elements.
2858 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2860 # OSF1 and SCO ODT 3.0 have their own names for install.
2861 # Don't use installbsd from OSF since it installs stuff as root
2863 for ac_prog
in ginstall scoinst
install; do
2864 if test -f $ac_dir/$ac_prog; then
2865 if test $ac_prog = install &&
2866 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2867 # AIX install. It has an incompatible calling convention.
2870 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2881 if test "${ac_cv_path_install+set}" = set; then
2882 INSTALL
="$ac_cv_path_install"
2884 # As a last resort, use the slow shell script. We don't cache a
2885 # path for INSTALL within a source directory, because that will
2886 # break other packages using the cache if that directory is
2887 # removed, or if the path is relative.
2888 INSTALL
="$ac_install_sh"
2891 echo "$ac_t""$INSTALL" 1>&6
2893 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2894 # It thinks the first close brace ends the variable substitution.
2895 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2897 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2899 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2901 if test $host != $build; then
2902 ac_tool_prefix
=${host_alias}-
2907 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2908 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_word" >&5
2911 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 if test -n "$AR"; then
2915 ac_cv_prog_AR
="$AR" # Let the user override the test.
2917 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2919 for ac_dir
in $ac_dummy; do
2920 test -z "$ac_dir" && ac_dir
=.
2921 if test -f $ac_dir/$ac_word; then
2922 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2927 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2931 if test -n "$AR"; then
2932 echo "$ac_t""$AR" 1>&6
2934 echo "$ac_t""no" 1>&6
2939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2940 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2942 echo "configure:2943: checking for $ac_word" >&5
2943 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 if test -n "$RANLIB"; then
2947 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2949 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2951 for ac_dir
in $ac_dummy; do
2952 test -z "$ac_dir" && ac_dir
=.
2953 if test -f $ac_dir/$ac_word; then
2954 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2961 RANLIB
="$ac_cv_prog_RANLIB"
2962 if test -n "$RANLIB"; then
2963 echo "$ac_t""$RANLIB" 1>&6
2965 echo "$ac_t""no" 1>&6
2969 if test -z "$ac_cv_prog_RANLIB"; then
2970 if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "ranlib", so it can be a program name with args.
2972 set dummy ranlib
; ac_word
=$2
2973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2974 echo "configure:2975: checking for $ac_word" >&5
2975 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2978 if test -n "$RANLIB"; then
2979 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2981 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2983 for ac_dir
in $ac_dummy; do
2984 test -z "$ac_dir" && ac_dir
=.
2985 if test -f $ac_dir/$ac_word; then
2986 ac_cv_prog_RANLIB
="ranlib"
2991 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2994 RANLIB
="$ac_cv_prog_RANLIB"
2995 if test -n "$RANLIB"; then
2996 echo "$ac_t""$RANLIB" 1>&6
2998 echo "$ac_t""no" 1>&6
3006 for ac_prog
in 'bison -y' byacc
3008 # Extract the first word of "$ac_prog", so it can be a program name with args.
3009 set dummy
$ac_prog; ac_word
=$2
3010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3011 echo "configure:3012: checking for $ac_word" >&5
3012 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 if test -n "$YACC"; then
3016 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3018 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3020 for ac_dir
in $ac_dummy; do
3021 test -z "$ac_dir" && ac_dir
=.
3022 if test -f $ac_dir/$ac_word; then
3023 ac_cv_prog_YACC
="$ac_prog"
3030 YACC
="$ac_cv_prog_YACC"
3031 if test -n "$YACC"; then
3032 echo "$ac_t""$YACC" 1>&6
3034 echo "$ac_t""no" 1>&6
3037 test -n "$YACC" && break
3039 test -n "$YACC" || YACC
="yacc"
3042 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3043 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3045 echo "configure:3046: checking for $ac_word" >&5
3046 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3049 if test -n "$MIG"; then
3050 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3052 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3054 for ac_dir
in $ac_dummy; do
3055 test -z "$ac_dir" && ac_dir
=.
3056 if test -f $ac_dir/$ac_word; then
3057 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3062 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3065 MIG
="$ac_cv_prog_MIG"
3066 if test -n "$MIG"; then
3067 echo "$ac_t""$MIG" 1>&6
3069 echo "$ac_t""no" 1>&6
3075 if test "$program_transform_name" = s
,x
,x
,; then
3076 program_transform_name
=
3078 # Double any \ or $. echo might interpret backslashes.
3079 cat <<\EOF_SED
> conftestsed
3080 s
,\\,\\\\,g
; s
,\$
,$$
,g
3082 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3085 test "$program_prefix" != NONE
&&
3086 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3087 # Use a double $ so make ignores it.
3088 test "$program_suffix" != NONE
&&
3089 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3091 # sed with no file args requires a program.
3092 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3095 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3096 echo "configure:3097: checking return type of signal handlers" >&5
3097 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3100 cat > conftest.
$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3103 #include <sys/types.h>
3109 extern "C" void (*signal (int, void (*)(int)))(int);
3111 void (*signal ()) ();
3118 if { (eval echo configure
:3119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3120 ac_cv_type_signal
=void
3122 echo "configure: failed program was:" >&5
3123 cat conftest.
$ac_ext >&5
3125 ac_cv_type_signal
=int
3130 echo "$ac_t""$ac_cv_type_signal" 1>&6
3131 cat >> confdefs.h
<<EOF
3132 #define RETSIGTYPE $ac_cv_type_signal
3137 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3138 echo "configure:3139: checking for ANSI C header files" >&5
3139 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3142 cat > conftest.
$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3150 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3151 { (eval echo configure
:3152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3152 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3153 if test -z "$ac_err"; then
3155 ac_cv_header_stdc
=yes
3158 echo "configure: failed program was:" >&5
3159 cat conftest.
$ac_ext >&5
3161 ac_cv_header_stdc
=no
3165 if test $ac_cv_header_stdc = yes; then
3166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3167 cat > conftest.
$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3173 egrep "memchr" >/dev
/null
2>&1; then
3177 ac_cv_header_stdc
=no
3183 if test $ac_cv_header_stdc = yes; then
3184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3185 cat > conftest.
$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3191 egrep "free" >/dev
/null
2>&1; then
3195 ac_cv_header_stdc
=no
3201 if test $ac_cv_header_stdc = yes; then
3202 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3203 if test "$cross_compiling" = yes; then
3206 cat > conftest.
$ac_ext <<EOF
3207 #line 3208 "configure"
3208 #include "confdefs.h"
3210 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3211 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3212 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3213 int main () { int i; for (i = 0; i < 256; i++)
3214 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3218 if { (eval echo configure
:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3222 echo "configure: failed program was:" >&5
3223 cat conftest.
$ac_ext >&5
3225 ac_cv_header_stdc
=no
3233 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3234 if test $ac_cv_header_stdc = yes; then
3235 cat >> confdefs.h
<<\EOF
3236 #define STDC_HEADERS 1
3242 for ac_hdr
in ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
3243 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3244 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3245 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3246 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3249 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3250 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3251 echo "configure:3252: checking for $ac_hdr" >&5
3252 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3253 echo $ac_n "(cached) $ac_c" 1>&6
3255 cat > conftest.
$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3260 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3261 { (eval echo configure
:3262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3262 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3263 if test -z "$ac_err"; then
3265 eval "ac_cv_header_$ac_safe=yes"
3268 echo "configure: failed program was:" >&5
3269 cat conftest.
$ac_ext >&5
3271 eval "ac_cv_header_$ac_safe=no"
3275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3276 echo "$ac_t""yes" 1>&6
3277 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3278 cat >> confdefs.h
<<EOF
3279 #define $ac_tr_hdr 1
3283 echo "$ac_t""no" 1>&6
3287 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3288 echo "configure:3289: checking whether stat file-mode macros are broken" >&5
3289 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3292 cat > conftest.
$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 #include <sys/types.h>
3296 #include <sys/stat.h>
3298 #if defined(S_ISBLK) && defined(S_IFDIR)
3299 # if S_ISBLK (S_IFDIR)
3304 #if defined(S_ISBLK) && defined(S_IFCHR)
3305 # if S_ISBLK (S_IFCHR)
3310 #if defined(S_ISLNK) && defined(S_IFREG)
3311 # if S_ISLNK (S_IFREG)
3316 #if defined(S_ISSOCK) && defined(S_IFREG)
3317 # if S_ISSOCK (S_IFREG)
3323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3324 egrep "You lose" >/dev
/null
2>&1; then
3326 ac_cv_header_stat_broken
=yes
3329 ac_cv_header_stat_broken
=no
3335 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3336 if test $ac_cv_header_stat_broken = yes; then
3337 cat >> confdefs.h
<<\EOF
3338 #define STAT_MACROS_BROKEN 1
3344 echo $ac_n "checking for working const""... $ac_c" 1>&6
3345 echo "configure:3346: checking for working const" >&5
3346 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 cat > conftest.
$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3355 /* Ultrix mips cc rejects this. */
3356 typedef int charset[2]; const charset x;
3357 /* SunOS 4.1.1 cc rejects this. */
3358 char const *const *ccp;
3360 /* NEC SVR4.0.2 mips cc rejects this. */
3361 struct point {int x, y;};
3362 static struct point const zero = {0,0};
3363 /* AIX XL C 1.02.0.0 rejects this.
3364 It does not let you subtract one const X* pointer from another in an arm
3365 of an if-expression whose if-part is not a constant expression */
3366 const char *g = "string";
3367 ccp = &g + (g ? g-g : 0);
3368 /* HPUX 7.0 cc rejects these. */
3371 ccp = (char const *const *) p;
3372 { /* SCO 3.2v4 cc rejects this. */
3374 char const *s = 0 ? (char *) 0 : (char const *) 0;
3378 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3380 const int *foo = &x[0];
3383 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3384 typedef const int *iptr;
3388 { /* AIX XL C 1.02.0.0 rejects this saying
3389 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3390 struct s { int j; const int *ap[3]; };
3391 struct s *b; b->j = 5;
3393 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3399 if { (eval echo configure
:3400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3403 echo "configure: failed program was:" >&5
3404 cat conftest.
$ac_ext >&5
3411 echo "$ac_t""$ac_cv_c_const" 1>&6
3412 if test $ac_cv_c_const = no
; then
3413 cat >> confdefs.h
<<\EOF
3420 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3423 echo "configure:3424: checking for $ac_func" >&5
3424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3427 cat > conftest.
$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 /* System header to define __stub macros and hopefully few prototypes,
3431 which can conflict with char $ac_func(); below. */
3433 /* Override any gcc2 internal prototype to avoid an error. */
3434 /* We use char because int might match the return type of a gcc2
3435 builtin and then its argument prototype would still apply. */
3440 /* The GNU C library defines this for functions which it implements
3441 to always fail with ENOSYS. Some functions are actually named
3442 something starting with __ and the normal name is an alias. */
3443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3451 if { (eval echo configure
:3452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3453 eval "ac_cv_func_$ac_func=yes"
3455 echo "configure: failed program was:" >&5
3456 cat conftest.
$ac_ext >&5
3458 eval "ac_cv_func_$ac_func=no"
3463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3464 echo "$ac_t""yes" 1>&6
3465 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3466 cat >> confdefs.h
<<EOF
3467 #define $ac_tr_func 1
3471 echo "$ac_t""no" 1>&6
3475 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3476 # for constant arguments. Useless!
3477 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3478 echo "configure:3479: checking for working alloca.h" >&5
3479 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3482 cat > conftest.
$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3487 char *p = alloca(2 * sizeof(int));
3490 if { (eval echo configure
:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3492 ac_cv_header_alloca_h
=yes
3494 echo "configure: failed program was:" >&5
3495 cat conftest.
$ac_ext >&5
3497 ac_cv_header_alloca_h
=no
3502 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3503 if test $ac_cv_header_alloca_h = yes; then
3504 cat >> confdefs.h
<<\EOF
3505 #define HAVE_ALLOCA_H 1
3510 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3511 echo "configure:3512: checking for alloca" >&5
3512 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 cat > conftest.
$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3520 # define alloca __builtin_alloca
3523 # include <malloc.h>
3524 # define alloca _alloca
3527 # include <alloca.h>
3532 # ifndef alloca /* predefined by HP cc +Olibcalls */
3541 char *p = (char *) alloca(1);
3544 if { (eval echo configure
:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3546 ac_cv_func_alloca_works
=yes
3548 echo "configure: failed program was:" >&5
3549 cat conftest.
$ac_ext >&5
3551 ac_cv_func_alloca_works
=no
3556 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3557 if test $ac_cv_func_alloca_works = yes; then
3558 cat >> confdefs.h
<<\EOF
3559 #define HAVE_ALLOCA 1
3564 if test $ac_cv_func_alloca_works = no
; then
3565 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3566 # that cause trouble. Some versions do not even contain alloca or
3567 # contain a buggy version. If you still want to use their alloca,
3568 # use ar to extract alloca.o from them instead of compiling alloca.c.
3569 ALLOCA
=alloca.
${ac_objext}
3570 cat >> confdefs.h
<<\EOF
3575 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3576 echo "configure:3577: checking whether alloca needs Cray hooks" >&5
3577 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3580 cat > conftest.
$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3583 #if defined(CRAY) && ! defined(CRAY2)
3590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3591 egrep "webecray" >/dev
/null
2>&1; then
3602 echo "$ac_t""$ac_cv_os_cray" 1>&6
3603 if test $ac_cv_os_cray = yes; then
3604 for ac_func
in _getb67 GETB67 getb67
; do
3605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3606 echo "configure:3607: checking for $ac_func" >&5
3607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 cat > conftest.
$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 /* System header to define __stub macros and hopefully few prototypes,
3614 which can conflict with char $ac_func(); below. */
3616 /* Override any gcc2 internal prototype to avoid an error. */
3617 /* We use char because int might match the return type of a gcc2
3618 builtin and then its argument prototype would still apply. */
3623 /* The GNU C library defines this for functions which it implements
3624 to always fail with ENOSYS. Some functions are actually named
3625 something starting with __ and the normal name is an alias. */
3626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3634 if { (eval echo configure
:3635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3636 eval "ac_cv_func_$ac_func=yes"
3638 echo "configure: failed program was:" >&5
3639 cat conftest.
$ac_ext >&5
3641 eval "ac_cv_func_$ac_func=no"
3646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3647 echo "$ac_t""yes" 1>&6
3648 cat >> confdefs.h
<<EOF
3649 #define CRAY_STACKSEG_END $ac_func
3654 echo "$ac_t""no" 1>&6
3660 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3661 echo "configure:3662: checking stack direction for C alloca" >&5
3662 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3665 if test "$cross_compiling" = yes; then
3666 ac_cv_c_stack_direction
=0
3668 cat > conftest.
$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3671 find_stack_direction ()
3673 static char *addr = 0;
3678 return find_stack_direction ();
3681 return (&dummy > addr) ? 1 : -1;
3685 exit (find_stack_direction() < 0);
3688 if { (eval echo configure
:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3690 ac_cv_c_stack_direction
=1
3692 echo "configure: failed program was:" >&5
3693 cat conftest.
$ac_ext >&5
3695 ac_cv_c_stack_direction
=-1
3702 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3703 cat >> confdefs.h
<<EOF
3704 #define STACK_DIRECTION $ac_cv_c_stack_direction
3710 echo $ac_n "checking for PTRACE_GETXFPREGS""... $ac_c" 1>&6
3711 echo "configure:3712: checking for PTRACE_GETXFPREGS" >&5
3712 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getxfpregs'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3715 cat > conftest.
$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 #include <sys/ptrace.h>
3723 if { (eval echo configure
:3724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3725 gdb_cv_have_ptrace_getxfpregs
=yes
3727 echo "configure: failed program was:" >&5
3728 cat conftest.
$ac_ext >&5
3730 gdb_cv_have_ptrace_getxfpregs
=no
3735 echo "$ac_t""$gdb_cv_have_ptrace_getxfpregs" 1>&6
3736 if test $gdb_cv_have_ptrace_getxfpregs = yes; then
3737 cat >> confdefs.h
<<\EOF
3738 #define HAVE_PTRACE_GETXFPREGS 1
3743 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
3744 echo "configure:3745: checking for socketpair in -lsocket" >&5
3745 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
3746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 ac_save_LIBS
="$LIBS"
3750 LIBS
="-lsocket $LIBS"
3751 cat > conftest.
$ac_ext <<EOF
3752 #line 3753 "configure"
3753 #include "confdefs.h"
3754 /* Override any gcc2 internal prototype to avoid an error. */
3755 /* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3763 if { (eval echo configure
:3764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3765 eval "ac_cv_lib_$ac_lib_var=yes"
3767 echo "configure: failed program was:" >&5
3768 cat conftest.
$ac_ext >&5
3770 eval "ac_cv_lib_$ac_lib_var=no"
3773 LIBS
="$ac_save_LIBS"
3776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3777 echo "$ac_t""yes" 1>&6
3778 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3780 cat >> confdefs.h
<<EOF
3781 #define $ac_tr_lib 1
3784 LIBS
="-lsocket $LIBS"
3787 echo "$ac_t""no" 1>&6
3790 for ac_func
in socketpair
3792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3793 echo "configure:3794: checking for $ac_func" >&5
3794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 cat > conftest.
$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 /* System header to define __stub macros and hopefully few prototypes,
3801 which can conflict with char $ac_func(); below. */
3803 /* Override any gcc2 internal prototype to avoid an error. */
3804 /* We use char because int might match the return type of a gcc2
3805 builtin and then its argument prototype would still apply. */
3810 /* The GNU C library defines this for functions which it implements
3811 to always fail with ENOSYS. Some functions are actually named
3812 something starting with __ and the normal name is an alias. */
3813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3821 if { (eval echo configure
:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3823 eval "ac_cv_func_$ac_func=yes"
3825 echo "configure: failed program was:" >&5
3826 cat conftest.
$ac_ext >&5
3828 eval "ac_cv_func_$ac_func=no"
3833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3835 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3836 cat >> confdefs.h
<<EOF
3837 #define $ac_tr_func 1
3841 echo "$ac_t""no" 1>&6
3847 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
3848 echo "configure:3849: checking whether malloc must be declared" >&5
3849 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
3850 echo $ac_n "(cached) $ac_c" 1>&6
3852 cat > conftest.
$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3857 #ifdef HAVE_STRING_H
3860 #ifdef HAVE_STRINGS_H
3861 #include <strings.h>
3864 #ifdef HAVE_STDLIB_H
3867 #ifdef HAVE_UNISTD_H
3871 char *(*pfn) = (char *(*)) malloc
3874 if { (eval echo configure
:3875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3876 bfd_cv_decl_needed_malloc
=no
3878 echo "configure: failed program was:" >&5
3879 cat conftest.
$ac_ext >&5
3881 bfd_cv_decl_needed_malloc
=yes
3886 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
3887 if test $bfd_cv_decl_needed_malloc = yes; then
3888 cat >> confdefs.h
<<\EOF
3889 #define NEED_DECLARATION_MALLOC 1
3894 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
3895 echo "configure:3896: checking whether realloc must be declared" >&5
3896 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 cat > conftest.
$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3904 #ifdef HAVE_STRING_H
3907 #ifdef HAVE_STRINGS_H
3908 #include <strings.h>
3911 #ifdef HAVE_STDLIB_H
3914 #ifdef HAVE_UNISTD_H
3918 char *(*pfn) = (char *(*)) realloc
3921 if { (eval echo configure
:3922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3923 bfd_cv_decl_needed_realloc
=no
3925 echo "configure: failed program was:" >&5
3926 cat conftest.
$ac_ext >&5
3928 bfd_cv_decl_needed_realloc
=yes
3933 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
3934 if test $bfd_cv_decl_needed_realloc = yes; then
3935 cat >> confdefs.h
<<\EOF
3936 #define NEED_DECLARATION_REALLOC 1
3941 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
3942 echo "configure:3943: checking whether free must be declared" >&5
3943 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3946 cat > conftest.
$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3951 #ifdef HAVE_STRING_H
3954 #ifdef HAVE_STRINGS_H
3955 #include <strings.h>
3958 #ifdef HAVE_STDLIB_H
3961 #ifdef HAVE_UNISTD_H
3965 char *(*pfn) = (char *(*)) free
3968 if { (eval echo configure
:3969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3970 bfd_cv_decl_needed_free
=no
3972 echo "configure: failed program was:" >&5
3973 cat conftest.
$ac_ext >&5
3975 bfd_cv_decl_needed_free
=yes
3980 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
3981 if test $bfd_cv_decl_needed_free = yes; then
3982 cat >> confdefs.h
<<\EOF
3983 #define NEED_DECLARATION_FREE 1
3988 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
3989 echo "configure:3990: checking whether strerror must be declared" >&5
3990 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3993 cat > conftest.
$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3998 #ifdef HAVE_STRING_H
4001 #ifdef HAVE_STRINGS_H
4002 #include <strings.h>
4005 #ifdef HAVE_STDLIB_H
4008 #ifdef HAVE_UNISTD_H
4012 char *(*pfn) = (char *(*)) strerror
4015 if { (eval echo configure
:4016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4017 bfd_cv_decl_needed_strerror
=no
4019 echo "configure: failed program was:" >&5
4020 cat conftest.
$ac_ext >&5
4022 bfd_cv_decl_needed_strerror
=yes
4027 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4028 if test $bfd_cv_decl_needed_strerror = yes; then
4029 cat >> confdefs.h
<<\EOF
4030 #define NEED_DECLARATION_STRERROR 1
4035 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4036 echo "configure:4037: checking whether strdup must be declared" >&5
4037 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 cat > conftest.
$ac_ext <<EOF
4041 #line 4042 "configure"
4042 #include "confdefs.h"
4045 #ifdef HAVE_STRING_H
4048 #ifdef HAVE_STRINGS_H
4049 #include <strings.h>
4052 #ifdef HAVE_STDLIB_H
4055 #ifdef HAVE_UNISTD_H
4059 char *(*pfn) = (char *(*)) strdup
4062 if { (eval echo configure
:4063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4064 bfd_cv_decl_needed_strdup
=no
4066 echo "configure: failed program was:" >&5
4067 cat conftest.
$ac_ext >&5
4069 bfd_cv_decl_needed_strdup
=yes
4074 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4075 if test $bfd_cv_decl_needed_strdup = yes; then
4076 cat >> confdefs.h
<<\EOF
4077 #define NEED_DECLARATION_STRDUP 1
4082 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4083 echo "configure:4084: checking whether strstr must be declared" >&5
4084 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4087 cat > conftest.
$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4092 #ifdef HAVE_STRING_H
4095 #ifdef HAVE_STRINGS_H
4096 #include <strings.h>
4099 #ifdef HAVE_STDLIB_H
4102 #ifdef HAVE_UNISTD_H
4106 char *(*pfn) = (char *(*)) strstr
4109 if { (eval echo configure
:4110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4111 bfd_cv_decl_needed_strstr
=no
4113 echo "configure: failed program was:" >&5
4114 cat conftest.
$ac_ext >&5
4116 bfd_cv_decl_needed_strstr
=yes
4121 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4122 if test $bfd_cv_decl_needed_strstr = yes; then
4123 cat >> confdefs.h
<<\EOF
4124 #define NEED_DECLARATION_STRSTR 1
4131 # The following save_state_t checkery is only necessary for HPUX
4132 # versions earlier than 10.20. When those fade from memory, this
4133 # could be expunged. --jsm 1999-03-22
4135 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4136 echo "configure:4137: checking for HPUX save_state structure" >&5
4137 cat > conftest.
$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 #include <machine/save_state.h>
4142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4143 egrep "save_state_t" >/dev
/null
2>&1; then
4145 gdb_cv_hpux_savestate
=yes
4148 gdb_cv_hpux_savestate
=no
4152 cat > conftest.
$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4155 #include <machine/save_state.h>
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 egrep "ss_wide" >/dev
/null
2>&1; then
4160 gdb_cv_hpux_sswide
=yes
4163 gdb_cv_hpux_sswide
=no
4167 if test $gdb_cv_hpux_savestate = yes
4169 cat >> confdefs.h
<<\EOF
4170 #define HAVE_STRUCT_SAVE_STATE_T 1
4174 if test $gdb_cv_hpux_sswide = yes
4176 cat >> confdefs.h
<<\EOF
4177 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4181 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4184 # If we are configured native on GNU/Linux, work around problems with
4186 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4188 if test "${target}" = "${host}"; then
4191 cat >> confdefs.h
<<\EOF
4192 #define START_INFERIOR_TRAPS_EXPECTED 2
4195 cat >> confdefs.h
<<\EOF
4196 #define sys_quotactl 1
4200 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4201 cat >> confdefs.h
<<\EOF
4202 #define NEW_PROC_API 1
4206 # FIXME: we would like to define NEW_PROC_API for all versions of
4207 # Solaris from 2.6 on... but it isn't quite working yet. Seems
4208 # to work on sparc 2.6, so let's try it out there.
4209 sparc-sun-solaris2.6
)
4210 cat >> confdefs.h
<<\EOF
4211 #define NEW_PROC_API 1
4218 if test "$ac_cv_header_sys_procfs_h" = yes; then
4219 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4220 echo "configure:4221: checking for pstatus_t in sys/procfs.h" >&5
4221 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 cat > conftest.
$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 #include <sys/procfs.h>
4232 if { (eval echo configure
:4233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4234 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4236 echo "configure: failed program was:" >&5
4237 cat conftest.
$ac_ext >&5
4239 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4245 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4246 cat >> confdefs.h
<<\EOF
4247 #define HAVE_PSTATUS_T 1
4251 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4253 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4254 echo "configure:4255: checking for prrun_t in sys/procfs.h" >&5
4255 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4256 echo $ac_n "(cached) $ac_c" 1>&6
4258 cat > conftest.
$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 #include <sys/procfs.h>
4266 if { (eval echo configure
:4267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4268 bfd_cv_have_sys_procfs_type_prrun_t
=yes
4270 echo "configure: failed program was:" >&5
4271 cat conftest.
$ac_ext >&5
4273 bfd_cv_have_sys_procfs_type_prrun_t
=no
4279 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4280 cat >> confdefs.h
<<\EOF
4281 #define HAVE_PRRUN_T 1
4285 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4287 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4288 echo "configure:4289: checking for gregset_t in sys/procfs.h" >&5
4289 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4292 cat > conftest.
$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4295 #include <sys/procfs.h>
4300 if { (eval echo configure
:4301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4302 bfd_cv_have_sys_procfs_type_gregset_t
=yes
4304 echo "configure: failed program was:" >&5
4305 cat conftest.
$ac_ext >&5
4307 bfd_cv_have_sys_procfs_type_gregset_t
=no
4313 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4314 cat >> confdefs.h
<<\EOF
4315 #define HAVE_GREGSET_T 1
4319 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4321 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4322 echo "configure:4323: checking for fpregset_t in sys/procfs.h" >&5
4323 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4326 cat > conftest.
$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4329 #include <sys/procfs.h>
4334 if { (eval echo configure
:4335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4336 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
4338 echo "configure: failed program was:" >&5
4339 cat conftest.
$ac_ext >&5
4341 bfd_cv_have_sys_procfs_type_fpregset_t
=no
4347 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4348 cat >> confdefs.h
<<\EOF
4349 #define HAVE_FPREGSET_T 1
4353 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4355 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
4356 echo "configure:4357: checking for prgregset_t in sys/procfs.h" >&5
4357 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4360 cat > conftest.
$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4363 #include <sys/procfs.h>
4368 if { (eval echo configure
:4369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4370 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
4372 echo "configure: failed program was:" >&5
4373 cat conftest.
$ac_ext >&5
4375 bfd_cv_have_sys_procfs_type_prgregset_t
=no
4381 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4382 cat >> confdefs.h
<<\EOF
4383 #define HAVE_PRGREGSET_T 1
4387 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
4389 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
4390 echo "configure:4391: checking for prfpregset_t in sys/procfs.h" >&5
4391 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4394 cat > conftest.
$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4397 #include <sys/procfs.h>
4402 if { (eval echo configure
:4403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4404 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
4406 echo "configure: failed program was:" >&5
4407 cat conftest.
$ac_ext >&5
4409 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
4415 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4416 cat >> confdefs.h
<<\EOF
4417 #define HAVE_PRFPREGSET_T 1
4421 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
4423 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
4424 echo "configure:4425: checking for lwpid_t in sys/procfs.h" >&5
4425 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4428 cat > conftest.
$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 #include <sys/procfs.h>
4436 if { (eval echo configure
:4437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4438 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
4440 echo "configure: failed program was:" >&5
4441 cat conftest.
$ac_ext >&5
4443 bfd_cv_have_sys_procfs_type_lwpid_t
=no
4449 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4450 cat >> confdefs.h
<<\EOF
4451 #define HAVE_LWPID_T 1
4455 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
4457 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
4458 echo "configure:4459: checking for psaddr_t in sys/procfs.h" >&5
4459 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 cat > conftest.
$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4465 #include <sys/procfs.h>
4470 if { (eval echo configure
:4471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4472 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
4474 echo "configure: failed program was:" >&5
4475 cat conftest.
$ac_ext >&5
4477 bfd_cv_have_sys_procfs_type_psaddr_t
=no
4483 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4484 cat >> confdefs.h
<<\EOF
4485 #define HAVE_PSADDR_T 1
4489 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
4493 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4494 echo "configure:4495: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4495 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 cat > conftest.
$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4502 #include <sys/types.h>
4503 #include <sys/procfs.h>
4508 dummy = ioctl(0, PIOCSET, &dummy);
4512 if { (eval echo configure
:4513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4514 gdb_cv_have_procfs_piocset
=yes
4516 echo "configure: failed program was:" >&5
4517 cat conftest.
$ac_ext >&5
4519 gdb_cv_have_procfs_piocset
=no
4524 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4525 if test $gdb_cv_have_procfs_piocset = yes; then
4526 cat >> confdefs.h
<<\EOF
4527 #define HAVE_PROCFS_PIOCSET 1
4533 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4534 echo "configure:4535: checking for main in -lm" >&5
4535 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
4536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4537 echo $ac_n "(cached) $ac_c" 1>&6
4539 ac_save_LIBS
="$LIBS"
4541 cat > conftest.
$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4549 if { (eval echo configure
:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4551 eval "ac_cv_lib_$ac_lib_var=yes"
4553 echo "configure: failed program was:" >&5
4554 cat conftest.
$ac_ext >&5
4556 eval "ac_cv_lib_$ac_lib_var=no"
4559 LIBS
="$ac_save_LIBS"
4562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4563 echo "$ac_t""yes" 1>&6
4564 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4565 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4566 cat >> confdefs.h
<<EOF
4567 #define $ac_tr_lib 1
4573 echo "$ac_t""no" 1>&6
4577 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4578 echo "configure:4579: checking for wctype in -lc" >&5
4579 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 ac_save_LIBS
="$LIBS"
4585 cat > conftest.
$ac_ext <<EOF
4586 #line 4587 "configure"
4587 #include "confdefs.h"
4588 /* Override any gcc2 internal prototype to avoid an error. */
4589 /* We use char because int might match the return type of a gcc2
4590 builtin and then its argument prototype would still apply. */
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
4614 echo "$ac_t""no" 1>&6
4615 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
4616 echo "configure:4617: checking for wctype in -lw" >&5
4617 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
4618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 ac_save_LIBS
="$LIBS"
4623 cat > conftest.
$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 /* Override any gcc2 internal prototype to avoid an error. */
4627 /* We use char because int might match the return type of a gcc2
4628 builtin and then its argument prototype would still apply. */
4635 if { (eval echo configure
:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4637 eval "ac_cv_lib_$ac_lib_var=yes"
4639 echo "configure: failed program was:" >&5
4640 cat conftest.
$ac_ext >&5
4642 eval "ac_cv_lib_$ac_lib_var=no"
4645 LIBS
="$ac_save_LIBS"
4648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4649 echo "$ac_t""yes" 1>&6
4650 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
4651 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4652 cat >> confdefs.h
<<EOF
4653 #define $ac_tr_lib 1
4659 echo "$ac_t""no" 1>&6
4666 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
4667 echo "configure:4668: checking for long long support in compiler" >&5
4668 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4671 cat > conftest.
$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4677 extern long long foo;
4678 switch (foo & 2) { case 0: return 1; }
4682 if { (eval echo configure
:4683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4684 gdb_cv_c_long_long
=yes
4686 echo "configure: failed program was:" >&5
4687 cat conftest.
$ac_ext >&5
4689 gdb_cv_c_long_long
=no
4694 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
4695 if test $gdb_cv_c_long_long = yes; then
4696 cat >> confdefs.h
<<\EOF
4697 #define CC_HAS_LONG_LONG 1
4703 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
4704 echo "configure:4705: checking for long long support in printf" >&5
4705 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
4706 echo $ac_n "(cached) $ac_c" 1>&6
4708 if test "$cross_compiling" = yes; then
4709 gdb_cv_printf_has_long_long
=no
4711 cat > conftest.
$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4718 l = (l << 16) + 0x0123;
4719 l = (l << 16) + 0x4567;
4720 l = (l << 16) + 0x89ab;
4721 l = (l << 16) + 0xcdef;
4722 sprintf (buf, "0x%016llx", l);
4723 return (strcmp ("0x0123456789abcdef", buf));
4726 if { (eval echo configure
:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4728 gdb_cv_printf_has_long_long
=yes
4730 echo "configure: failed program was:" >&5
4731 cat conftest.
$ac_ext >&5
4733 gdb_cv_printf_has_long_long
=no
4740 if test $gdb_cv_printf_has_long_long = yes; then
4741 cat >> confdefs.h
<<\EOF
4742 #define PRINTF_HAS_LONG_LONG 1
4746 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
4749 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
4750 echo "configure:4751: checking for long double support in compiler" >&5
4751 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6
4754 cat > conftest.
$ac_ext <<EOF
4755 #line 4756 "configure"
4756 #include "confdefs.h"
4762 if { (eval echo configure
:4763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4764 ac_cv_c_long_double
=yes
4766 echo "configure: failed program was:" >&5
4767 cat conftest.
$ac_ext >&5
4769 ac_cv_c_long_double
=no
4774 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4775 if test $ac_cv_c_long_double = yes; then
4776 cat >> confdefs.h
<<\EOF
4777 #define HAVE_LONG_DOUBLE 1
4783 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
4784 echo "configure:4785: checking for long double support in printf" >&5
4785 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4788 if test "$cross_compiling" = yes; then
4789 gdb_cv_printf_has_long_double
=no
4791 cat > conftest.
$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4797 long double f = 3.141592653;
4798 sprintf (buf, "%Lg", f);
4799 return (strncmp ("3.14159", buf, 7));
4802 if { (eval echo configure
:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4804 gdb_cv_printf_has_long_double
=yes
4806 echo "configure: failed program was:" >&5
4807 cat conftest.
$ac_ext >&5
4809 gdb_cv_printf_has_long_double
=no
4816 if test $gdb_cv_printf_has_long_double = yes; then
4817 cat >> confdefs.h
<<\EOF
4818 #define PRINTF_HAS_LONG_DOUBLE 1
4822 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
4825 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
4826 echo "configure:4827: checking for long double support in scanf" >&5
4827 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 if test "$cross_compiling" = yes; then
4831 gdb_cv_scanf_has_long_double
=no
4833 cat > conftest.
$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4838 char *buf = "3.141592653";
4840 sscanf (buf, "%Lg", &f);
4841 return !(f > 3.14159 && f < 3.14160);
4844 if { (eval echo configure
:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4846 gdb_cv_scanf_has_long_double
=yes
4848 echo "configure: failed program was:" >&5
4849 cat conftest.
$ac_ext >&5
4851 gdb_cv_scanf_has_long_double
=no
4858 if test $gdb_cv_scanf_has_long_double = yes; then
4859 cat >> confdefs.h
<<\EOF
4860 #define SCANF_HAS_LONG_DOUBLE 1
4864 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
4866 for ac_hdr
in unistd.h
4868 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4869 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4870 echo "configure:4871: checking for $ac_hdr" >&5
4871 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4874 cat > conftest.
$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4879 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4880 { (eval echo configure
:4881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4881 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4882 if test -z "$ac_err"; then
4884 eval "ac_cv_header_$ac_safe=yes"
4887 echo "configure: failed program was:" >&5
4888 cat conftest.
$ac_ext >&5
4890 eval "ac_cv_header_$ac_safe=no"
4894 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4895 echo "$ac_t""yes" 1>&6
4896 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4897 cat >> confdefs.h
<<EOF
4898 #define $ac_tr_hdr 1
4902 echo "$ac_t""no" 1>&6
4906 for ac_func
in getpagesize
4908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4909 echo "configure:4910: checking for $ac_func" >&5
4910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4913 cat > conftest.
$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 /* System header to define __stub macros and hopefully few prototypes,
4917 which can conflict with char $ac_func(); below. */
4919 /* Override any gcc2 internal prototype to avoid an error. */
4920 /* We use char because int might match the return type of a gcc2
4921 builtin and then its argument prototype would still apply. */
4926 /* The GNU C library defines this for functions which it implements
4927 to always fail with ENOSYS. Some functions are actually named
4928 something starting with __ and the normal name is an alias. */
4929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4937 if { (eval echo configure
:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4939 eval "ac_cv_func_$ac_func=yes"
4941 echo "configure: failed program was:" >&5
4942 cat conftest.
$ac_ext >&5
4944 eval "ac_cv_func_$ac_func=no"
4949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4950 echo "$ac_t""yes" 1>&6
4951 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4952 cat >> confdefs.h
<<EOF
4953 #define $ac_tr_func 1
4957 echo "$ac_t""no" 1>&6
4961 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4962 echo "configure:4963: checking for working mmap" >&5
4963 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4964 echo $ac_n "(cached) $ac_c" 1>&6
4966 if test "$cross_compiling" = yes; then
4967 ac_cv_func_mmap_fixed_mapped
=no
4969 cat > conftest.
$ac_ext <<EOF
4970 #line 4971 "configure"
4971 #include "confdefs.h"
4973 /* Thanks to Mike Haertel and Jim Avera for this test.
4974 Here is a matrix of mmap possibilities:
4975 mmap private not fixed
4976 mmap private fixed at somewhere currently unmapped
4977 mmap private fixed at somewhere already mapped
4978 mmap shared not fixed
4979 mmap shared fixed at somewhere currently unmapped
4980 mmap shared fixed at somewhere already mapped
4981 For private mappings, we should verify that changes cannot be read()
4982 back from the file, nor mmap's back from the file at a different
4983 address. (There have been systems where private was not correctly
4984 implemented like the infamous i386 svr4.0, and systems where the
4985 VM page cache was not coherent with the filesystem buffer cache
4986 like early versions of FreeBSD and possibly contemporary NetBSD.)
4987 For shared mappings, we should conversely verify that changes get
4988 propogated back to all the places they're supposed to be.
4990 Grep wants private fixed already mapped.
4991 The main things grep needs to know about mmap are:
4992 * does it exist and is it safe to write into the mmap'd area
4993 * how to use it (BSD variants) */
4994 #include <sys/types.h>
4996 #include <sys/mman.h>
4998 /* This mess was copied from the GNU getpagesize.h. */
4999 #ifndef HAVE_GETPAGESIZE
5000 # ifdef HAVE_UNISTD_H
5001 # include <unistd.h>
5004 /* Assume that all systems that can run configure have sys/param.h. */
5005 # ifndef HAVE_SYS_PARAM_H
5006 # define HAVE_SYS_PARAM_H 1
5009 # ifdef _SC_PAGESIZE
5010 # define getpagesize() sysconf(_SC_PAGESIZE)
5011 # else /* no _SC_PAGESIZE */
5012 # ifdef HAVE_SYS_PARAM_H
5013 # include <sys/param.h>
5014 # ifdef EXEC_PAGESIZE
5015 # define getpagesize() EXEC_PAGESIZE
5016 # else /* no EXEC_PAGESIZE */
5018 # define getpagesize() NBPG * CLSIZE
5021 # endif /* no CLSIZE */
5022 # else /* no NBPG */
5024 # define getpagesize() NBPC
5025 # else /* no NBPC */
5027 # define getpagesize() PAGESIZE
5028 # endif /* PAGESIZE */
5029 # endif /* no NBPC */
5030 # endif /* no NBPG */
5031 # endif /* no EXEC_PAGESIZE */
5032 # else /* no HAVE_SYS_PARAM_H */
5033 # define getpagesize() 8192 /* punt totally */
5034 # endif /* no HAVE_SYS_PARAM_H */
5035 # endif /* no _SC_PAGESIZE */
5037 #endif /* no HAVE_GETPAGESIZE */
5040 extern "C" { void *malloc(unsigned); }
5048 char *data, *data2, *data3;
5052 pagesize = getpagesize();
5055 * First, make a file with some known garbage in it.
5057 data = malloc(pagesize);
5060 for (i = 0; i < pagesize; ++i)
5061 *(data + i) = rand();
5063 fd = creat("conftestmmap", 0600);
5066 if (write(fd, data, pagesize) != pagesize)
5071 * Next, try to mmap the file at a fixed address which
5072 * already has something else allocated at it. If we can,
5073 * also make sure that we see the same garbage.
5075 fd = open("conftestmmap", O_RDWR);
5078 data2 = malloc(2 * pagesize);
5081 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5082 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5083 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5085 for (i = 0; i < pagesize; ++i)
5086 if (*(data + i) != *(data2 + i))
5090 * Finally, make sure that changes to the mapped area
5091 * do not percolate back to the file as seen by read().
5092 * (This is a bug on some variants of i386 svr4.0.)
5094 for (i = 0; i < pagesize; ++i)
5095 *(data2 + i) = *(data2 + i) + 1;
5096 data3 = malloc(pagesize);
5099 if (read(fd, data3, pagesize) != pagesize)
5101 for (i = 0; i < pagesize; ++i)
5102 if (*(data + i) != *(data3 + i))
5105 unlink("conftestmmap");
5110 if { (eval echo configure
:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5112 ac_cv_func_mmap_fixed_mapped
=yes
5114 echo "configure: failed program was:" >&5
5115 cat conftest.
$ac_ext >&5
5117 ac_cv_func_mmap_fixed_mapped
=no
5124 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5125 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5126 cat >> confdefs.h
<<\EOF
5135 if test ${build} = ${host} -a ${host} = ${target} ; then
5138 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
5139 echo "configure:5140: checking for HPUX/OSF thread support" >&5
5140 if test -f /usr
/include
/dce
/cma_config.h
; then
5141 if test "$GCC" = "yes" ; then
5142 echo "$ac_t""yes" 1>&6
5143 cat >> confdefs.h
<<\EOF
5144 #define HAVE_HPUX_THREAD_SUPPORT 1
5147 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
5148 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
5149 CONFIG_INITS
="${CONFIG_INITS} hpux-thread.c"
5151 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
5154 echo "$ac_t""no" 1>&6
5158 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
5159 echo "configure:5160: checking for Solaris thread debugging library" >&5
5160 if test -f /usr
/lib
/libthread_db.so
.1 ; then
5161 echo "$ac_t""yes" 1>&6
5162 cat >> confdefs.h
<<\EOF
5163 #define HAVE_THREAD_DB_LIB 1
5166 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
5167 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
5168 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5169 echo "configure:5170: checking for dlopen in -ldl" >&5
5170 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5174 ac_save_LIBS
="$LIBS"
5176 cat > conftest.
$ac_ext <<EOF
5177 #line 5178 "configure"
5178 #include "confdefs.h"
5179 /* Override any gcc2 internal prototype to avoid an error. */
5180 /* We use char because int might match the return type of a gcc2
5181 builtin and then its argument prototype would still apply. */
5188 if { (eval echo configure
:5189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5190 eval "ac_cv_lib_$ac_lib_var=yes"
5192 echo "configure: failed program was:" >&5
5193 cat conftest.
$ac_ext >&5
5195 eval "ac_cv_lib_$ac_lib_var=no"
5198 LIBS
="$ac_save_LIBS"
5201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5202 echo "$ac_t""yes" 1>&6
5203 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5204 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5205 cat >> confdefs.h
<<EOF
5206 #define $ac_tr_lib 1
5212 echo "$ac_t""no" 1>&6
5215 if test "$GCC" = "yes" ; then
5216 # The GNU linker requires the -export-dynamic option to make
5217 # all symbols visible in the dynamic symbol table.
5218 hold_ldflags
=$LDFLAGS
5219 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
5220 echo "configure:5221: checking for the ld -export-dynamic flag" >&5
5221 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
5222 cat > conftest.
$ac_ext <<EOF
5223 #line 5224 "configure"
5224 #include "confdefs.h"
5230 if { (eval echo configure
:5231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5234 echo "configure: failed program was:" >&5
5235 cat conftest.
$ac_ext >&5
5240 LDFLAGS
=$hold_ldflags
5241 echo "$ac_t""$found" 1>&6
5242 if test $found = yes; then
5243 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
5246 # Sun randomly tweaked the prototypes in <proc_service.h>
5248 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
5249 echo "configure:5250: checking if <proc_service.h> is old" >&5
5250 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
5254 cat > conftest.
$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5258 #include <proc_service.h>
5260 (struct ps_prochandle*, psaddr_t, const void*, size_t);
5266 if { (eval echo configure
:5267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5268 gdb_cv_proc_service_is_old
=no
5270 echo "configure: failed program was:" >&5
5271 cat conftest.
$ac_ext >&5
5273 gdb_cv_proc_service_is_old
=yes
5279 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
5280 if test $gdb_cv_proc_service_is_old = yes; then
5281 cat >> confdefs.h
<<\EOF
5282 #define PROC_SERVICE_IS_OLD 1
5287 echo "$ac_t""no" 1>&6
5295 # Check whether --enable-gdbmi or --disable-gdbmi was given.
5296 if test "${enable_gdbmi+set}" = set; then
5297 enableval
="$enable_gdbmi"
5299 case "${enable_gdbmi}" in
5301 "") enable_gdbmi
=yes ;;
5303 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
5309 case ${enable_gdbmi} in
5311 if test -d "${srcdir}/mi" ; then
5312 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
5313 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
5314 CONFIG_SRCS
="${CONFIG_SRS} \$(SUBDIR_MI_SRCS)"
5315 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
5316 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
5317 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
5318 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
5323 # Check whether --enable-tui or --disable-tui was given.
5324 if test "${enable_tui+set}" = set; then
5325 enableval
="$enable_tui"
5327 case "${enable_tui}" in
5329 "") enable_tui
=yes ;;
5331 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
5337 case ${enable_tui} in
5339 cat >> confdefs.h
<<\EOF
5344 TUI_LIBRARY
=tui
/libtui.a
5354 # Check whether --enable-netrom or --disable-netrom was given.
5355 if test "${enable_netrom+set}" = set; then
5356 enableval
="$enable_netrom"
5357 case "${enableval}" in
5358 yes) enable_netrom
=yes ;;
5359 no
) enable_netrom
=no
;;
5360 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5365 if test "${enable_netrom}" = "yes"; then
5366 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
5367 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
5368 CONFIG_INITS
="${CONFIG_INITS} remote-nrom.c"
5371 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5372 if test "${enable_build_warnings+set}" = set; then
5373 enableval
="$enable_build_warnings"
5375 # not yet: -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
5376 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith"
5377 case "${enableval}" in
5379 no
) build_warnings
="-w";;
5380 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5381 build_warnings
="${build_warnings} ${t}";;
5382 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5383 build_warnings
="${t} ${build_warnings}";;
5384 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5386 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5387 echo "Setting warning flags = $build_warnings" 6>&1
5391 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5393 # Separate out the -Werror flag as some files just cannot be
5394 # compiled with it enabled.
5395 for w
in ${build_warnings}; do
5397 -Werr*) WERROR_CFLAGS
=-Werror ;;
5398 *) WARN_CFLAGS
="${WARN_CFLAGS} $w"
5414 # Check whether --with-mmalloc or --without-mmalloc was given.
5415 if test "${with_mmalloc+set}" = set; then
5416 withval
="$with_mmalloc"
5417 case "${withval}" in
5418 yes) want_mmalloc
=true
;;
5419 no
) want_mmalloc
=false
;;
5420 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5426 if test x
$want_mmalloc = xtrue
; then
5427 cat >> confdefs.h
<<\EOF
5428 #define USE_MMALLOC 1
5431 cat >> confdefs.h
<<\EOF
5432 #define MMCHECK_FORCE 1
5435 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
5436 MMALLOC
='../mmalloc/libmmalloc.a'
5440 # In the Cygwin environment, we need some additional flags.
5441 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5442 echo "configure:5443: checking for cygwin" >&5
5443 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5444 echo $ac_n "(cached) $ac_c" 1>&6
5446 cat > conftest.
$ac_ext <<EOF
5447 #line 5448 "configure"
5448 #include "confdefs.h"
5450 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5455 egrep "lose" >/dev
/null
2>&1; then
5457 gdb_cv_os_cygwin
=yes
5466 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5468 DLLTOOL
=${DLLTOOL-dlltool}
5469 WINDRES
=${WINDRES-windres}
5473 if test x
$gdb_host = xgo32
; then
5476 if test x
$gdb_cv_os_cygwin = xyes
; then
5477 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5480 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5481 echo "configure:5482: checking for tgetent in -lncurses" >&5
5482 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5486 ac_save_LIBS
="$LIBS"
5487 LIBS
="-lncurses $LIBS"
5488 cat > conftest.
$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 /* Override any gcc2 internal prototype to avoid an error. */
5492 /* We use char because int might match the return type of a gcc2
5493 builtin and then its argument prototype would still apply. */
5500 if { (eval echo configure
:5501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5502 eval "ac_cv_lib_$ac_lib_var=yes"
5504 echo "configure: failed program was:" >&5
5505 cat conftest.
$ac_ext >&5
5507 eval "ac_cv_lib_$ac_lib_var=no"
5510 LIBS
="$ac_save_LIBS"
5513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5514 echo "$ac_t""yes" 1>&6
5517 echo "$ac_t""no" 1>&6
5518 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
5519 echo "configure:5520: checking for tgetent in -lHcurses" >&5
5520 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
5521 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5524 ac_save_LIBS
="$LIBS"
5525 LIBS
="-lHcurses $LIBS"
5526 cat > conftest.
$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5529 /* Override any gcc2 internal prototype to avoid an error. */
5530 /* We use char because int might match the return type of a gcc2
5531 builtin and then its argument prototype would still apply. */
5538 if { (eval echo configure
:5539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5540 eval "ac_cv_lib_$ac_lib_var=yes"
5542 echo "configure: failed program was:" >&5
5543 cat conftest.
$ac_ext >&5
5545 eval "ac_cv_lib_$ac_lib_var=no"
5548 LIBS
="$ac_save_LIBS"
5551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5552 echo "$ac_t""yes" 1>&6
5555 echo "$ac_t""no" 1>&6
5556 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5557 echo "configure:5558: checking for tgetent in -ltermlib" >&5
5558 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
5559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5562 ac_save_LIBS
="$LIBS"
5563 LIBS
="-ltermlib $LIBS"
5564 cat > conftest.
$ac_ext <<EOF
5565 #line 5566 "configure"
5566 #include "confdefs.h"
5567 /* Override any gcc2 internal prototype to avoid an error. */
5568 /* We use char because int might match the return type of a gcc2
5569 builtin and then its argument prototype would still apply. */
5576 if { (eval echo configure
:5577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5578 eval "ac_cv_lib_$ac_lib_var=yes"
5580 echo "configure: failed program was:" >&5
5581 cat conftest.
$ac_ext >&5
5583 eval "ac_cv_lib_$ac_lib_var=no"
5586 LIBS
="$ac_save_LIBS"
5589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5590 echo "$ac_t""yes" 1>&6
5593 echo "$ac_t""no" 1>&6
5594 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5595 echo "configure:5596: checking for tgetent in -ltermcap" >&5
5596 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
5597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5598 echo $ac_n "(cached) $ac_c" 1>&6
5600 ac_save_LIBS
="$LIBS"
5601 LIBS
="-ltermcap $LIBS"
5602 cat > conftest.
$ac_ext <<EOF
5603 #line 5604 "configure"
5604 #include "confdefs.h"
5605 /* Override any gcc2 internal prototype to avoid an error. */
5606 /* We use char because int might match the return type of a gcc2
5607 builtin and then its argument prototype would still apply. */
5614 if { (eval echo configure
:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5616 eval "ac_cv_lib_$ac_lib_var=yes"
5618 echo "configure: failed program was:" >&5
5619 cat conftest.
$ac_ext >&5
5621 eval "ac_cv_lib_$ac_lib_var=no"
5624 LIBS
="$ac_save_LIBS"
5627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5628 echo "$ac_t""yes" 1>&6
5631 echo "$ac_t""no" 1>&6
5632 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5633 echo "configure:5634: checking for tgetent in -lcurses" >&5
5634 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
5635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5636 echo $ac_n "(cached) $ac_c" 1>&6
5638 ac_save_LIBS
="$LIBS"
5639 LIBS
="-lcurses $LIBS"
5640 cat > conftest.
$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5643 /* Override any gcc2 internal prototype to avoid an error. */
5644 /* We use char because int might match the return type of a gcc2
5645 builtin and then its argument prototype would still apply. */
5652 if { (eval echo configure
:5653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5654 eval "ac_cv_lib_$ac_lib_var=yes"
5656 echo "configure: failed program was:" >&5
5657 cat conftest.
$ac_ext >&5
5659 eval "ac_cv_lib_$ac_lib_var=no"
5662 LIBS
="$ac_save_LIBS"
5665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5666 echo "$ac_t""yes" 1>&6
5669 echo "$ac_t""no" 1>&6
5670 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5671 echo "configure:5672: checking for tgetent in -lterminfo" >&5
5672 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
5673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5674 echo $ac_n "(cached) $ac_c" 1>&6
5676 ac_save_LIBS
="$LIBS"
5677 LIBS
="-lterminfo $LIBS"
5678 cat > conftest.
$ac_ext <<EOF
5679 #line 5680 "configure"
5680 #include "confdefs.h"
5681 /* Override any gcc2 internal prototype to avoid an error. */
5682 /* We use char because int might match the return type of a gcc2
5683 builtin and then its argument prototype would still apply. */
5690 if { (eval echo configure
:5691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5692 eval "ac_cv_lib_$ac_lib_var=yes"
5694 echo "configure: failed program was:" >&5
5695 cat conftest.
$ac_ext >&5
5697 eval "ac_cv_lib_$ac_lib_var=no"
5700 LIBS
="$ac_save_LIBS"
5703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5704 echo "$ac_t""yes" 1>&6
5707 echo "$ac_t""no" 1>&6
5721 if test "x$TERM_LIB" = x
5723 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
5729 # libreadline needs libuser32.a in a cygwin environment
5731 if test x
$gdb_cv_os_cygwin = xyes
; then
5732 WIN32LIBS
="-luser32"
5734 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
5740 LIBGUI
="../libgui/src/libgui.a"
5741 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
5745 # Check whether --with-cpu or --without-cpu was given.
5746 if test "${with_cpu+set}" = set; then
5749 powerpc-
* | powerpcle-
* )
5750 ## It would be nice to keep this table in sync with the one in
5752 case "${with_cpu}" in
5753 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
5755 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
5757 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
5758 ## These are all RS6000 variants, as far as GDB is concerned.
5768 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
5774 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
5777 cat >> confdefs.h
<<EOF
5778 #define TARGET_CPU_DEFAULT "${with_cpu}"
5788 # Check whether --enable-gdbtk or --disable-gdbtk was given.
5789 if test "${enable_gdbtk+set}" = set; then
5790 enableval
="$enable_gdbtk"
5791 case "${enableval}" in
5795 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5798 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
5806 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
5810 # Default is on for everything but go32 and Cygwin
5828 if test "${enable_gdbtk}" = "yes"; then
5832 # Ok, lets find the tcl configuration
5833 # First, look for one uninstalled.
5834 # the alternative search directory is invoked by --with-tclconfig
5837 if test x
"${no_tcl}" = x
; then
5838 # we reset no_tcl in case something fails here
5840 # Check whether --with-tclconfig or --without-tclconfig was given.
5841 if test "${with_tclconfig+set}" = set; then
5842 withval
="$with_tclconfig"
5843 with_tclconfig
=${withval}
5846 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
5847 echo "configure:5848: checking for Tcl configuration" >&5
5848 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5853 # First check to see if --with-tclconfig was specified.
5854 if test x
"${with_tclconfig}" != x
; then
5855 if test -f "${with_tclconfig}/tclConfig.sh" ; then
5856 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
5858 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
5862 # then check for a private Tcl installation
5863 if test x
"${ac_cv_c_tclconfig}" = x
; then
5866 `ls -dr ../tcl[7-9]* 2>/dev/null` \
5868 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
5870 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
5871 if test -f "$i/${configdir}/tclConfig.sh" ; then
5872 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5877 # check in a few common install locations
5878 if test x
"${ac_cv_c_tclconfig}" = x
; then
5879 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5880 if test -f "$i/tclConfig.sh" ; then
5881 ac_cv_c_tclconfig
=`(cd $i; pwd)`
5886 # check in a few other private locations
5887 if test x
"${ac_cv_c_tclconfig}" = x
; then
5890 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
5891 if test -f "$i/${configdir}/tclConfig.sh" ; then
5892 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
5900 if test x
"${ac_cv_c_tclconfig}" = x
; then
5901 TCLCONFIG
="# no Tcl configs found"
5902 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
5905 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
5906 echo "$ac_t""found $TCLCONFIG" 1>&6
5910 if test -z "${no_tcl}"; then
5940 # Ok, lets find the tk configuration
5941 # First, look for one uninstalled.
5942 # the alternative search directory is invoked by --with-tkconfig
5945 if test x
"${no_tk}" = x
; then
5946 # we reset no_tk in case something fails here
5948 # Check whether --with-tkconfig or --without-tkconfig was given.
5949 if test "${with_tkconfig+set}" = set; then
5950 withval
="$with_tkconfig"
5951 with_tkconfig
=${withval}
5954 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
5955 echo "configure:5956: checking for Tk configuration" >&5
5956 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5961 # First check to see if --with-tkconfig was specified.
5962 if test x
"${with_tkconfig}" != x
; then
5963 if test -f "${with_tkconfig}/tkConfig.sh" ; then
5964 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
5966 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
5970 # then check for a private Tk library
5971 if test x
"${ac_cv_c_tkconfig}" = x
; then
5974 `ls -dr ../tk[4-9]* 2>/dev/null` \
5976 `ls -dr ../../tk[4-9]* 2>/dev/null` \
5978 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
5979 if test -f "$i/${configdir}/tkConfig.sh" ; then
5980 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
5985 # check in a few common install locations
5986 if test x
"${ac_cv_c_tkconfig}" = x
; then
5987 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
5988 if test -f "$i/tkConfig.sh" ; then
5989 ac_cv_c_tkconfig
=`(cd $i; pwd)`
5994 # check in a few other private locations
5995 if test x
"${ac_cv_c_tkconfig}" = x
; then
5998 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
5999 if test -f "$i/${configdir}/tkConfig.sh" ; then
6000 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
6008 if test x
"${ac_cv_c_tkconfig}" = x
; then
6009 TKCONFIG
="# no Tk configs found"
6010 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
6013 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
6014 echo "$ac_t""found $TKCONFIG" 1>&6
6020 # If $no_tk is nonempty, then we can't do Tk, and there is no
6021 # point to doing Tcl.
6022 if test -z "${no_tk}"; then
6024 if test -f "$TKCONFIG" ; then
6042 # Ok, lets find the tcl source trees so we can use the headers
6043 # Warning: transition of version 9 to 10 will break this algorithm
6044 # because 10 sorts before 9. We also look for just tcl. We have to
6045 # be careful that we don't match stuff like tclX by accident.
6046 # the alternative search directory is involked by --with-tclinclude
6050 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
6051 echo "configure:6052: checking for Tcl private headers. dir=${configdir}" >&5
6052 # Check whether --with-tclinclude or --without-tclinclude was given.
6053 if test "${with_tclinclude+set}" = set; then
6054 withval
="$with_tclinclude"
6055 with_tclinclude
=${withval}
6058 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
6059 echo $ac_n "(cached) $ac_c" 1>&6
6062 # first check to see if --with-tclinclude was specified
6063 if test x
"${with_tclinclude}" != x
; then
6064 if test -f ${with_tclinclude}/tclInt.h
; then
6065 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
6066 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
6067 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
6069 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6073 # next check if it came with Tcl configuration file
6074 if test x
"${ac_cv_c_tclconfig}" = x
; then
6075 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
6076 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
6080 # next check in private source directory
6082 # since ls returns lowest version numbers first, reverse its output
6083 if test x
"${ac_cv_c_tclh}" = x
; then
6086 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
6087 ${srcdir}/..
/..
/tcl \
6088 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
6089 ${srcdir}/..
/..
/..
/tcl \
6090 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
6091 if test -f $i/generic
/tclInt.h
; then
6092 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
6097 # finally check in a few common install locations
6099 # since ls returns lowest version numbers first, reverse its output
6100 if test x
"${ac_cv_c_tclh}" = x
; then
6102 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
6103 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
6104 /usr
/local
/src
/tcl \
6105 /usr
/local
/lib
/tcl \
6106 ${prefix}/include
; do
6107 if test -f $i/generic
/tclInt.h
; then
6108 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
6113 # see if one is installed
6114 if test x
"${ac_cv_c_tclh}" = x
; then
6115 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
6116 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
6117 echo "configure:6118: checking for tclInt.h" >&5
6118 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6119 echo $ac_n "(cached) $ac_c" 1>&6
6121 cat > conftest.
$ac_ext <<EOF
6122 #line 6123 "configure"
6123 #include "confdefs.h"
6126 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6127 { (eval echo configure
:6128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6128 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6129 if test -z "$ac_err"; then
6131 eval "ac_cv_header_$ac_safe=yes"
6134 echo "configure: failed program was:" >&5
6135 cat conftest.
$ac_ext >&5
6137 eval "ac_cv_header_$ac_safe=no"
6141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6142 echo "$ac_t""yes" 1>&6
6143 ac_cv_c_tclh
=installed
6145 echo "$ac_t""no" 1>&6
6153 if test x
"${ac_cv_c_tclh}" = x
; then
6154 TCLHDIR
="# no Tcl private headers found"
6155 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
6157 if test x
"${ac_cv_c_tclh}" != x
; then
6159 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
6160 echo "$ac_t""is installed" 1>&6
6163 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
6164 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
6165 TCLHDIR
="-I${ac_cv_c_tclh}"
6173 # Ok, lets find the tk source trees so we can use the headers
6174 # If the directory (presumably symlink) named "tk" exists, use that one
6175 # in preference to any others. Same logic is used when choosing library
6176 # and again with Tcl. The search order is the best place to look first, then in
6177 # decreasing significance. The loop breaks if the trigger file is found.
6178 # Note the gross little conversion here of srcdir by cd'ing to the found
6179 # directory. This converts the path from a relative to an absolute, so
6180 # recursive cache variables for the path will work right. We check all
6181 # the possible paths in one loop rather than many seperate loops to speed
6183 # the alternative search directory is involked by --with-tkinclude
6186 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
6187 echo "configure:6188: checking for Tk private headers" >&5
6188 # Check whether --with-tkinclude or --without-tkinclude was given.
6189 if test "${with_tkinclude+set}" = set; then
6190 withval
="$with_tkinclude"
6191 with_tkinclude
=${withval}
6194 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6198 # first check to see if --with-tkinclude was specified
6199 if test x
"${with_tkinclude}" != x
; then
6200 if test -f ${with_tkinclude}/tk.h
; then
6201 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
6202 elif test -f ${with_tkinclude}/generic
/tk.h
; then
6203 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
6205 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6209 # next check if it came with Tk configuration file
6210 if test x
"${ac_cv_c_tkconfig}" = x
; then
6211 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
6212 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
6216 # next check in private source directory
6218 # since ls returns lowest version numbers first, reverse its output
6219 if test x
"${ac_cv_c_tkh}" = x
; then
6222 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
6223 ${srcdir}/..
/..
/tk \
6224 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
6225 ${srcdir}/..
/..
/..
/tk \
6226 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
6227 if test -f $i/generic
/tk.h
; then
6228 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6233 # finally check in a few common install locations
6235 # since ls returns lowest version numbers first, reverse its output
6236 if test x
"${ac_cv_c_tkh}" = x
; then
6238 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
6239 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
6242 ${prefix}/include
; do
6243 if test -f $i/generic
/tk.h
; then
6244 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6249 # see if one is installed
6250 if test x
"${ac_cv_c_tkh}" = x
; then
6251 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
6252 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
6253 echo "configure:6254: checking for tk.h" >&5
6254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6255 echo $ac_n "(cached) $ac_c" 1>&6
6257 cat > conftest.
$ac_ext <<EOF
6258 #line 6259 "configure"
6259 #include "confdefs.h"
6262 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6263 { (eval echo configure
:6264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6264 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6265 if test -z "$ac_err"; then
6267 eval "ac_cv_header_$ac_safe=yes"
6270 echo "configure: failed program was:" >&5
6271 cat conftest.
$ac_ext >&5
6273 eval "ac_cv_header_$ac_safe=no"
6277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6278 echo "$ac_t""yes" 1>&6
6279 ac_cv_c_tkh
=installed
6281 echo "$ac_t""no" 1>&6
6289 if test x
"${ac_cv_c_tkh}" != x
; then
6291 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
6292 echo "$ac_t""is installed" 1>&6
6295 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
6296 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
6297 TKHDIR
="-I${ac_cv_c_tkh}"
6300 TKHDIR
="# no Tk directory found"
6301 echo "configure: warning: Can't find Tk private headers" 1>&2
6308 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6309 echo "configure:6310: checking for Itcl private headers. srcdir=${srcdir}" >&5
6310 if test x
"${ac_cv_c_itclh}" = x
; then
6311 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
6312 if test -f $i/generic
/itcl.h
; then
6313 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
6318 if test x
"${ac_cv_c_itclh}" = x
; then
6319 ITCLHDIR
="# no Itcl private headers found"
6320 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
6322 if test x
"${ac_cv_c_itclh}" != x
; then
6323 ITCLHDIR
="-I${ac_cv_c_itclh}"
6325 # should always be here
6326 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
6331 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6332 echo "configure:6333: checking for Itk private headers. srcdir=${srcdir}" >&5
6333 if test x
"${ac_cv_c_itkh}" = x
; then
6334 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
6335 if test -f $i/generic
/itk.h
; then
6336 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
6341 if test x
"${ac_cv_c_itkh}" = x
; then
6342 ITKHDIR
="# no Itk private headers found"
6343 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
6345 if test x
"${ac_cv_c_itkh}" != x
; then
6346 ITKHDIR
="-I${ac_cv_c_itkh}"
6348 # should always be here
6349 # ITKLIB="../itcl/itk/unix/libitk.a"
6354 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6355 echo "configure:6356: checking for Tix private headers. srcdir=${srcdir}" >&5
6356 if test x
"${ac_cv_c_tixh}" = x
; then
6357 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
6358 if test -f $i/generic
/tix.h
; then
6359 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
6364 if test x
"${ac_cv_c_tixh}" = x
; then
6365 TIXHDIR
="# no Tix private headers found"
6366 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
6368 if test x
"${ac_cv_c_tixh}" != x
; then
6369 TIXHDIR
="-I${ac_cv_c_tixh}"
6374 # now look for Itcl library stuff
6378 # Ok, lets find the itcl configuration
6379 # First, look for one uninstalled.
6380 # the alternative search directory is invoked by --with-itclconfig
6383 if test x
"${no_itcl}" = x
; then
6384 # we reset no_itcl in case something fails here
6386 # Check whether --with-itclconfig or --without-itclconfig was given.
6387 if test "${with_itclconfig+set}" = set; then
6388 withval
="$with_itclconfig"
6389 with_itclconfig
=${withval}
6392 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
6393 echo "configure:6394: checking for Itcl configuration" >&5
6394 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6399 # First check to see if --with-itclconfig was specified.
6400 if test x
"${with_itclconfig}" != x
; then
6401 if test -f "${with_itclconfig}/itclConfig.sh" ; then
6402 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
6404 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
6408 # then check for a private Itcl library
6409 if test x
"${ac_cv_c_itclconfig}" = x
; then
6412 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
6414 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
6416 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
6417 if test -f "$i/itclConfig.sh" ; then
6418 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6423 # check in a few common install locations
6424 if test x
"${ac_cv_c_itclconfig}" = x
; then
6425 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6426 if test -f "$i/itclConfig.sh" ; then
6427 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6432 # check in a few other private locations
6433 if test x
"${ac_cv_c_itclconfig}" = x
; then
6435 ${srcdir}/..
/itcl
/itcl \
6436 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
6437 if test -f "$i/itclConfig.sh" ; then
6438 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6446 if test x
"${ac_cv_c_itclconfig}" = x
; then
6447 ITCLCONFIG
="# no Itcl configs found"
6448 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
6451 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
6452 echo "$ac_t""found $ITCLCONFIG" 1>&6
6456 if test -z "${no_itcl}"; then
6458 if test -f "$ITCLCONFIG" ; then
6474 itcldir
=..
/itcl
/itcl
/win
/
6477 itcldir
=..
/itcl
/itcl
/unix
/
6482 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
6483 ITCL_DEPS
="${itcldir}${ITCL_LIB_FILE}"
6487 # now look for Itk library stuff
6490 # Ok, lets find the itk configuration
6491 # First, look for one uninstalled.
6492 # the alternative search directory is invoked by --with-itkconfig
6495 if test x
"${no_itk}" = x
; then
6496 # we reset no_itk in case something fails here
6498 # Check whether --with-itkconfig or --without-itkconfig was given.
6499 if test "${with_itkconfig+set}" = set; then
6500 withval
="$with_itkconfig"
6501 with_itkconfig
=${withval}
6504 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
6505 echo "configure:6506: checking for Itk configuration" >&5
6506 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
6507 echo $ac_n "(cached) $ac_c" 1>&6
6511 # First check to see if --with-itkconfig was specified.
6512 if test x
"${with_itkconfig}" != x
; then
6513 if test -f "${with_itkconfig}/itkConfig.sh" ; then
6514 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
6516 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
6520 # then check for a private Itk library
6521 if test x
"${ac_cv_c_itkconfig}" = x
; then
6524 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
6526 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
6528 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
6529 if test -f "$i/itkConfig.sh" ; then
6530 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6535 # check in a few common install locations
6536 if test x
"${ac_cv_c_itkconfig}" = x
; then
6537 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6538 if test -f "$i/itkConfig.sh" ; then
6539 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6544 # check in a few other private locations
6545 if test x
"${ac_cv_c_itkconfig}" = x
; then
6547 ${srcdir}/..
/itcl
/itk \
6548 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
6549 if test -f "$i/itkConfig.sh" ; then
6550 ac_cv_c_itkconfig
=`(cd $i; pwd)`
6558 if test x
"${ac_cv_c_itkconfig}" = x
; then
6559 ITKCONFIG
="# no Itk configs found"
6560 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
6563 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
6564 echo "$ac_t""found $ITKCONFIG" 1>&6
6569 if test -z "${no_itcl}"; then
6571 if test -f "$ITKCONFIG" ; then
6588 itkdir
=..
/itcl
/itk
/win
/
6591 itkdir
=..
/itcl
/itk
/unix
/
6595 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
6596 ITK_DEPS
="${itkdir}${ITK_LIB_FILE}"
6599 # now look for Tix library stuff
6602 # Ok, lets find the tix configuration
6603 # First, look for one uninstalled.
6604 # the alternative search directory is invoked by --with-itkconfig
6607 if test x
"${no_tix}" = x
; then
6608 # we reset no_tix in case something fails here
6610 # Check whether --with-tixconfig or --without-tixconfig was given.
6611 if test "${with_tixconfig+set}" = set; then
6612 withval
="$with_tixconfig"
6613 with_tixconfig
=${withval}
6616 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
6617 echo "configure:6618: checking for Tix configuration" >&5
6618 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
6619 echo $ac_n "(cached) $ac_c" 1>&6
6623 # First check to see if --with-tixconfig was specified.
6624 if test x
"${with_tixconfig}" != x
; then
6625 if test -f "${with_tixconfig}/tixConfig.sh" ; then
6626 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
6628 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
6632 # then check for a private Tix library
6633 if test x
"${ac_cv_c_tixconfig}" = x
; then
6636 `ls -dr ../tix 2>/dev/null` \
6638 `ls -dr ../../tix 2>/dev/null` \
6640 `ls -dr ../../../tix 2>/dev/null` ; do
6641 echo "**** Looking at $i - with ${configdir}"
6642 if test -f "$i/tixConfig.sh" ; then
6643 ac_cv_c_tixconfig
=`(cd $i; pwd)`
6648 # check in a few common install locations
6649 if test x
"${ac_cv_c_tixconfig}" = x
; then
6650 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6651 echo "**** Looking at $i"
6652 if test -f "$i/tixConfig.sh" ; then
6653 ac_cv_c_tixconfig
=`(cd $i; pwd)`
6658 # check in a few other private locations
6659 echo "**** Other private locations"
6660 if test x
"${ac_cv_c_tixconfig}" = x
; then
6663 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
6664 echo "**** Looking at $i - with ${configdir}"
6665 if test -f "$i/${configdir}/tixConfig.sh" ; then
6666 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
6674 if test x
"${ac_cv_c_tixconfig}" = x
; then
6675 TIXCONFIG
="# no Tix configs found"
6676 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
6679 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
6680 echo "$ac_t""found $TIXCONFIG" 1>&6
6685 if test -z "${no_tix}"; then
6687 if test -f "$TIXCONFIG" ; then
6698 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
6699 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
6703 ENABLE_CFLAGS
="$ENABLE_CFLAGS -DGDBTK"
6704 # Tcl/Tk 8.1 require -fwritable strings. I don't
6705 # know whether 8.2 will or not, but I bet it will.
6706 # I don't have to worry about 7.x since we don't support it.
6708 if test "$GCC" = "yes"; then
6709 if test "$TCL_VERSION" != "8.0" ; then
6710 GDBTK_CFLAGS
="-fwritable-strings"
6714 # Include some libraries that Tcl and Tk want.
6715 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
6716 CONFIG_DEPS
='$(LIBGUI) $(ITCL_DEPS) $(ITK_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
6717 # Yes, the ordering seems wrong here. But it isn't.
6718 # TK_LIBS is the list of libraries that need to be linked
6719 # after Tcl/Tk. Note that this isn't put into LIBS. If it
6720 # were in LIBS then any link tests after this point would
6721 # try to include things like `$(LIBGUI)', which wouldn't work.
6722 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
6723 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"
6724 CONFIG_OBS
="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-varobj.o gdbtk-wrapper.o"
6725 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"
6726 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
6727 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
6729 if test x
$gdb_cv_os_cygwin = xyes
; then
6730 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
6731 WIN32LDAPP
="-Wl,--subsystem,console"
6732 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
6751 # If we find X, set shell vars x_includes and x_libraries to the
6752 # paths, otherwise set no_x=yes.
6753 # Uses ac_ vars as temps to allow command line to override cache and checks.
6754 # --without-x overrides everything else, but does not touch the cache.
6755 echo $ac_n "checking for X""... $ac_c" 1>&6
6756 echo "configure:6757: checking for X" >&5
6758 # Check whether --with-x or --without-x was given.
6759 if test "${with_x+set}" = set; then
6764 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6765 if test "x$with_x" = xno
; then
6766 # The user explicitly disabled X.
6769 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6770 # Both variables are already set.
6773 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6774 echo $ac_n "(cached) $ac_c" 1>&6
6776 # One or both of the vars are not set, and there is no cached value.
6777 ac_x_includes
=NO ac_x_libraries
=NO
6779 if mkdir conftestdir
; then
6781 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6782 cat > Imakefile
<<'EOF'
6784 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6786 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6788 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6789 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6790 for ac_extension
in a so sl
; do
6791 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6792 test -f $ac_im_libdir/libX11.
$ac_extension; then
6793 ac_im_usrlibdir
=$ac_im_libdir; break
6796 # Screen out bogus values from the imake configuration. They are
6797 # bogus both because they are the default anyway, and because
6798 # using them would break gcc on systems where it needs fixed includes.
6799 case "$ac_im_incroot" in
6801 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
6803 case "$ac_im_usrlibdir" in
6805 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
6812 if test "$ac_x_includes" = NO
; then
6813 # Guess where to find include files, by looking for this one X11 .h file.
6814 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
6816 # First, try using that file with no special directory specified.
6817 cat > conftest.
$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 #include <$x_direct_test_include>
6822 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6823 { (eval echo configure
:6824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6824 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6825 if test -z "$ac_err"; then
6827 # We can compile using X headers with no special include directory.
6831 echo "configure: failed program was:" >&5
6832 cat conftest.
$ac_ext >&5
6834 # Look for the header file in a standard set of common directories.
6835 # Check X11 before X11Rn because it is often a symlink to the current release.
6838 /usr
/X11R
6/include \
6839 /usr
/X11R
5/include \
6840 /usr
/X11R
4/include \
6843 /usr
/include
/X11R6 \
6844 /usr
/include
/X11R5 \
6845 /usr
/include
/X11R4 \
6847 /usr
/local
/X11
/include \
6848 /usr
/local
/X11R
6/include \
6849 /usr
/local
/X11R
5/include \
6850 /usr
/local
/X11R
4/include \
6852 /usr
/local
/include
/X11 \
6853 /usr
/local
/include
/X11R6 \
6854 /usr
/local
/include
/X11R5 \
6855 /usr
/local
/include
/X11R4 \
6859 /usr
/XFree86
/include
/X11 \
6862 /usr
/local
/include \
6863 /usr
/unsupported
/include \
6864 /usr
/athena
/include \
6865 /usr
/local
/x11r
5/include \
6866 /usr
/lpp
/Xamples
/include \
6868 /usr
/openwin
/include \
6869 /usr
/openwin
/share
/include \
6872 if test -r "$ac_dir/$x_direct_test_include"; then
6873 ac_x_includes
=$ac_dir
6879 fi # $ac_x_includes = NO
6881 if test "$ac_x_libraries" = NO
; then
6882 # Check for the libraries.
6884 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
6885 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
6887 # See if we find them without any special options.
6888 # Don't add to $LIBS permanently.
6889 ac_save_LIBS
="$LIBS"
6890 LIBS
="-l$x_direct_test_library $LIBS"
6891 cat > conftest.
$ac_ext <<EOF
6892 #line 6893 "configure"
6893 #include "confdefs.h"
6896 ${x_direct_test_function}()
6899 if { (eval echo configure
:6900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6901 LIBS
="$ac_save_LIBS"
6902 # We can link X programs with no special library path.
6905 echo "configure: failed program was:" >&5
6906 cat conftest.
$ac_ext >&5
6908 LIBS
="$ac_save_LIBS"
6909 # First see if replacing the include by lib works.
6910 # Check X11 before X11Rn because it is often a symlink to the current release.
6911 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
6922 /usr
/local
/X11
/lib \
6923 /usr
/local
/X11R
6/lib \
6924 /usr
/local
/X11R
5/lib \
6925 /usr
/local
/X11R
4/lib \
6927 /usr
/local
/lib
/X11 \
6928 /usr
/local
/lib
/X11R6 \
6929 /usr
/local
/lib
/X11R5 \
6930 /usr
/local
/lib
/X11R4 \
6934 /usr
/XFree86
/lib
/X11 \
6938 /usr
/unsupported
/lib \
6940 /usr
/local
/x11r
5/lib \
6941 /usr
/lpp
/Xamples
/lib \
6945 /usr
/openwin
/share
/lib \
6948 for ac_extension
in a so sl
; do
6949 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
6950 ac_x_libraries
=$ac_dir
6957 fi # $ac_x_libraries = NO
6959 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
6960 # Didn't find X anywhere. Cache the known absence of X.
6961 ac_cv_have_x
="have_x=no"
6963 # Record where we found X for the cache.
6964 ac_cv_have_x
="have_x=yes \
6965 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6969 eval "$ac_cv_have_x"
6972 if test "$have_x" != yes; then
6973 echo "$ac_t""$have_x" 1>&6
6976 # If each of the values was on the command line, it overrides each guess.
6977 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6978 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6979 # Update the cache value to reflect the command line values.
6980 ac_cv_have_x
="have_x=yes \
6981 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6982 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6987 # Unlike the sim directory, whether a simulator is linked is controlled by
6988 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
6989 # This code just checks for a few cases where we'd like to ignore those
6990 # definitions, even when they're present in the '.mt' file. These cases
6991 # are when --disable-sim is specified, or if the simulator directory is
6992 # not part of the soruce tree.
6994 # Check whether --enable-sim or --disable-sim was given.
6995 if test "${enable_sim+set}" = set; then
6996 enableval
="$enable_sim"
6997 echo "enable_sim = $enable_sim";
6998 echo "enableval = ${enableval}";
6999 case "${enableval}" in
7000 yes) ignore_sim
=false
;;
7001 no
) ignore_sim
=true
;;
7002 *) ignore_sim
=false
;;
7009 if test ! -d "${srcdir}/../sim"; then
7013 if test "${ignore_sim}" = "true"; then
7015 IGNORE_SIM_OBS
="SIM_OBS="
7019 cat >> confdefs.h
<<\EOF
7036 # Begin stuff to support --enable-shared
7037 # Check whether --enable-shared or --disable-shared was given.
7038 if test "${enable_shared+set}" = set; then
7039 enableval
="$enable_shared"
7040 case "${enableval}" in
7049 # If we have shared libraries, try to set rpath reasonably.
7050 if test "${shared}" = "true"; then
7053 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
7055 *-*-irix5* |
*-*-irix6*)
7056 HLDFLAGS
='-Wl,-rpath,$(libdir)'
7060 *-*-linux* |
*-pc-linux-gnu)
7061 HLDFLAGS
='-Wl,-rpath,$(libdir)'
7064 HLDFLAGS
='-R $(libdir)'
7067 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;'
7072 # On SunOS, if the linker supports the -rpath option, use it to
7073 # prevent ../bfd and ../opcodes from being included in the run time
7077 echo 'main () { }' > conftest.c
7078 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
7079 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
7081 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
7083 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
7085 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
7087 elif test "${shared}" = "true"; then
7088 HLDFLAGS
='-Wl,-rpath=$(libdir)'
7090 HLDFLAGS
='-Wl,-rpath='
7092 rm -f conftest.t conftest.c conftest
7097 # End stuff to support --enable-shared
7099 # target_subdir is used by the testsuite to find the target libraries.
7101 if test "${host}" != "${target}"; then
7102 target_subdir
="${target_alias}/"
7107 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
7108 if test ! -f ${host_makefile_frag}; then
7109 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
7111 frags
="$frags $host_makefile_frag"
7113 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
7114 if test ! -f ${target_makefile_frag}; then
7115 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
7117 frags
="$frags $target_makefile_frag"
7124 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7125 ' ${host_makefile_frag}`
7127 targetfile
=`sed -n '
7128 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7129 ' ${target_makefile_frag}`
7131 # these really aren't orthogonal true/false values of the same condition,
7132 # but shells are slow enough that I like to reuse the test conditions
7134 if test "${target}" = "${host}"; then
7135 nativefile
=`sed -n '
7136 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7137 ' ${host_makefile_frag}`
7139 # GDBserver is only useful in a "native" enviroment
7140 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
7144 SUBDIRS
="doc testsuite nlm"
7145 if test "${enable_multi_ice}" = "yes"; then
7146 SUBDIRS
="${SUBDIRS} multi-ice"
7151 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
7152 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
7153 # corresponding links. But we have to remove the xm.h files and tm.h
7154 # files anyway, e.g. when switching from "configure host" to
7160 if test "${hostfile}" != ""; then
7161 files
="${files} config/${gdb_host_cpu}/${hostfile}"
7162 links
="${links} xm.h"
7165 if test "${targetfile}" != ""; then
7166 files
="${files} config/${gdb_target_cpu}/${targetfile}"
7167 links
="${links} tm.h"
7170 if test "${nativefile}" != ""; then
7171 files
="${files} config/${gdb_host_cpu}/${nativefile}"
7172 links
="${links} nm.h"
7174 # A cross-only configuration.
7175 files
="${files} config/nm-empty.h"
7176 links
="${links} nm.h"
7178 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7179 echo "configure:7180: checking whether ln -s works" >&5
7180 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7181 echo $ac_n "(cached) $ac_c" 1>&6
7184 if ln -s X conftestdata
2>/dev
/null
7187 ac_cv_prog_LN_S
="ln -s"
7192 LN_S
="$ac_cv_prog_LN_S"
7193 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7194 echo "$ac_t""yes" 1>&6
7196 echo "$ac_t""no" 1>&6
7199 # Make it possible to use the GUI without doing a full install
7200 if test "${enable_gdbtk}" = "yes" ; then
7201 if test "$LN_S" = "ln -s" -a ! -f gdbtcl
; then
7202 echo linking
$srcdir/gdbtk
/library to gdbtcl
7203 $LN_S $srcdir/gdbtk
/library gdbtcl
7205 echo Warning
: Unable to link
$srcdir/gdbtk
/library to gdbtcl. You will need to
do a
7206 echo " " make install before you are able to run the GUI.
7212 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7213 echo "configure:7214: checking for Cygwin environment" >&5
7214 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
7215 echo $ac_n "(cached) $ac_c" 1>&6
7217 cat > conftest.
$ac_ext <<EOF
7218 #line 7219 "configure"
7219 #include "confdefs.h"
7224 #define __CYGWIN__ __CYGWIN32__
7229 if { (eval echo configure
:7230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7233 echo "configure: failed program was:" >&5
7234 cat conftest.
$ac_ext >&5
7242 echo "$ac_t""$ac_cv_cygwin" 1>&6
7244 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
7245 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7246 echo "configure:7247: checking for mingw32 environment" >&5
7247 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
7248 echo $ac_n "(cached) $ac_c" 1>&6
7250 cat > conftest.
$ac_ext <<EOF
7251 #line 7252 "configure"
7252 #include "confdefs.h"
7258 if { (eval echo configure
:7259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7262 echo "configure: failed program was:" >&5
7263 cat conftest.
$ac_ext >&5
7271 echo "$ac_t""$ac_cv_mingw32" 1>&6
7273 test "$ac_cv_mingw32" = yes && MINGW32
=yes
7276 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7277 echo "configure:7278: checking for executable suffix" >&5
7278 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
7279 echo $ac_n "(cached) $ac_c" 1>&6
7281 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
7285 echo 'int main () { return 0; }' > conftest.
$ac_ext
7287 if { (eval echo configure
:7288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7288 for file in conftest.
*; do
7290 *.c |
*.o |
*.obj
) ;;
7291 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
7295 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7298 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
7303 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
7304 echo "$ac_t""${ac_cv_exeext}" 1>&6
7308 subdirs
="$configdirs"
7311 cat > confcache
<<\EOF
7312 # This file is a shell script that caches the results of configure
7313 # tests run on this system so they can be shared between configure
7314 # scripts and configure runs. It is not useful on other systems.
7315 # If it contains results you don't want to keep, you may remove or edit it.
7317 # By default, configure uses ./config.cache as the cache file,
7318 # creating it if it does not exist already. You can give configure
7319 # the --cache-file=FILE option to use a different cache file; that is
7320 # what configure does when it calls configure scripts in
7321 # subdirectories, so they share the cache.
7322 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7323 # config.status only pays attention to the cache file if you give it the
7324 # --recheck option to rerun configure.
7327 # The following way of writing the cache mishandles newlines in values,
7328 # but we know of no workaround that is simple, portable, and efficient.
7329 # So, don't put newlines in cache variables' values.
7330 # Ultrix sh set writes to stderr and can't be redirected directly,
7331 # and sets the high bit in the cache file unless we assign to the vars.
7333 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7335 # `set' does not quote correctly, so add quotes (double-quote substitution
7336 # turns \\\\ into \\, and sed turns \\ into \).
7338 -e "s/'/'\\\\''/g" \
7339 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7342 # `set' quotes correctly as required by POSIX, so do not add quotes.
7343 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7346 if cmp -s $cache_file confcache
; then
7349 if test -w $cache_file; then
7350 echo "updating cache $cache_file"
7351 cat confcache
> $cache_file
7353 echo "not updating unwritable cache $cache_file"
7358 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7360 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7361 # Let make expand exec_prefix.
7362 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7364 # Any assignment to VPATH causes Sun make to only execute
7365 # the first set of double-colon rules, so remove it if not needed.
7366 # If there is a colon in the path, we need to keep it.
7367 if test "x$srcdir" = x.
; then
7368 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7371 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7373 DEFS
=-DHAVE_CONFIG_H
7375 # Without the "./", some shells look in PATH for config.status.
7376 : ${CONFIG_STATUS=./config.status}
7378 echo creating
$CONFIG_STATUS
7379 rm -f $CONFIG_STATUS
7380 cat > $CONFIG_STATUS <<EOF
7382 # Generated automatically by configure.
7383 # Run this file to recreate the current configuration.
7384 # This directory was configured as follows,
7385 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7387 # $0 $ac_configure_args
7389 # Compiler output produced by configure, useful for debugging
7390 # configure, is in ./config.log if it exists.
7392 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7395 case "\$ac_option" in
7396 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7397 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7398 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7399 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7400 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7402 -help | --help | --hel | --he | --h)
7403 echo "\$ac_cs_usage"; exit 0 ;;
7404 *) echo "\$ac_cs_usage"; exit 1 ;;
7408 ac_given_srcdir=$srcdir
7409 ac_given_INSTALL="$INSTALL"
7411 trap 'rm -fr `echo "Makefile tui/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7413 cat >> $CONFIG_STATUS <<EOF
7415 # Protect against being on the right side of a sed subst in config.status.
7416 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7417 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7421 s%@CFLAGS@%$CFLAGS%g
7422 s%@CPPFLAGS@%$CPPFLAGS%g
7423 s%@CXXFLAGS@%$CXXFLAGS%g
7424 s%@FFLAGS@%$FFLAGS%g
7426 s%@LDFLAGS@%$LDFLAGS%g
7428 s%@exec_prefix@%$exec_prefix%g
7429 s%@prefix@%$prefix%g
7430 s%@program_transform_name@%$program_transform_name%g
7431 s%@bindir@%$bindir%g
7432 s%@sbindir@%$sbindir%g
7433 s%@libexecdir@%$libexecdir%g
7434 s%@datadir@%$datadir%g
7435 s%@sysconfdir@%$sysconfdir%g
7436 s%@sharedstatedir@%$sharedstatedir%g
7437 s%@localstatedir@%$localstatedir%g
7438 s%@libdir@%$libdir%g
7439 s%@includedir@%$includedir%g
7440 s%@oldincludedir@%$oldincludedir%g
7441 s%@infodir@%$infodir%g
7442 s%@mandir@%$mandir%g
7446 s%@host_alias@%$host_alias%g
7447 s%@host_cpu@%$host_cpu%g
7448 s%@host_vendor@%$host_vendor%g
7449 s%@host_os@%$host_os%g
7450 s%@target@%$target%g
7451 s%@target_alias@%$target_alias%g
7452 s%@target_cpu@%$target_cpu%g
7453 s%@target_vendor@%$target_vendor%g
7454 s%@target_os@%$target_os%g
7456 s%@build_alias@%$build_alias%g
7457 s%@build_cpu@%$build_cpu%g
7458 s%@build_vendor@%$build_vendor%g
7459 s%@build_os@%$build_os%g
7460 s%@SET_MAKE@%$SET_MAKE%g
7461 s%@RANLIB@%$RANLIB%g
7462 s%@ALLOCA@%$ALLOCA%g
7463 s%@USE_NLS@%$USE_NLS%g
7464 s%@MSGFMT@%$MSGFMT%g
7465 s%@GMSGFMT@%$GMSGFMT%g
7466 s%@XGETTEXT@%$XGETTEXT%g
7467 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7468 s%@CATALOGS@%$CATALOGS%g
7469 s%@CATOBJEXT@%$CATOBJEXT%g
7470 s%@DATADIRNAME@%$DATADIRNAME%g
7471 s%@GMOFILES@%$GMOFILES%g
7472 s%@INSTOBJEXT@%$INSTOBJEXT%g
7473 s%@INTLDEPS@%$INTLDEPS%g
7474 s%@INTLLIBS@%$INTLLIBS%g
7475 s%@INTLOBJS@%$INTLOBJS%g
7476 s%@POFILES@%$POFILES%g
7478 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7480 s%@GT_YES@%$GT_YES%g
7481 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7484 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7485 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7486 s%@INSTALL_DATA@%$INSTALL_DATA%g
7490 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
7491 s%@BUILD_TUI@%$BUILD_TUI%g
7492 s%@TUI_LIBRARY@%$TUI_LIBRARY%g
7493 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7494 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
7495 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
7496 s%@MMALLOC@%$MMALLOC%g
7497 s%@DLLTOOL@%$DLLTOOL%g
7498 s%@WINDRES@%$WINDRES%g
7499 s%@TERM_LIB@%$TERM_LIB%g
7500 s%@WIN32LIBS@%$WIN32LIBS%g
7501 s%@LIBGUI@%$LIBGUI%g
7502 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
7503 s%@WIN32LDAPP@%$WIN32LDAPP%g
7504 s%@TCL_VERSION@%$TCL_VERSION%g
7505 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
7506 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
7507 s%@TCL_CC@%$TCL_CC%g
7508 s%@TCL_DEFS@%$TCL_DEFS%g
7509 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
7510 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
7511 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
7512 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
7513 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
7514 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
7515 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
7516 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
7517 s%@TCL_RANLIB@%$TCL_RANLIB%g
7518 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
7519 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
7520 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
7521 s%@TK_VERSION@%$TK_VERSION%g
7522 s%@TK_DEFS@%$TK_DEFS%g
7523 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
7524 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
7525 s%@TK_XLIBSW@%$TK_XLIBSW%g
7526 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
7527 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
7528 s%@TCLHDIR@%$TCLHDIR%g
7529 s%@TKHDIR@%$TKHDIR%g
7530 s%@ITCLHDIR@%$ITCLHDIR%g
7531 s%@ITKHDIR@%$ITKHDIR%g
7532 s%@TIXHDIR@%$TIXHDIR%g
7533 s%@ITCL_VERSION@%$ITCL_VERSION%g
7534 s%@ITCL_DEFS@%$ITCL_DEFS%g
7535 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
7536 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
7537 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
7538 s%@ITK_VERSION@%$ITK_VERSION%g
7539 s%@ITK_DEFS@%$ITK_DEFS%g
7540 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
7541 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
7542 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
7543 s%@TIX_VERSION@%$TIX_VERSION%g
7544 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
7545 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
7546 s%@X_CFLAGS@%$X_CFLAGS%g
7547 s%@X_LDFLAGS@%$X_LDFLAGS%g
7548 s%@X_LIBS@%$X_LIBS%g
7549 s%@ITCLLIB@%$ITCLLIB%g
7550 s%@ITCL_DEPS@%$ITCL_DEPS%g
7551 s%@ITKLIB@%$ITKLIB%g
7552 s%@ITK_DEPS@%$ITK_DEPS%g
7553 s%@TIXLIB@%$TIXLIB%g
7554 s%@TIX_DEPS@%$TIX_DEPS%g
7555 s%@GDBTKLIBS@%$GDBTKLIBS%g
7556 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
7557 s%@IGNORE_SIM@%$IGNORE_SIM%g
7558 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
7559 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
7560 s%@CONFIG_OBS@%$CONFIG_OBS%g
7561 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
7562 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
7563 s%@CONFIG_INITS@%$CONFIG_INITS%g
7564 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
7565 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
7566 s%@HLDFLAGS@%$HLDFLAGS%g
7567 s%@HLDENV@%$HLDENV%g
7568 s%@target_subdir@%$target_subdir%g
7569 /@host_makefile_frag@/r $host_makefile_frag
7570 s%@host_makefile_frag@%%g
7571 /@target_makefile_frag@/r $target_makefile_frag
7572 s%@target_makefile_frag@%%g
7574 s%@SUBDIRS@%$SUBDIRS%g
7576 s%@EXEEXT@%$EXEEXT%g
7577 s%@subdirs@%$subdirs%g
7582 cat >> $CONFIG_STATUS <<\EOF
7584 # Split the substitutions into bite-sized pieces for seds with
7585 # small command number limits, like on Digital OSF/1 and HP-UX.
7586 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7587 ac_file
=1 # Number of current file.
7588 ac_beg
=1 # First line for current file.
7589 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7592 while $ac_more_lines; do
7593 if test $ac_beg -gt 1; then
7594 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7596 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7598 if test ! -s conftest.s
$ac_file; then
7600 rm -f conftest.s
$ac_file
7602 if test -z "$ac_sed_cmds"; then
7603 ac_sed_cmds
="sed -f conftest.s$ac_file"
7605 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7607 ac_file
=`expr $ac_file + 1`
7609 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7612 if test -z "$ac_sed_cmds"; then
7617 cat >> $CONFIG_STATUS <<EOF
7619 CONFIG_FILES=\${CONFIG_FILES-"Makefile tui/Makefile .gdbinit:gdbinit.in"}
7621 cat >> $CONFIG_STATUS <<\EOF
7622 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7623 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7625 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7626 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7627 *) ac_file_in
="${ac_file}.in" ;;
7630 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7632 # Remove last slash and all that follows it. Not all systems have dirname.
7633 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7634 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7635 # The file is in a subdirectory.
7636 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7637 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7638 # A "../" for each directory in $ac_dir_suffix.
7639 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7641 ac_dir_suffix
= ac_dots
=
7644 case "$ac_given_srcdir" in
7646 if test -z "$ac_dots"; then top_srcdir
=.
7647 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7648 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7650 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7651 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7654 case "$ac_given_INSTALL" in
7655 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7656 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7659 echo creating
"$ac_file"
7661 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7663 *Makefile
*) ac_comsub
="1i\\
7664 # $configure_input" ;;
7668 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7670 s%@configure_input@%$configure_input%g
7671 s%@srcdir@%$srcdir%g
7672 s%@top_srcdir@%$top_srcdir%g
7673 s%@INSTALL@%$INSTALL%g
7674 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7678 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7679 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7681 # ac_d sets the value in "#define NAME VALUE" lines.
7682 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7683 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7686 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7687 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7688 ac_uB
='\([ ]\)%\1#\2define\3'
7691 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7692 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7693 ac_eB
='$%\1#\2define\3'
7697 if test "${CONFIG_HEADERS+set}" != set; then
7699 cat >> $CONFIG_STATUS <<EOF
7700 CONFIG_HEADERS="config.h:config.in"
7702 cat >> $CONFIG_STATUS <<\EOF
7704 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7705 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7707 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7708 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7709 *) ac_file_in
="${ac_file}.in" ;;
7712 echo creating
$ac_file
7714 rm -f conftest.frag conftest.
in conftest.out
7715 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7716 cat $ac_file_inputs > conftest.
in
7720 # Transform confdefs.h into a sed script conftest.vals that substitutes
7721 # the proper values into config.h.in to produce config.h. And first:
7722 # Protect against being on the right side of a sed subst in config.status.
7723 # Protect against being in an unquoted here document in config.status.
7725 cat > conftest.hdr
<<\EOF
7728 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7732 sed -n -f conftest.hdr confdefs.h > conftest.vals
7735 # This sed command replaces #undef with comments. This is necessary, for
7736 # example, in the case of _POSIX_SOURCE, which is predefined and required
7737 # on some systems where configure will not decide to define it.
7738 cat >> conftest.vals <<\EOF
7739 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7742 # Break up conftest.vals because some shells have a limit on
7743 # the size of here documents, and old seds have small limits too.
7748 ac_lines=`grep -c . conftest.vals
`
7749 # grep -c gives empty output for an empty file on some AIX systems.
7750 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7751 # Write a limited-size here document to conftest.frag.
7752 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7753 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7755 sed -f conftest.frag conftest.in > conftest.out
7757 mv conftest.out conftest.in
7759 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7761 mv conftest.tail conftest.vals
7765 cat >> $CONFIG_STATUS <<\EOF
7766 rm -f conftest.frag conftest.h
7767 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7768 cat conftest.in >> conftest.h
7770 if cmp -s $ac_file conftest.h 2>/dev/null; then
7771 echo "$ac_file is unchanged"
7774 # Remove last slash and all that follows it. Not all systems have dirname.
7775 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7776 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7777 # The file is in a subdirectory.
7778 test ! -d "$ac_dir" && mkdir "$ac_dir"
7781 mv conftest.h $ac_file
7787 cat >> $CONFIG_STATUS <<EOF
7792 cat >> $CONFIG_STATUS <<\EOF
7793 srcdir=$ac_given_srcdir
7794 while test -n "$ac_sources"; do
7795 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7796 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7798 echo "linking $srcdir/$ac_source to $ac_dest"
7800 if test ! -r $srcdir/$ac_source; then
7801 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7805 # Make relative symlinks.
7806 # Remove last slash and all that follows it. Not all systems have dirname.
7807 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7808 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7809 # The dest file is in a subdirectory.
7810 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7811 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7812 # A "../" for each directory in $ac_dest_dir_suffix.
7813 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7815 ac_dest_dir_suffix= ac_dots=
7819 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7820 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7823 # Make a symlink if possible; otherwise try a hard link.
7824 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7825 ln $srcdir/$ac_source $ac_dest; then :
7827 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7831 cat >> $CONFIG_STATUS <<EOF
7833 gdb_host_cpu=$gdb_host_cpu
7834 gdb_target_cpu=$gdb_target_cpu
7835 nativefile=$nativefile
7838 cat >> $CONFIG_STATUS <<\EOF
7840 if test "${nativefile}" = ""; then
7841 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
7842 < Makefile > Makefile.tem
7843 mv -f Makefile.tem Makefile
7846 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
7847 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
7848 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
7849 mv -f Makefile.tmp Makefile
7852 case x$CONFIG_HEADERS in
7853 xconfig.h:config.in)
7859 chmod +x $CONFIG_STATUS
7860 rm -fr confdefs* $ac_clean_files
7861 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7863 if test "$no_recursion" != yes; then
7865 # Remove --cache-file and --srcdir arguments so they do not pile up.
7866 ac_sub_configure_args=
7868 for ac_arg in $ac_configure_args; do
7869 if test -n "$ac_prev"; then
7874 -cache-file | --cache-file | --cache-fil | --cache-fi \
7875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7876 ac_prev=cache_file ;;
7877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7880 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7882 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7884 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7888 for ac_config_dir in $configdirs; do
7890 # Do not complain, so a configure script can configure whichever
7891 # parts of a large source tree are present.
7892 if test ! -d $srcdir/$ac_config_dir; then
7896 echo configuring in $ac_config_dir
7901 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7903 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7911 # A "../" for each directory in /$ac_config_dir.
7912 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7915 .) # No --srcdir option. We are building in place.
7916 ac_sub_srcdir=$srcdir ;;
7917 /*) # Absolute path.
7918 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7920 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7923 # Check for guested configure; otherwise get Cygnus style configure.
7924 if test -f $ac_sub_srcdir/configure; then
7925 ac_sub_configure=$ac_sub_srcdir/configure
7926 elif test -f $ac_sub_srcdir/configure.in; then
7927 ac_sub_configure=$ac_configure
7929 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7933 # The recursion is here.
7934 if test -n "$ac_sub_configure"; then
7936 # Make the cache file name correct relative to the subdirectory.
7937 case "$cache_file" in
7938 /*) ac_sub_cache_file=$cache_file ;;
7940 ac_sub_cache_file="$ac_dots$cache_file" ;;
7942 case "$ac_given_INSTALL" in
7943 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7944 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7947 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7948 # The eval makes quoting arguments work.
7949 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7952 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }