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 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-nls do not use Native Language Support"
20 --with-included-gettext use the GNU gettext library included here"
22 --enable-multi-ice Build the multi-ice-gdb-server"
24 --enable-gdbmi Enable GDB-MI interface"
26 --enable-tui Enable full-screen terminal user interface"
28 --enable-netrom Enable NetROM support"
30 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
32 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
34 --with-mmalloc Use memory mapped malloc package"
36 --with-included-regex Use included regex"
38 --with-cpu=CPU Set the default CPU variant to debug"
40 --enable-gdbtk Enable GDBTK GUI front end"
42 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
44 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
46 --with-tclinclude=DIR Directory where tcl private headers are"
48 --with-tkinclude=DIR Directory where tk private headers are"
50 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
52 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
54 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
56 --with-x use the X Window System"
58 --enable-sim Link gdb with simulator"
60 --enable-shared Use shared libraries"
62 # Initialize some variables set by options.
63 # The variables have the same names as the options, with
64 # dashes changed to underlines.
66 cache_file
=.
/config.cache
75 program_transform_name
=s
,x
,x
,
84 bindir
='${exec_prefix}/bin'
85 sbindir
='${exec_prefix}/sbin'
86 libexecdir
='${exec_prefix}/libexec'
87 datadir
='${prefix}/share'
88 sysconfdir
='${prefix}/etc'
89 sharedstatedir
='${prefix}/com'
90 localstatedir
='${prefix}/var'
91 libdir
='${exec_prefix}/lib'
92 includedir
='${prefix}/include'
93 oldincludedir
='/usr/include'
94 infodir
='${prefix}/info'
95 mandir
='${prefix}/man'
97 # Initialize some other variables.
100 SHELL
=${CONFIG_SHELL-/bin/sh}
101 # Maximum number of lines to put in a shell here document.
108 # If the previous option needs an argument, assign it.
109 if test -n "$ac_prev"; then
110 eval "$ac_prev=\$ac_option"
116 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120 # Accept the important Cygnus configure options, so we can diagnose typos.
124 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
126 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
127 bindir
="$ac_optarg" ;;
129 -build |
--build |
--buil |
--bui |
--bu)
131 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
132 build
="$ac_optarg" ;;
134 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
135 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
136 ac_prev
=cache_file
;;
137 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
138 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
139 cache_file
="$ac_optarg" ;;
141 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
143 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
145 datadir
="$ac_optarg" ;;
147 -disable-* |
--disable-*)
148 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}=no" ;;
156 -enable-* |
--enable-*)
157 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}='$ac_optarg'" ;;
169 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
170 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
171 |
--exec |
--exe |
--ex)
172 ac_prev
=exec_prefix
;;
173 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
174 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
175 |
--exec=* |
--exe=* |
--ex=*)
176 exec_prefix
="$ac_optarg" ;;
178 -gas |
--gas |
--ga |
--g)
179 # Obsolete; use --with-gas.
182 -help |
--help |
--hel |
--he)
183 # Omit some internal or obsolete options to make the list less imposing.
184 # This message is too long to be a string in the A/UX 3.1 sh.
186 Usage: configure [options] [host]
187 Options: [defaults in brackets after descriptions]
189 --cache-file=FILE cache test results in FILE
190 --help print this message
191 --no-create do not create output files
192 --quiet, --silent do not print \`checking...' messages
193 --site-file=FILE use FILE as the site file
194 --version print the version of autoconf that created configure
195 Directory and file names:
196 --prefix=PREFIX install architecture-independent files in PREFIX
198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
200 --bindir=DIR user executables in DIR [EPREFIX/bin]
201 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
202 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
203 --datadir=DIR read-only architecture-independent data in DIR
205 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
206 --sharedstatedir=DIR modifiable architecture-independent data in DIR
208 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
209 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
210 --includedir=DIR C header files in DIR [PREFIX/include]
211 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
212 --infodir=DIR info documentation in DIR [PREFIX/info]
213 --mandir=DIR man documentation in DIR [PREFIX/man]
214 --srcdir=DIR find the sources in DIR [configure dir or ..]
215 --program-prefix=PREFIX prepend PREFIX to installed program names
216 --program-suffix=SUFFIX append SUFFIX to installed program names
217 --program-transform-name=PROGRAM
218 run sed PROGRAM on installed program names
222 --build=BUILD configure for building on BUILD [BUILD=HOST]
223 --host=HOST configure for HOST [guessed]
224 --target=TARGET configure for TARGET [TARGET=HOST]
225 Features and packages:
226 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
227 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
230 --x-includes=DIR X include files are in DIR
231 --x-libraries=DIR X library files are in DIR
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
238 -host |
--host |
--hos |
--ho)
240 -host=* |
--host=* |
--hos=* |
--ho=*)
243 -includedir |
--includedir |
--includedi |
--included |
--include \
244 |
--includ |
--inclu |
--incl |
--inc)
245 ac_prev
=includedir
;;
246 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
247 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
248 includedir
="$ac_optarg" ;;
250 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
252 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
253 infodir
="$ac_optarg" ;;
255 -libdir |
--libdir |
--libdi |
--libd)
257 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
258 libdir
="$ac_optarg" ;;
260 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
261 |
--libexe |
--libex |
--libe)
262 ac_prev
=libexecdir
;;
263 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
264 |
--libexe=* |
--libex=* |
--libe=*)
265 libexecdir
="$ac_optarg" ;;
267 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
268 |
--localstate |
--localstat |
--localsta |
--localst \
269 |
--locals |
--local |
--loca |
--loc |
--lo)
270 ac_prev
=localstatedir
;;
271 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
272 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
273 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
274 localstatedir
="$ac_optarg" ;;
276 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
278 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
279 mandir
="$ac_optarg" ;;
282 # Obsolete; use --without-fp.
285 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
289 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
290 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
293 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
294 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
295 |
--oldin |
--oldi |
--old |
--ol |
--o)
296 ac_prev
=oldincludedir
;;
297 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
298 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
299 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
300 oldincludedir
="$ac_optarg" ;;
302 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
304 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
305 prefix
="$ac_optarg" ;;
307 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
308 |
--program-pre |
--program-pr |
--program-p)
309 ac_prev
=program_prefix
;;
310 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
311 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
312 program_prefix
="$ac_optarg" ;;
314 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
315 |
--program-suf |
--program-su |
--program-s)
316 ac_prev
=program_suffix
;;
317 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
318 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
319 program_suffix
="$ac_optarg" ;;
321 -program-transform-name |
--program-transform-name \
322 |
--program-transform-nam |
--program-transform-na \
323 |
--program-transform-n |
--program-transform- \
324 |
--program-transform |
--program-transfor \
325 |
--program-transfo |
--program-transf \
326 |
--program-trans |
--program-tran \
327 |
--progr-tra |
--program-tr |
--program-t)
328 ac_prev
=program_transform_name
;;
329 -program-transform-name=* |
--program-transform-name=* \
330 |
--program-transform-nam=* |
--program-transform-na=* \
331 |
--program-transform-n=* |
--program-transform-=* \
332 |
--program-transform=* |
--program-transfor=* \
333 |
--program-transfo=* |
--program-transf=* \
334 |
--program-trans=* |
--program-tran=* \
335 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
336 program_transform_name
="$ac_optarg" ;;
338 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
339 |
-silent |
--silent |
--silen |
--sile |
--sil)
342 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
344 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
346 sbindir
="$ac_optarg" ;;
348 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
349 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
350 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
352 ac_prev
=sharedstatedir
;;
353 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
354 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
355 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
357 sharedstatedir
="$ac_optarg" ;;
359 -site |
--site |
--sit)
361 -site=* |
--site=* |
--sit=*)
364 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
366 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
367 sitefile
="$ac_optarg" ;;
369 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
371 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
372 srcdir
="$ac_optarg" ;;
374 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
375 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
376 ac_prev
=sysconfdir
;;
377 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
378 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
379 sysconfdir
="$ac_optarg" ;;
381 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
383 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
384 target
="$ac_optarg" ;;
386 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
389 -version |
--version |
--versio |
--versi |
--vers)
390 echo "configure generated by autoconf version 2.13"
394 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package
=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* |
--without-*)
407 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package
=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
416 # Obsolete; use --with-x.
419 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
420 |
--x-incl |
--x-inc |
--x-in |
--x-i)
421 ac_prev
=x_includes
;;
422 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
423 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
424 x_includes
="$ac_optarg" ;;
426 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
427 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
428 ac_prev
=x_libraries
;;
429 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
430 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
431 x_libraries
="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE
; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
481 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
482 |
--no-cr |
--no-c) ;;
483 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
484 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
485 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest
* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file
=main.c
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted
=yes
513 # Try the directory containing this script, then its parent.
515 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
518 if test ! -r $srcdir/$ac_unique_file; then
522 ac_srcdir_defaulted
=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$sitefile"; then
535 if test -z "$CONFIG_SITE"; then
536 if test "x$prefix" != xNONE
; then
537 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
539 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
543 CONFIG_SITE
="$sitefile"
545 for ac_site_file
in $CONFIG_SITE; do
546 if test -r "$ac_site_file"; then
547 echo "loading site script $ac_site_file"
552 if test -r "$cache_file"; then
553 echo "loading cache $cache_file"
556 echo "creating cache $cache_file"
561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562 ac_cpp
='$CPP $CPPFLAGS'
563 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565 cross_compiling
=$ac_cv_prog_cc_cross
569 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
570 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
571 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
578 ac_n
= ac_c
='\c' ac_t
=
583 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
584 echo "configure:585: checking whether to enable maintainer-specific portions of Makefiles" >&5
585 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
586 if test "${enable_maintainer_mode+set}" = set; then
587 enableval
="$enable_maintainer_mode"
588 USE_MAINTAINER_MODE
=$enableval
590 USE_MAINTAINER_MODE
=no
593 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
596 if test $USE_MAINTAINER_MODE = yes; then
597 MAINTAINER_MODE_TRUE
=
598 MAINTAINER_MODE_FALSE
='#'
600 MAINTAINER_MODE_TRUE
='#'
601 MAINTAINER_MODE_FALSE
=
603 MAINT
=$MAINTAINER_MODE_TRUE
607 # Extract the first word of "gcc", so it can be a program name with args.
608 set dummy gcc
; ac_word
=$2
609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
610 echo "configure:611: checking for $ac_word" >&5
611 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
612 echo $ac_n "(cached) $ac_c" 1>&6
614 if test -n "$CC"; then
615 ac_cv_prog_CC
="$CC" # Let the user override the test.
617 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
619 for ac_dir
in $ac_dummy; do
620 test -z "$ac_dir" && ac_dir
=.
621 if test -f $ac_dir/$ac_word; then
630 if test -n "$CC"; then
631 echo "$ac_t""$CC" 1>&6
633 echo "$ac_t""no" 1>&6
636 if test -z "$CC"; then
637 # Extract the first word of "cc", so it can be a program name with args.
638 set dummy cc
; ac_word
=$2
639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
640 echo "configure:641: checking for $ac_word" >&5
641 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
644 if test -n "$CC"; then
645 ac_cv_prog_CC
="$CC" # Let the user override the test.
647 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
650 for ac_dir
in $ac_dummy; do
651 test -z "$ac_dir" && ac_dir
=.
652 if test -f $ac_dir/$ac_word; then
653 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
662 if test $ac_prog_rejected = yes; then
663 # We found a bogon in the path, so make sure we never use it.
664 set dummy
$ac_cv_prog_CC
666 if test $# -gt 0; then
667 # We chose a different compiler from the bogus one.
668 # However, it has the same basename, so the bogon will be chosen
669 # first if we set CC to just the basename; use the full file name.
671 set dummy
"$ac_dir/$ac_word" "$@"
679 if test -n "$CC"; then
680 echo "$ac_t""$CC" 1>&6
682 echo "$ac_t""no" 1>&6
685 if test -z "$CC"; then
688 # Extract the first word of "cl", so it can be a program name with args.
689 set dummy cl
; ac_word
=$2
690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
691 echo "configure:692: checking for $ac_word" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 if test -n "$CC"; then
696 ac_cv_prog_CC
="$CC" # Let the user override the test.
698 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
700 for ac_dir
in $ac_dummy; do
701 test -z "$ac_dir" && ac_dir
=.
702 if test -f $ac_dir/$ac_word; then
711 if test -n "$CC"; then
712 echo "$ac_t""$CC" 1>&6
714 echo "$ac_t""no" 1>&6
719 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
723 echo "configure:724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
727 ac_cpp
='$CPP $CPPFLAGS'
728 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
729 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
730 cross_compiling
=$ac_cv_prog_cc_cross
732 cat > conftest.
$ac_ext << EOF
734 #line 735 "configure"
735 #include "confdefs.h"
739 if { (eval echo configure
:740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
740 ac_cv_prog_cc_works
=yes
741 # If we can't run a trivial program, we are probably using a cross compiler.
742 if (.
/conftest
; exit) 2>/dev
/null
; then
743 ac_cv_prog_cc_cross
=no
745 ac_cv_prog_cc_cross
=yes
748 echo "configure: failed program was:" >&5
749 cat conftest.
$ac_ext >&5
750 ac_cv_prog_cc_works
=no
754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
755 ac_cpp
='$CPP $CPPFLAGS'
756 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
757 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
758 cross_compiling
=$ac_cv_prog_cc_cross
760 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
761 if test $ac_cv_prog_cc_works = no
; then
762 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
764 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
765 echo "configure:766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
766 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
767 cross_compiling
=$ac_cv_prog_cc_cross
769 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
770 echo "configure:771: checking whether we are using GNU C" >&5
771 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
774 cat > conftest.c
<<EOF
779 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
786 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
788 if test $ac_cv_prog_gcc = yes; then
794 ac_test_CFLAGS
="${CFLAGS+set}"
795 ac_save_CFLAGS
="$CFLAGS"
797 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
798 echo "configure:799: checking whether ${CC-cc} accepts -g" >&5
799 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
800 echo $ac_n "(cached) $ac_c" 1>&6
802 echo 'void f(){}' > conftest.c
803 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
812 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
813 if test "$ac_test_CFLAGS" = set; then
814 CFLAGS
="$ac_save_CFLAGS"
815 elif test $ac_cv_prog_cc_g = yes; then
816 if test "$GCC" = yes; then
822 if test "$GCC" = yes; then
829 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
830 echo "configure:831: checking how to run the C preprocessor" >&5
831 # On Suns, sometimes $CPP names a directory.
832 if test -n "$CPP" && test -d "$CPP"; then
835 if test -z "$CPP"; then
836 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 # This must be in double quotes, not single quotes, because CPP may get
840 # substituted into the Makefile and "${CC-cc}" will confuse make.
842 # On the NeXT, cc -E runs the code through the compiler's parser,
843 # not just through cpp.
844 cat > conftest.
$ac_ext <<EOF
845 #line 846 "configure"
846 #include "confdefs.h"
850 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
851 { (eval echo configure
:852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
852 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
853 if test -z "$ac_err"; then
857 echo "configure: failed program was:" >&5
858 cat conftest.
$ac_ext >&5
860 CPP
="${CC-cc} -E -traditional-cpp"
861 cat > conftest.
$ac_ext <<EOF
862 #line 863 "configure"
863 #include "confdefs.h"
867 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
868 { (eval echo configure
:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
869 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
870 if test -z "$ac_err"; then
874 echo "configure: failed program was:" >&5
875 cat conftest.
$ac_ext >&5
877 CPP
="${CC-cc} -nologo -E"
878 cat > conftest.
$ac_ext <<EOF
879 #line 880 "configure"
880 #include "confdefs.h"
884 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
885 { (eval echo configure
:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
886 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
887 if test -z "$ac_err"; then
891 echo "configure: failed program was:" >&5
892 cat conftest.
$ac_ext >&5
901 ac_cv_prog_CPP
="$CPP"
903 CPP
="$ac_cv_prog_CPP"
905 ac_cv_prog_CPP
="$CPP"
907 echo "$ac_t""$CPP" 1>&6
909 echo $ac_n "checking for AIX""... $ac_c" 1>&6
910 echo "configure:911: checking for AIX" >&5
911 cat > conftest.
$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
920 egrep "yes" >/dev
/null
2>&1; then
922 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
923 #define _ALL_SOURCE 1
928 echo "$ac_t""no" 1>&6
933 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
934 echo "configure:935: checking for POSIXized ISC" >&5
935 if test -d /etc
/conf
/kconfig.d
&&
936 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
938 echo "$ac_t""yes" 1>&6
939 ISC
=yes # If later tests want to check for ISC.
940 cat >> confdefs.h
<<\EOF
941 #define _POSIX_SOURCE 1
944 if test "$GCC" = yes; then
950 echo "$ac_t""no" 1>&6
957 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
958 echo "configure:959: checking for ${CC-cc} option to accept ANSI C" >&5
959 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 am_cv_prog_cc_stdc
=no
964 # Don't try gcc -ansi; that turns off useful extensions and
965 # breaks some systems' header files.
967 # Ultrix and OSF/1 -std1
968 # HP-UX -Aa -D_HPUX_SOURCE
969 # SVR4 -Xc -D__EXTENSIONS__
970 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
972 CC
="$ac_save_CC $ac_arg"
973 cat > conftest.
$ac_ext <<EOF
974 #line 975 "configure"
975 #include "confdefs.h"
978 #include <sys/types.h>
979 #include <sys/stat.h>
980 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
981 struct buf { int x; };
982 FILE * (*rcsopen) (struct buf *, struct stat *, int);
983 static char *e (p, i)
989 static char *f (char * (*g) (char **, int), char **p, ...)
994 s = g (p, va_arg (v,int));
998 int test (int i, double x);
999 struct s1 {int (*f) (int a);};
1000 struct s2 {int (*f) (double a);};
1001 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1007 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1011 if { (eval echo configure
:1012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1013 am_cv_prog_cc_stdc
="$ac_arg"; break
1015 echo "configure: failed program was:" >&5
1016 cat conftest.
$ac_ext >&5
1024 if test -z "$am_cv_prog_cc_stdc"; then
1025 echo "$ac_t""none needed" 1>&6
1027 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1029 case "x$am_cv_prog_cc_stdc" in
1031 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1036 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1037 if test -f $ac_dir/install-sh
; then
1039 ac_install_sh
="$ac_aux_dir/install-sh -c"
1041 elif test -f $ac_dir/install.sh
; then
1043 ac_install_sh
="$ac_aux_dir/install.sh -c"
1047 if test -z "$ac_aux_dir"; then
1048 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1050 ac_config_guess
=$ac_aux_dir/config.guess
1051 ac_config_sub
=$ac_aux_dir/config.sub
1052 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1055 # Do some error checking and defaulting for the host and target type.
1057 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1060 # 1. You are not allowed to specify --host, --target, and nonopt at the
1062 # 2. Host defaults to nonopt.
1063 # 3. If nonopt is not specified, then host defaults to the current host,
1064 # as determined by config.guess.
1065 # 4. Target and build default to nonopt.
1066 # 5. If nonopt is not specified, then target and build default to host.
1068 # The aliases save the names the user supplied, while $host etc.
1069 # will get canonicalized.
1070 case $host---$target---$nonopt in
1071 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1072 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1076 # Make sure we can run config.sub.
1077 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1078 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1081 echo $ac_n "checking host system type""... $ac_c" 1>&6
1082 echo "configure:1083: checking host system type" >&5
1085 case "$host_alias" in
1089 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1090 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1092 *) host_alias
=$nonopt ;;
1096 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1097 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1098 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1099 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1100 echo "$ac_t""$host" 1>&6
1102 echo $ac_n "checking target system type""... $ac_c" 1>&6
1103 echo "configure:1104: checking target system type" >&5
1105 target_alias
=$target
1106 case "$target_alias" in
1109 NONE
) target_alias
=$host_alias ;;
1110 *) target_alias
=$nonopt ;;
1114 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1115 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1116 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1117 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1118 echo "$ac_t""$target" 1>&6
1120 echo $ac_n "checking build system type""... $ac_c" 1>&6
1121 echo "configure:1122: checking build system type" >&5
1124 case "$build_alias" in
1127 NONE
) build_alias
=$host_alias ;;
1128 *) build_alias
=$nonopt ;;
1132 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1133 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1134 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1135 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1136 echo "$ac_t""$build" 1>&6
1138 test "$host_alias" != "$target_alias" &&
1139 test "$program_prefix$program_suffix$program_transform_name" = \
1141 program_prefix
=${target_alias}-
1145 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1146 echo "configure:1147: checking whether ${MAKE-make} sets \${MAKE}" >&5
1147 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1148 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 cat > conftestmake
<<\EOF
1153 @
echo 'ac_maketemp="${MAKE}"'
1155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1156 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1157 if test -n "$ac_maketemp"; then
1158 eval ac_cv_prog_make_
${ac_make}_set
=yes
1160 eval ac_cv_prog_make_
${ac_make}_set
=no
1164 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1165 echo "$ac_t""yes" 1>&6
1168 echo "$ac_t""no" 1>&6
1169 SET_MAKE
="MAKE=${MAKE-make}"
1172 # Extract the first word of "ranlib", so it can be a program name with args.
1173 set dummy ranlib
; ac_word
=$2
1174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1175 echo "configure:1176: checking for $ac_word" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 if test -n "$RANLIB"; then
1180 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1182 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1184 for ac_dir
in $ac_dummy; do
1185 test -z "$ac_dir" && ac_dir
=.
1186 if test -f $ac_dir/$ac_word; then
1187 ac_cv_prog_RANLIB
="ranlib"
1192 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1195 RANLIB
="$ac_cv_prog_RANLIB"
1196 if test -n "$RANLIB"; then
1197 echo "$ac_t""$RANLIB" 1>&6
1199 echo "$ac_t""no" 1>&6
1202 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1203 echo "configure:1204: checking for ANSI C header files" >&5
1204 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 cat > conftest.
$ac_ext <<EOF
1208 #line 1209 "configure"
1209 #include "confdefs.h"
1215 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216 { (eval echo configure
:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1217 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1218 if test -z "$ac_err"; then
1220 ac_cv_header_stdc
=yes
1223 echo "configure: failed program was:" >&5
1224 cat conftest.
$ac_ext >&5
1226 ac_cv_header_stdc
=no
1230 if test $ac_cv_header_stdc = yes; then
1231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1232 cat > conftest.
$ac_ext <<EOF
1233 #line 1234 "configure"
1234 #include "confdefs.h"
1237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1238 egrep "memchr" >/dev
/null
2>&1; then
1242 ac_cv_header_stdc
=no
1248 if test $ac_cv_header_stdc = yes; then
1249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1250 cat > conftest.
$ac_ext <<EOF
1251 #line 1252 "configure"
1252 #include "confdefs.h"
1255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1256 egrep "free" >/dev
/null
2>&1; then
1260 ac_cv_header_stdc
=no
1266 if test $ac_cv_header_stdc = yes; then
1267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1268 if test "$cross_compiling" = yes; then
1271 cat > conftest.
$ac_ext <<EOF
1272 #line 1273 "configure"
1273 #include "confdefs.h"
1275 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1276 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1277 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1278 int main () { int i; for (i = 0; i < 256; i++)
1279 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1283 if { (eval echo configure
:1284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1287 echo "configure: failed program was:" >&5
1288 cat conftest.
$ac_ext >&5
1290 ac_cv_header_stdc
=no
1298 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1299 if test $ac_cv_header_stdc = yes; then
1300 cat >> confdefs.h
<<\EOF
1301 #define STDC_HEADERS 1
1306 echo $ac_n "checking for working const""... $ac_c" 1>&6
1307 echo "configure:1308: checking for working const" >&5
1308 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1311 cat > conftest.
$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1317 /* Ultrix mips cc rejects this. */
1318 typedef int charset[2]; const charset x;
1319 /* SunOS 4.1.1 cc rejects this. */
1320 char const *const *ccp;
1322 /* NEC SVR4.0.2 mips cc rejects this. */
1323 struct point {int x, y;};
1324 static struct point const zero = {0,0};
1325 /* AIX XL C 1.02.0.0 rejects this.
1326 It does not let you subtract one const X* pointer from another in an arm
1327 of an if-expression whose if-part is not a constant expression */
1328 const char *g = "string";
1329 ccp = &g + (g ? g-g : 0);
1330 /* HPUX 7.0 cc rejects these. */
1333 ccp = (char const *const *) p;
1334 { /* SCO 3.2v4 cc rejects this. */
1336 char const *s = 0 ? (char *) 0 : (char const *) 0;
1340 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1342 const int *foo = &x[0];
1345 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1346 typedef const int *iptr;
1350 { /* AIX XL C 1.02.0.0 rejects this saying
1351 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1352 struct s { int j; const int *ap[3]; };
1353 struct s *b; b->j = 5;
1355 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1361 if { (eval echo configure
:1362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1365 echo "configure: failed program was:" >&5
1366 cat conftest.
$ac_ext >&5
1373 echo "$ac_t""$ac_cv_c_const" 1>&6
1374 if test $ac_cv_c_const = no
; then
1375 cat >> confdefs.h
<<\EOF
1381 echo $ac_n "checking for inline""... $ac_c" 1>&6
1382 echo "configure:1383: checking for inline" >&5
1383 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1387 for ac_kw
in inline __inline__ __inline
; do
1388 cat > conftest.
$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1396 if { (eval echo configure
:1397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1398 ac_cv_c_inline
=$ac_kw; break
1400 echo "configure: failed program was:" >&5
1401 cat conftest.
$ac_ext >&5
1408 echo "$ac_t""$ac_cv_c_inline" 1>&6
1409 case "$ac_cv_c_inline" in
1411 no
) cat >> confdefs.h
<<\EOF
1415 *) cat >> confdefs.h
<<EOF
1416 #define inline $ac_cv_c_inline
1421 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1422 echo "configure:1423: checking for off_t" >&5
1423 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1426 cat > conftest.
$ac_ext <<EOF
1427 #line 1428 "configure"
1428 #include "confdefs.h"
1429 #include <sys/types.h>
1435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1436 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1438 ac_cv_type_off_t
=yes
1446 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1447 if test $ac_cv_type_off_t = no
; then
1448 cat >> confdefs.h
<<\EOF
1454 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1455 echo "configure:1456: checking for size_t" >&5
1456 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 cat > conftest.
$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1462 #include <sys/types.h>
1468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1469 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1471 ac_cv_type_size_t
=yes
1474 ac_cv_type_size_t
=no
1479 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1480 if test $ac_cv_type_size_t = no
; then
1481 cat >> confdefs.h
<<\EOF
1482 #define size_t unsigned
1487 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1488 # for constant arguments. Useless!
1489 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1490 echo "configure:1491: checking for working alloca.h" >&5
1491 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1494 cat > conftest.
$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1499 char *p = alloca(2 * sizeof(int));
1502 if { (eval echo configure
:1503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1504 ac_cv_header_alloca_h
=yes
1506 echo "configure: failed program was:" >&5
1507 cat conftest.
$ac_ext >&5
1509 ac_cv_header_alloca_h
=no
1514 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1515 if test $ac_cv_header_alloca_h = yes; then
1516 cat >> confdefs.h
<<\EOF
1517 #define HAVE_ALLOCA_H 1
1522 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1523 echo "configure:1524: checking for alloca" >&5
1524 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 cat > conftest.
$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1532 # define alloca __builtin_alloca
1535 # include <malloc.h>
1536 # define alloca _alloca
1539 # include <alloca.h>
1544 # ifndef alloca /* predefined by HP cc +Olibcalls */
1553 char *p = (char *) alloca(1);
1556 if { (eval echo configure
:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1558 ac_cv_func_alloca_works
=yes
1560 echo "configure: failed program was:" >&5
1561 cat conftest.
$ac_ext >&5
1563 ac_cv_func_alloca_works
=no
1568 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1569 if test $ac_cv_func_alloca_works = yes; then
1570 cat >> confdefs.h
<<\EOF
1571 #define HAVE_ALLOCA 1
1576 if test $ac_cv_func_alloca_works = no
; then
1577 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1578 # that cause trouble. Some versions do not even contain alloca or
1579 # contain a buggy version. If you still want to use their alloca,
1580 # use ar to extract alloca.o from them instead of compiling alloca.c.
1581 ALLOCA
=alloca.
${ac_objext}
1582 cat >> confdefs.h
<<\EOF
1587 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1588 echo "configure:1589: checking whether alloca needs Cray hooks" >&5
1589 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 cat > conftest.
$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 #if defined(CRAY) && ! defined(CRAY2)
1602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1603 egrep "webecray" >/dev
/null
2>&1; then
1614 echo "$ac_t""$ac_cv_os_cray" 1>&6
1615 if test $ac_cv_os_cray = yes; then
1616 for ac_func
in _getb67 GETB67 getb67
; do
1617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1618 echo "configure:1619: checking for $ac_func" >&5
1619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 cat > conftest.
$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625 /* System header to define __stub macros and hopefully few prototypes,
1626 which can conflict with char $ac_func(); below. */
1628 /* Override any gcc2 internal prototype to avoid an error. */
1629 /* We use char because int might match the return type of a gcc2
1630 builtin and then its argument prototype would still apply. */
1635 /* The GNU C library defines this for functions which it implements
1636 to always fail with ENOSYS. Some functions are actually named
1637 something starting with __ and the normal name is an alias. */
1638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1646 if { (eval echo configure
:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1648 eval "ac_cv_func_$ac_func=yes"
1650 echo "configure: failed program was:" >&5
1651 cat conftest.
$ac_ext >&5
1653 eval "ac_cv_func_$ac_func=no"
1658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1659 echo "$ac_t""yes" 1>&6
1660 cat >> confdefs.h
<<EOF
1661 #define CRAY_STACKSEG_END $ac_func
1666 echo "$ac_t""no" 1>&6
1672 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1673 echo "configure:1674: checking stack direction for C alloca" >&5
1674 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 if test "$cross_compiling" = yes; then
1678 ac_cv_c_stack_direction
=0
1680 cat > conftest.
$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1683 find_stack_direction ()
1685 static char *addr = 0;
1690 return find_stack_direction ();
1693 return (&dummy > addr) ? 1 : -1;
1697 exit (find_stack_direction() < 0);
1700 if { (eval echo configure
:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1702 ac_cv_c_stack_direction
=1
1704 echo "configure: failed program was:" >&5
1705 cat conftest.
$ac_ext >&5
1707 ac_cv_c_stack_direction
=-1
1714 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1715 cat >> confdefs.h
<<EOF
1716 #define STACK_DIRECTION $ac_cv_c_stack_direction
1721 for ac_hdr
in unistd.h
1723 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1725 echo "configure:1726: checking for $ac_hdr" >&5
1726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1729 cat > conftest.
$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1734 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1735 { (eval echo configure
:1736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1736 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1737 if test -z "$ac_err"; then
1739 eval "ac_cv_header_$ac_safe=yes"
1742 echo "configure: failed program was:" >&5
1743 cat conftest.
$ac_ext >&5
1745 eval "ac_cv_header_$ac_safe=no"
1749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1750 echo "$ac_t""yes" 1>&6
1751 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1752 cat >> confdefs.h
<<EOF
1753 #define $ac_tr_hdr 1
1757 echo "$ac_t""no" 1>&6
1761 for ac_func
in getpagesize
1763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1764 echo "configure:1765: checking for $ac_func" >&5
1765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 cat > conftest.
$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1771 /* System header to define __stub macros and hopefully few prototypes,
1772 which can conflict with char $ac_func(); below. */
1774 /* Override any gcc2 internal prototype to avoid an error. */
1775 /* We use char because int might match the return type of a gcc2
1776 builtin and then its argument prototype would still apply. */
1781 /* The GNU C library defines this for functions which it implements
1782 to always fail with ENOSYS. Some functions are actually named
1783 something starting with __ and the normal name is an alias. */
1784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1792 if { (eval echo configure
:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1794 eval "ac_cv_func_$ac_func=yes"
1796 echo "configure: failed program was:" >&5
1797 cat conftest.
$ac_ext >&5
1799 eval "ac_cv_func_$ac_func=no"
1804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1805 echo "$ac_t""yes" 1>&6
1806 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1807 cat >> confdefs.h
<<EOF
1808 #define $ac_tr_func 1
1812 echo "$ac_t""no" 1>&6
1816 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1817 echo "configure:1818: checking for working mmap" >&5
1818 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 if test "$cross_compiling" = yes; then
1822 ac_cv_func_mmap_fixed_mapped
=no
1824 cat > conftest.
$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1828 /* Thanks to Mike Haertel and Jim Avera for this test.
1829 Here is a matrix of mmap possibilities:
1830 mmap private not fixed
1831 mmap private fixed at somewhere currently unmapped
1832 mmap private fixed at somewhere already mapped
1833 mmap shared not fixed
1834 mmap shared fixed at somewhere currently unmapped
1835 mmap shared fixed at somewhere already mapped
1836 For private mappings, we should verify that changes cannot be read()
1837 back from the file, nor mmap's back from the file at a different
1838 address. (There have been systems where private was not correctly
1839 implemented like the infamous i386 svr4.0, and systems where the
1840 VM page cache was not coherent with the filesystem buffer cache
1841 like early versions of FreeBSD and possibly contemporary NetBSD.)
1842 For shared mappings, we should conversely verify that changes get
1843 propogated back to all the places they're supposed to be.
1845 Grep wants private fixed already mapped.
1846 The main things grep needs to know about mmap are:
1847 * does it exist and is it safe to write into the mmap'd area
1848 * how to use it (BSD variants) */
1849 #include <sys/types.h>
1851 #include <sys/mman.h>
1853 /* This mess was copied from the GNU getpagesize.h. */
1854 #ifndef HAVE_GETPAGESIZE
1855 # ifdef HAVE_UNISTD_H
1856 # include <unistd.h>
1859 /* Assume that all systems that can run configure have sys/param.h. */
1860 # ifndef HAVE_SYS_PARAM_H
1861 # define HAVE_SYS_PARAM_H 1
1864 # ifdef _SC_PAGESIZE
1865 # define getpagesize() sysconf(_SC_PAGESIZE)
1866 # else /* no _SC_PAGESIZE */
1867 # ifdef HAVE_SYS_PARAM_H
1868 # include <sys/param.h>
1869 # ifdef EXEC_PAGESIZE
1870 # define getpagesize() EXEC_PAGESIZE
1871 # else /* no EXEC_PAGESIZE */
1873 # define getpagesize() NBPG * CLSIZE
1876 # endif /* no CLSIZE */
1877 # else /* no NBPG */
1879 # define getpagesize() NBPC
1880 # else /* no NBPC */
1882 # define getpagesize() PAGESIZE
1883 # endif /* PAGESIZE */
1884 # endif /* no NBPC */
1885 # endif /* no NBPG */
1886 # endif /* no EXEC_PAGESIZE */
1887 # else /* no HAVE_SYS_PARAM_H */
1888 # define getpagesize() 8192 /* punt totally */
1889 # endif /* no HAVE_SYS_PARAM_H */
1890 # endif /* no _SC_PAGESIZE */
1892 #endif /* no HAVE_GETPAGESIZE */
1895 extern "C" { void *malloc(unsigned); }
1903 char *data, *data2, *data3;
1907 pagesize = getpagesize();
1910 * First, make a file with some known garbage in it.
1912 data = malloc(pagesize);
1915 for (i = 0; i < pagesize; ++i)
1916 *(data + i) = rand();
1918 fd = creat("conftestmmap", 0600);
1921 if (write(fd, data, pagesize) != pagesize)
1926 * Next, try to mmap the file at a fixed address which
1927 * already has something else allocated at it. If we can,
1928 * also make sure that we see the same garbage.
1930 fd = open("conftestmmap", O_RDWR);
1933 data2 = malloc(2 * pagesize);
1936 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1937 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1938 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1940 for (i = 0; i < pagesize; ++i)
1941 if (*(data + i) != *(data2 + i))
1945 * Finally, make sure that changes to the mapped area
1946 * do not percolate back to the file as seen by read().
1947 * (This is a bug on some variants of i386 svr4.0.)
1949 for (i = 0; i < pagesize; ++i)
1950 *(data2 + i) = *(data2 + i) + 1;
1951 data3 = malloc(pagesize);
1954 if (read(fd, data3, pagesize) != pagesize)
1956 for (i = 0; i < pagesize; ++i)
1957 if (*(data + i) != *(data3 + i))
1960 unlink("conftestmmap");
1965 if { (eval echo configure
:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1967 ac_cv_func_mmap_fixed_mapped
=yes
1969 echo "configure: failed program was:" >&5
1970 cat conftest.
$ac_ext >&5
1972 ac_cv_func_mmap_fixed_mapped
=no
1979 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1980 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1981 cat >> confdefs.h
<<\EOF
1988 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1989 unistd.h values.h sys
/param.h
1991 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1992 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1993 echo "configure:1994: checking for $ac_hdr" >&5
1994 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 cat > conftest.
$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2002 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2003 { (eval echo configure
:2004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2004 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2005 if test -z "$ac_err"; then
2007 eval "ac_cv_header_$ac_safe=yes"
2010 echo "configure: failed program was:" >&5
2011 cat conftest.
$ac_ext >&5
2013 eval "ac_cv_header_$ac_safe=no"
2017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2018 echo "$ac_t""yes" 1>&6
2019 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2020 cat >> confdefs.h
<<EOF
2021 #define $ac_tr_hdr 1
2025 echo "$ac_t""no" 1>&6
2029 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2030 __argz_count __argz_stringify __argz_next
2032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2033 echo "configure:2034: checking for $ac_func" >&5
2034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 cat > conftest.
$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2040 /* System header to define __stub macros and hopefully few prototypes,
2041 which can conflict with char $ac_func(); below. */
2043 /* Override any gcc2 internal prototype to avoid an error. */
2044 /* We use char because int might match the return type of a gcc2
2045 builtin and then its argument prototype would still apply. */
2050 /* The GNU C library defines this for functions which it implements
2051 to always fail with ENOSYS. Some functions are actually named
2052 something starting with __ and the normal name is an alias. */
2053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2061 if { (eval echo configure
:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2063 eval "ac_cv_func_$ac_func=yes"
2065 echo "configure: failed program was:" >&5
2066 cat conftest.
$ac_ext >&5
2068 eval "ac_cv_func_$ac_func=no"
2073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2075 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2076 cat >> confdefs.h
<<EOF
2077 #define $ac_tr_func 1
2081 echo "$ac_t""no" 1>&6
2086 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2087 for ac_func
in stpcpy
2089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2090 echo "configure:2091: checking for $ac_func" >&5
2091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 cat > conftest.
$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2097 /* System header to define __stub macros and hopefully few prototypes,
2098 which can conflict with char $ac_func(); below. */
2100 /* Override any gcc2 internal prototype to avoid an error. */
2101 /* We use char because int might match the return type of a gcc2
2102 builtin and then its argument prototype would still apply. */
2107 /* The GNU C library defines this for functions which it implements
2108 to always fail with ENOSYS. Some functions are actually named
2109 something starting with __ and the normal name is an alias. */
2110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2118 if { (eval echo configure
:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2120 eval "ac_cv_func_$ac_func=yes"
2122 echo "configure: failed program was:" >&5
2123 cat conftest.
$ac_ext >&5
2125 eval "ac_cv_func_$ac_func=no"
2130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2131 echo "$ac_t""yes" 1>&6
2132 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2133 cat >> confdefs.h
<<EOF
2134 #define $ac_tr_func 1
2138 echo "$ac_t""no" 1>&6
2143 if test "${ac_cv_func_stpcpy}" = "yes"; then
2144 cat >> confdefs.h
<<\EOF
2145 #define HAVE_STPCPY 1
2150 if test $ac_cv_header_locale_h = yes; then
2151 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2152 echo "configure:2153: checking for LC_MESSAGES" >&5
2153 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2156 cat > conftest.
$ac_ext <<EOF
2157 #line 2158 "configure"
2158 #include "confdefs.h"
2164 if { (eval echo configure
:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2166 am_cv_val_LC_MESSAGES
=yes
2168 echo "configure: failed program was:" >&5
2169 cat conftest.
$ac_ext >&5
2171 am_cv_val_LC_MESSAGES
=no
2176 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2177 if test $am_cv_val_LC_MESSAGES = yes; then
2178 cat >> confdefs.h
<<\EOF
2179 #define HAVE_LC_MESSAGES 1
2184 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2185 echo "configure:2186: checking whether NLS is requested" >&5
2186 # Check whether --enable-nls or --disable-nls was given.
2187 if test "${enable_nls+set}" = set; then
2188 enableval
="$enable_nls"
2194 echo "$ac_t""$USE_NLS" 1>&6
2197 USE_INCLUDED_LIBINTL
=no
2199 if test "$USE_NLS" = "yes"; then
2200 cat >> confdefs.h
<<\EOF
2201 #define ENABLE_NLS 1
2204 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2205 echo "configure:2206: checking whether included gettext is requested" >&5
2206 # Check whether --with-included-gettext or --without-included-gettext was given.
2207 if test "${with_included_gettext+set}" = set; then
2208 withval
="$with_included_gettext"
2209 nls_cv_force_use_gnu_gettext
=$withval
2211 nls_cv_force_use_gnu_gettext
=no
2214 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2216 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2217 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2219 nls_cv_header_libgt
=
2222 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2223 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2224 echo "configure:2225: checking for libintl.h" >&5
2225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 cat > conftest.
$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 #include <libintl.h>
2233 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2234 { (eval echo configure
:2235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2235 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2236 if test -z "$ac_err"; then
2238 eval "ac_cv_header_$ac_safe=yes"
2241 echo "configure: failed program was:" >&5
2242 cat conftest.
$ac_ext >&5
2244 eval "ac_cv_header_$ac_safe=no"
2248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2249 echo "$ac_t""yes" 1>&6
2250 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2251 echo "configure:2252: checking for gettext in libc" >&5
2252 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 cat > conftest.
$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2258 #include <libintl.h>
2260 return (int) gettext ("")
2263 if { (eval echo configure
:2264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2265 gt_cv_func_gettext_libc
=yes
2267 echo "configure: failed program was:" >&5
2268 cat conftest.
$ac_ext >&5
2270 gt_cv_func_gettext_libc
=no
2275 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2277 if test "$gt_cv_func_gettext_libc" != "yes"; then
2278 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2279 echo "configure:2280: checking for bindtextdomain in -lintl" >&5
2280 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2284 ac_save_LIBS
="$LIBS"
2286 cat > conftest.
$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2289 /* Override any gcc2 internal prototype to avoid an error. */
2290 /* We use char because int might match the return type of a gcc2
2291 builtin and then its argument prototype would still apply. */
2292 char bindtextdomain();
2298 if { (eval echo configure
:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2300 eval "ac_cv_lib_$ac_lib_var=yes"
2302 echo "configure: failed program was:" >&5
2303 cat conftest.
$ac_ext >&5
2305 eval "ac_cv_lib_$ac_lib_var=no"
2308 LIBS
="$ac_save_LIBS"
2311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2312 echo "$ac_t""yes" 1>&6
2313 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2314 echo "configure:2315: checking for gettext in libintl" >&5
2315 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.
$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2323 return (int) gettext ("")
2326 if { (eval echo configure
:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2328 gt_cv_func_gettext_libintl
=yes
2330 echo "configure: failed program was:" >&5
2331 cat conftest.
$ac_ext >&5
2333 gt_cv_func_gettext_libintl
=no
2338 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2340 echo "$ac_t""no" 1>&6
2345 if test "$gt_cv_func_gettext_libc" = "yes" \
2346 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2347 cat >> confdefs.h
<<\EOF
2348 #define HAVE_GETTEXT 1
2351 # Extract the first word of "msgfmt", so it can be a program name with args.
2352 set dummy msgfmt
; ac_word
=$2
2353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2354 echo "configure:2355: checking for $ac_word" >&5
2355 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2360 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2363 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2364 for ac_dir
in $PATH; do
2365 test -z "$ac_dir" && ac_dir
=.
2366 if test -f $ac_dir/$ac_word; then
2367 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2368 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2374 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2378 MSGFMT
="$ac_cv_path_MSGFMT"
2379 if test -n "$MSGFMT"; then
2380 echo "$ac_t""$MSGFMT" 1>&6
2382 echo "$ac_t""no" 1>&6
2384 if test "$MSGFMT" != "no"; then
2385 for ac_func
in dcgettext
2387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2388 echo "configure:2389: checking for $ac_func" >&5
2389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 cat > conftest.
$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2395 /* System header to define __stub macros and hopefully few prototypes,
2396 which can conflict with char $ac_func(); below. */
2398 /* Override any gcc2 internal prototype to avoid an error. */
2399 /* We use char because int might match the return type of a gcc2
2400 builtin and then its argument prototype would still apply. */
2405 /* The GNU C library defines this for functions which it implements
2406 to always fail with ENOSYS. Some functions are actually named
2407 something starting with __ and the normal name is an alias. */
2408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2416 if { (eval echo configure
:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2418 eval "ac_cv_func_$ac_func=yes"
2420 echo "configure: failed program was:" >&5
2421 cat conftest.
$ac_ext >&5
2423 eval "ac_cv_func_$ac_func=no"
2428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2429 echo "$ac_t""yes" 1>&6
2430 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2431 cat >> confdefs.h
<<EOF
2432 #define $ac_tr_func 1
2436 echo "$ac_t""no" 1>&6
2440 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2441 set dummy gmsgfmt
; ac_word
=$2
2442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2443 echo "configure:2444: checking for $ac_word" >&5
2444 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2449 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2452 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2455 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2457 for ac_dir
in $ac_dummy; do
2458 test -z "$ac_dir" && ac_dir
=.
2459 if test -f $ac_dir/$ac_word; then
2460 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2465 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2469 GMSGFMT
="$ac_cv_path_GMSGFMT"
2470 if test -n "$GMSGFMT"; then
2471 echo "$ac_t""$GMSGFMT" 1>&6
2473 echo "$ac_t""no" 1>&6
2476 # Extract the first word of "xgettext", so it can be a program name with args.
2477 set dummy xgettext
; ac_word
=$2
2478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2479 echo "configure:2480: checking for $ac_word" >&5
2480 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2485 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2488 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2489 for ac_dir
in $PATH; do
2490 test -z "$ac_dir" && ac_dir
=.
2491 if test -f $ac_dir/$ac_word; then
2492 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2493 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2499 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2503 XGETTEXT
="$ac_cv_path_XGETTEXT"
2504 if test -n "$XGETTEXT"; then
2505 echo "$ac_t""$XGETTEXT" 1>&6
2507 echo "$ac_t""no" 1>&6
2510 cat > conftest.
$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2515 extern int _nl_msg_cat_cntr;
2516 return _nl_msg_cat_cntr
2519 if { (eval echo configure
:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2524 echo "configure: failed program was:" >&5
2525 cat conftest.
$ac_ext >&5
2536 echo "$ac_t""no" 1>&6
2541 if test "$CATOBJEXT" = "NONE"; then
2542 nls_cv_use_gnu_gettext
=yes
2546 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2547 INTLOBJS
="\$(GETTOBJS)"
2548 # Extract the first word of "msgfmt", so it can be a program name with args.
2549 set dummy msgfmt
; ac_word
=$2
2550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2551 echo "configure:2552: checking for $ac_word" >&5
2552 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2553 echo $ac_n "(cached) $ac_c" 1>&6
2557 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2560 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2561 for ac_dir
in $PATH; do
2562 test -z "$ac_dir" && ac_dir
=.
2563 if test -f $ac_dir/$ac_word; then
2564 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2565 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2571 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2575 MSGFMT
="$ac_cv_path_MSGFMT"
2576 if test -n "$MSGFMT"; then
2577 echo "$ac_t""$MSGFMT" 1>&6
2579 echo "$ac_t""no" 1>&6
2582 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2583 set dummy gmsgfmt
; ac_word
=$2
2584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_word" >&5
2586 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2591 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2594 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2597 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2599 for ac_dir
in $ac_dummy; do
2600 test -z "$ac_dir" && ac_dir
=.
2601 if test -f $ac_dir/$ac_word; then
2602 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2607 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2611 GMSGFMT
="$ac_cv_path_GMSGFMT"
2612 if test -n "$GMSGFMT"; then
2613 echo "$ac_t""$GMSGFMT" 1>&6
2615 echo "$ac_t""no" 1>&6
2618 # Extract the first word of "xgettext", so it can be a program name with args.
2619 set dummy xgettext
; ac_word
=$2
2620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2621 echo "configure:2622: checking for $ac_word" >&5
2622 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2627 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2630 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2631 for ac_dir
in $PATH; do
2632 test -z "$ac_dir" && ac_dir
=.
2633 if test -f $ac_dir/$ac_word; then
2634 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2635 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2641 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2645 XGETTEXT
="$ac_cv_path_XGETTEXT"
2646 if test -n "$XGETTEXT"; then
2647 echo "$ac_t""$XGETTEXT" 1>&6
2649 echo "$ac_t""no" 1>&6
2653 USE_INCLUDED_LIBINTL
=yes
2657 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2659 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2660 nls_cv_header_intl
=libintl.h
2661 nls_cv_header_libgt
=libgettext.h
2664 if test "$XGETTEXT" != ":"; then
2665 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2668 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2673 # We need to process the po/ directory.
2677 nls_cv_header_intl
=libintl.h
2678 nls_cv_header_libgt
=libgettext.h
2681 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2682 # because some of the sources are only built for this goal.
2683 if test "$PACKAGE" = gettext; then
2685 USE_INCLUDED_LIBINTL
=yes
2688 for lang
in $ALL_LINGUAS; do
2689 GMOFILES
="$GMOFILES $lang.gmo"
2690 POFILES
="$POFILES $lang.po"
2706 if test "x$CATOBJEXT" != "x"; then
2707 if test "x$ALL_LINGUAS" = "x"; then
2710 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2711 echo "configure:2712: checking for catalogs to be installed" >&5
2713 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2714 case "$ALL_LINGUAS" in
2715 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2718 LINGUAS
=$NEW_LINGUAS
2719 echo "$ac_t""$LINGUAS" 1>&6
2722 if test -n "$LINGUAS"; then
2723 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2727 if test $ac_cv_header_locale_h = yes; then
2728 INCLUDE_LOCALE_H
="#include <locale.h>"
2731 /* The system does not provide the header <locale.h>. Take care yourself. */"
2735 if test -f $srcdir/po2tbl.
sed.
in; then
2736 if test "$CATOBJEXT" = ".cat"; then
2737 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2738 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2739 echo "configure:2740: checking for linux/version.h" >&5
2740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 cat > conftest.
$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 #include <linux/version.h>
2748 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2749 { (eval echo configure
:2750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2750 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2751 if test -z "$ac_err"; then
2753 eval "ac_cv_header_$ac_safe=yes"
2756 echo "configure: failed program was:" >&5
2757 cat conftest.
$ac_ext >&5
2759 eval "ac_cv_header_$ac_safe=no"
2763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2764 echo "$ac_t""yes" 1>&6
2767 echo "$ac_t""no" 1>&6
2772 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2774 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2775 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2778 if test "$PACKAGE" = "gettext"; then
2788 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2794 if test -d $srcdir/po
; then
2795 test -d po || mkdir po
2796 if test "x$srcdir" != "x."; then
2797 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2798 posrcprefix
="$srcdir/"
2800 posrcprefix
="../$srcdir/"
2806 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2807 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2822 configdirs
="doc testsuite"
2824 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2825 if test "${enable_multi_ice+set}" = set; then
2826 enableval
="$enable_multi_ice"
2827 case "${enableval}" in
2828 yes ) enable_multi_ice
="yes" ;;
2829 no
) enable_multi_ice
="no" ;;
2830 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2836 if test "${enable_multi_ice}" = "yes"; then
2837 configdirs
="${configdirs} multi-ice"
2841 .
${srcdir}/configure.
host
2843 .
${srcdir}/configure.tgt
2845 targ
=${target} ; .
${srcdir}/..
/bfd
/config.bfd
2849 .
${srcdir}/..
/bfd
/config.bfd
2851 targ_archs
=`echo ${targ_archs} | sed -e 's/ .*//;'`
2853 if test x
"${targ_archs}" != x
; then
2854 cat >> confdefs.h
<<EOF
2855 #define DEFAULT_BFD_ARCH ${targ_archs}
2859 if test x
"${targ_defvec}" != x
; then
2860 cat >> confdefs.h
<<EOF
2861 #define DEFAULT_BFD_VEC ${targ_defvec}
2866 for ac_prog
in mawk gawk nawk
awk
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy
$ac_prog; ac_word
=$2
2870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2871 echo "configure:2872: checking for $ac_word" >&5
2872 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 if test -n "$AWK"; then
2876 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2878 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2880 for ac_dir
in $ac_dummy; do
2881 test -z "$ac_dir" && ac_dir
=.
2882 if test -f $ac_dir/$ac_word; then
2883 ac_cv_prog_AWK
="$ac_prog"
2890 AWK
="$ac_cv_prog_AWK"
2891 if test -n "$AWK"; then
2892 echo "$ac_t""$AWK" 1>&6
2894 echo "$ac_t""no" 1>&6
2897 test -n "$AWK" && break
2900 # Find a good install program. We prefer a C program (faster),
2901 # so one script is as good as another. But avoid the broken or
2902 # incompatible versions:
2903 # SysV /etc/install, /usr/sbin/install
2904 # SunOS /usr/etc/install
2905 # IRIX /sbin/install
2907 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2908 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2909 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2910 # ./install, which can be erroneously created by make from ./install.sh.
2911 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2912 echo "configure:2913: checking for a BSD compatible install" >&5
2913 if test -z "$INSTALL"; then
2914 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2915 echo $ac_n "(cached) $ac_c" 1>&6
2917 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2918 for ac_dir
in $PATH; do
2919 # Account for people who put trailing slashes in PATH elements.
2921 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2923 # OSF1 and SCO ODT 3.0 have their own names for install.
2924 # Don't use installbsd from OSF since it installs stuff as root
2926 for ac_prog
in ginstall scoinst
install; do
2927 if test -f $ac_dir/$ac_prog; then
2928 if test $ac_prog = install &&
2929 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2930 # AIX install. It has an incompatible calling convention.
2933 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2944 if test "${ac_cv_path_install+set}" = set; then
2945 INSTALL
="$ac_cv_path_install"
2947 # As a last resort, use the slow shell script. We don't cache a
2948 # path for INSTALL within a source directory, because that will
2949 # break other packages using the cache if that directory is
2950 # removed, or if the path is relative.
2951 INSTALL
="$ac_install_sh"
2954 echo "$ac_t""$INSTALL" 1>&6
2956 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2957 # It thinks the first close brace ends the variable substitution.
2958 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2960 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2962 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2964 if test $host != $build; then
2965 ac_tool_prefix
=${host_alias}-
2970 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2971 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2973 echo "configure:2974: checking for $ac_word" >&5
2974 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 if test -n "$AR"; then
2978 ac_cv_prog_AR
="$AR" # Let the user override the test.
2980 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2982 for ac_dir
in $ac_dummy; do
2983 test -z "$ac_dir" && ac_dir
=.
2984 if test -f $ac_dir/$ac_word; then
2985 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2990 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2994 if test -n "$AR"; then
2995 echo "$ac_t""$AR" 1>&6
2997 echo "$ac_t""no" 1>&6
3002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3003 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3005 echo "configure:3006: checking for $ac_word" >&5
3006 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 if test -n "$RANLIB"; then
3010 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3012 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3014 for ac_dir
in $ac_dummy; do
3015 test -z "$ac_dir" && ac_dir
=.
3016 if test -f $ac_dir/$ac_word; then
3017 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3024 RANLIB
="$ac_cv_prog_RANLIB"
3025 if test -n "$RANLIB"; then
3026 echo "$ac_t""$RANLIB" 1>&6
3028 echo "$ac_t""no" 1>&6
3032 if test -z "$ac_cv_prog_RANLIB"; then
3033 if test -n "$ac_tool_prefix"; then
3034 # Extract the first word of "ranlib", so it can be a program name with args.
3035 set dummy ranlib
; ac_word
=$2
3036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3037 echo "configure:3038: checking for $ac_word" >&5
3038 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3039 echo $ac_n "(cached) $ac_c" 1>&6
3041 if test -n "$RANLIB"; then
3042 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3044 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3046 for ac_dir
in $ac_dummy; do
3047 test -z "$ac_dir" && ac_dir
=.
3048 if test -f $ac_dir/$ac_word; then
3049 ac_cv_prog_RANLIB
="ranlib"
3054 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3057 RANLIB
="$ac_cv_prog_RANLIB"
3058 if test -n "$RANLIB"; then
3059 echo "$ac_t""$RANLIB" 1>&6
3061 echo "$ac_t""no" 1>&6
3069 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3070 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3072 echo "configure:3073: checking for $ac_word" >&5
3073 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3076 if test -n "$DLLTOOL"; then
3077 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3079 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3081 for ac_dir
in $ac_dummy; do
3082 test -z "$ac_dir" && ac_dir
=.
3083 if test -f $ac_dir/$ac_word; then
3084 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3089 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3092 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3093 if test -n "$DLLTOOL"; then
3094 echo "$ac_t""$DLLTOOL" 1>&6
3096 echo "$ac_t""no" 1>&6
3101 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3102 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3104 echo "configure:3105: checking for $ac_word" >&5
3105 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 if test -n "$WINDRES"; then
3109 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3111 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3113 for ac_dir
in $ac_dummy; do
3114 test -z "$ac_dir" && ac_dir
=.
3115 if test -f $ac_dir/$ac_word; then
3116 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3121 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3124 WINDRES
="$ac_cv_prog_WINDRES"
3125 if test -n "$WINDRES"; then
3126 echo "$ac_t""$WINDRES" 1>&6
3128 echo "$ac_t""no" 1>&6
3133 for ac_prog
in 'bison -y' byacc
3135 # Extract the first word of "$ac_prog", so it can be a program name with args.
3136 set dummy
$ac_prog; ac_word
=$2
3137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3138 echo "configure:3139: checking for $ac_word" >&5
3139 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3142 if test -n "$YACC"; then
3143 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3145 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3147 for ac_dir
in $ac_dummy; do
3148 test -z "$ac_dir" && ac_dir
=.
3149 if test -f $ac_dir/$ac_word; then
3150 ac_cv_prog_YACC
="$ac_prog"
3157 YACC
="$ac_cv_prog_YACC"
3158 if test -n "$YACC"; then
3159 echo "$ac_t""$YACC" 1>&6
3161 echo "$ac_t""no" 1>&6
3164 test -n "$YACC" && break
3166 test -n "$YACC" || YACC
="yacc"
3169 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3170 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3172 echo "configure:3173: checking for $ac_word" >&5
3173 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 if test -n "$MIG"; then
3177 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3179 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3181 for ac_dir
in $ac_dummy; do
3182 test -z "$ac_dir" && ac_dir
=.
3183 if test -f $ac_dir/$ac_word; then
3184 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3189 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3192 MIG
="$ac_cv_prog_MIG"
3193 if test -n "$MIG"; then
3194 echo "$ac_t""$MIG" 1>&6
3196 echo "$ac_t""no" 1>&6
3202 if test "$program_transform_name" = s
,x
,x
,; then
3203 program_transform_name
=
3205 # Double any \ or $. echo might interpret backslashes.
3206 cat <<\EOF_SED
> conftestsed
3207 s
,\\,\\\\,g
; s
,\$
,$$
,g
3209 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3212 test "$program_prefix" != NONE
&&
3213 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3214 # Use a double $ so make ignores it.
3215 test "$program_suffix" != NONE
&&
3216 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3218 # sed with no file args requires a program.
3219 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3222 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3223 echo "configure:3224: checking return type of signal handlers" >&5
3224 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3225 echo $ac_n "(cached) $ac_c" 1>&6
3227 cat > conftest.
$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3230 #include <sys/types.h>
3236 extern "C" void (*signal (int, void (*)(int)))(int);
3238 void (*signal ()) ();
3245 if { (eval echo configure
:3246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3247 ac_cv_type_signal
=void
3249 echo "configure: failed program was:" >&5
3250 cat conftest.
$ac_ext >&5
3252 ac_cv_type_signal
=int
3257 echo "$ac_t""$ac_cv_type_signal" 1>&6
3258 cat >> confdefs.h
<<EOF
3259 #define RETSIGTYPE $ac_cv_type_signal
3264 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3265 echo "configure:3266: checking for ANSI C header files" >&5
3266 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 cat > conftest.
$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3277 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3278 { (eval echo configure
:3279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3279 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3280 if test -z "$ac_err"; then
3282 ac_cv_header_stdc
=yes
3285 echo "configure: failed program was:" >&5
3286 cat conftest.
$ac_ext >&5
3288 ac_cv_header_stdc
=no
3292 if test $ac_cv_header_stdc = yes; then
3293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3294 cat > conftest.
$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3300 egrep "memchr" >/dev
/null
2>&1; then
3304 ac_cv_header_stdc
=no
3310 if test $ac_cv_header_stdc = yes; then
3311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3312 cat > conftest.
$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3318 egrep "free" >/dev
/null
2>&1; then
3322 ac_cv_header_stdc
=no
3328 if test $ac_cv_header_stdc = yes; then
3329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3330 if test "$cross_compiling" = yes; then
3333 cat > conftest.
$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3337 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3338 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3340 int main () { int i; for (i = 0; i < 256; i++)
3341 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3345 if { (eval echo configure
:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3349 echo "configure: failed program was:" >&5
3350 cat conftest.
$ac_ext >&5
3352 ac_cv_header_stdc
=no
3360 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3361 if test $ac_cv_header_stdc = yes; then
3362 cat >> confdefs.h
<<\EOF
3363 #define STDC_HEADERS 1
3370 case $host_os in solaris2.7 | solaris2.8
) case "$GCC" in yes)
3371 cat >> confdefs.h
<<\EOF
3372 #define _MSE_INT_H 1
3377 for ac_hdr
in ctype.h endian.h link.h thread_db.h proc_service.h \
3378 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3379 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3380 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3381 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3382 time.h sys
/ioctl.h sys
/user.h \
3383 dirent.h sys
/ndir.h sys
/dir.h ndir.h \
3384 curses.h ncurses.h \
3387 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3388 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3389 echo "configure:3390: checking for $ac_hdr" >&5
3390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 cat > conftest.
$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3398 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3399 { (eval echo configure
:3400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3400 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3401 if test -z "$ac_err"; then
3403 eval "ac_cv_header_$ac_safe=yes"
3406 echo "configure: failed program was:" >&5
3407 cat conftest.
$ac_ext >&5
3409 eval "ac_cv_header_$ac_safe=no"
3413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3414 echo "$ac_t""yes" 1>&6
3415 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3416 cat >> confdefs.h
<<EOF
3417 #define $ac_tr_hdr 1
3421 echo "$ac_t""no" 1>&6
3425 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3426 echo "configure:3427: checking whether stat file-mode macros are broken" >&5
3427 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 cat > conftest.
$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 #include <sys/types.h>
3434 #include <sys/stat.h>
3436 #if defined(S_ISBLK) && defined(S_IFDIR)
3437 # if S_ISBLK (S_IFDIR)
3442 #if defined(S_ISBLK) && defined(S_IFCHR)
3443 # if S_ISBLK (S_IFCHR)
3448 #if defined(S_ISLNK) && defined(S_IFREG)
3449 # if S_ISLNK (S_IFREG)
3454 #if defined(S_ISSOCK) && defined(S_IFREG)
3455 # if S_ISSOCK (S_IFREG)
3461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3462 egrep "You lose" >/dev
/null
2>&1; then
3464 ac_cv_header_stat_broken
=yes
3467 ac_cv_header_stat_broken
=no
3473 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3474 if test $ac_cv_header_stat_broken = yes; then
3475 cat >> confdefs.h
<<\EOF
3476 #define STAT_MACROS_BROKEN 1
3482 echo $ac_n "checking for working const""... $ac_c" 1>&6
3483 echo "configure:3484: checking for working const" >&5
3484 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 cat > conftest.
$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3493 /* Ultrix mips cc rejects this. */
3494 typedef int charset[2]; const charset x;
3495 /* SunOS 4.1.1 cc rejects this. */
3496 char const *const *ccp;
3498 /* NEC SVR4.0.2 mips cc rejects this. */
3499 struct point {int x, y;};
3500 static struct point const zero = {0,0};
3501 /* AIX XL C 1.02.0.0 rejects this.
3502 It does not let you subtract one const X* pointer from another in an arm
3503 of an if-expression whose if-part is not a constant expression */
3504 const char *g = "string";
3505 ccp = &g + (g ? g-g : 0);
3506 /* HPUX 7.0 cc rejects these. */
3509 ccp = (char const *const *) p;
3510 { /* SCO 3.2v4 cc rejects this. */
3512 char const *s = 0 ? (char *) 0 : (char const *) 0;
3516 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3518 const int *foo = &x[0];
3521 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3522 typedef const int *iptr;
3526 { /* AIX XL C 1.02.0.0 rejects this saying
3527 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3528 struct s { int j; const int *ap[3]; };
3529 struct s *b; b->j = 5;
3531 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3537 if { (eval echo configure
:3538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3541 echo "configure: failed program was:" >&5
3542 cat conftest.
$ac_ext >&5
3549 echo "$ac_t""$ac_cv_c_const" 1>&6
3550 if test $ac_cv_c_const = no
; then
3551 cat >> confdefs.h
<<\EOF
3558 for ac_func
in setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask
3560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3561 echo "configure:3562: checking for $ac_func" >&5
3562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3565 cat > conftest.
$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 /* System header to define __stub macros and hopefully few prototypes,
3569 which can conflict with char $ac_func(); below. */
3571 /* Override any gcc2 internal prototype to avoid an error. */
3572 /* We use char because int might match the return type of a gcc2
3573 builtin and then its argument prototype would still apply. */
3578 /* The GNU C library defines this for functions which it implements
3579 to always fail with ENOSYS. Some functions are actually named
3580 something starting with __ and the normal name is an alias. */
3581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3589 if { (eval echo configure
:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3591 eval "ac_cv_func_$ac_func=yes"
3593 echo "configure: failed program was:" >&5
3594 cat conftest.
$ac_ext >&5
3596 eval "ac_cv_func_$ac_func=no"
3601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3602 echo "$ac_t""yes" 1>&6
3603 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3604 cat >> confdefs.h
<<EOF
3605 #define $ac_tr_func 1
3609 echo "$ac_t""no" 1>&6
3613 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3614 # for constant arguments. Useless!
3615 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3616 echo "configure:3617: checking for working alloca.h" >&5
3617 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3620 cat > conftest.
$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3625 char *p = alloca(2 * sizeof(int));
3628 if { (eval echo configure
:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3630 ac_cv_header_alloca_h
=yes
3632 echo "configure: failed program was:" >&5
3633 cat conftest.
$ac_ext >&5
3635 ac_cv_header_alloca_h
=no
3640 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3641 if test $ac_cv_header_alloca_h = yes; then
3642 cat >> confdefs.h
<<\EOF
3643 #define HAVE_ALLOCA_H 1
3648 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3649 echo "configure:3650: checking for alloca" >&5
3650 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 cat > conftest.
$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3658 # define alloca __builtin_alloca
3661 # include <malloc.h>
3662 # define alloca _alloca
3665 # include <alloca.h>
3670 # ifndef alloca /* predefined by HP cc +Olibcalls */
3679 char *p = (char *) alloca(1);
3682 if { (eval echo configure
:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3684 ac_cv_func_alloca_works
=yes
3686 echo "configure: failed program was:" >&5
3687 cat conftest.
$ac_ext >&5
3689 ac_cv_func_alloca_works
=no
3694 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3695 if test $ac_cv_func_alloca_works = yes; then
3696 cat >> confdefs.h
<<\EOF
3697 #define HAVE_ALLOCA 1
3702 if test $ac_cv_func_alloca_works = no
; then
3703 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3704 # that cause trouble. Some versions do not even contain alloca or
3705 # contain a buggy version. If you still want to use their alloca,
3706 # use ar to extract alloca.o from them instead of compiling alloca.c.
3707 ALLOCA
=alloca.
${ac_objext}
3708 cat >> confdefs.h
<<\EOF
3713 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3714 echo "configure:3715: checking whether alloca needs Cray hooks" >&5
3715 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3718 cat > conftest.
$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3721 #if defined(CRAY) && ! defined(CRAY2)
3728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3729 egrep "webecray" >/dev
/null
2>&1; then
3740 echo "$ac_t""$ac_cv_os_cray" 1>&6
3741 if test $ac_cv_os_cray = yes; then
3742 for ac_func
in _getb67 GETB67 getb67
; do
3743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3744 echo "configure:3745: checking for $ac_func" >&5
3745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3748 cat > conftest.
$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3751 /* System header to define __stub macros and hopefully few prototypes,
3752 which can conflict with char $ac_func(); below. */
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. */
3761 /* The GNU C library defines this for functions which it implements
3762 to always fail with ENOSYS. Some functions are actually named
3763 something starting with __ and the normal name is an alias. */
3764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3772 if { (eval echo configure
:3773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3774 eval "ac_cv_func_$ac_func=yes"
3776 echo "configure: failed program was:" >&5
3777 cat conftest.
$ac_ext >&5
3779 eval "ac_cv_func_$ac_func=no"
3784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3785 echo "$ac_t""yes" 1>&6
3786 cat >> confdefs.h
<<EOF
3787 #define CRAY_STACKSEG_END $ac_func
3792 echo "$ac_t""no" 1>&6
3798 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3799 echo "configure:3800: checking stack direction for C alloca" >&5
3800 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3803 if test "$cross_compiling" = yes; then
3804 ac_cv_c_stack_direction
=0
3806 cat > conftest.
$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3809 find_stack_direction ()
3811 static char *addr = 0;
3816 return find_stack_direction ();
3819 return (&dummy > addr) ? 1 : -1;
3823 exit (find_stack_direction() < 0);
3826 if { (eval echo configure
:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3828 ac_cv_c_stack_direction
=1
3830 echo "configure: failed program was:" >&5
3831 cat conftest.
$ac_ext >&5
3833 ac_cv_c_stack_direction
=-1
3840 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3841 cat >> confdefs.h
<<EOF
3842 #define STACK_DIRECTION $ac_cv_c_stack_direction
3848 # See if machine/reg.h supports the %fs and %gs i386 segment registers.
3849 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
3850 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
3851 echo "configure:3852: checking for r_fs in struct reg" >&5
3852 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3855 cat > conftest.
$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3858 #include <machine/reg.h>
3860 struct reg r; r.r_fs;
3863 if { (eval echo configure
:3864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3865 gdb_cv_struct_reg_r_fs
=yes
3867 echo "configure: failed program was:" >&5
3868 cat conftest.
$ac_ext >&5
3870 gdb_cv_struct_reg_r_fs
=no
3875 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
3876 if test $gdb_cv_struct_reg_r_fs = yes; then
3877 cat >> confdefs.h
<<\EOF
3878 #define HAVE_STRUCT_REG_R_FS 1
3882 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
3883 echo "configure:3884: checking for r_gs in struct reg" >&5
3884 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
3885 echo $ac_n "(cached) $ac_c" 1>&6
3887 cat > conftest.
$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3890 #include <machine/reg.h>
3892 struct reg r; r.r_gs;
3895 if { (eval echo configure
:3896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3897 gdb_cv_struct_reg_r_gs
=yes
3899 echo "configure: failed program was:" >&5
3900 cat conftest.
$ac_ext >&5
3902 gdb_cv_struct_reg_r_gs
=no
3907 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
3908 if test $gdb_cv_struct_reg_r_gs = yes; then
3909 cat >> confdefs.h
<<\EOF
3910 #define HAVE_STRUCT_REG_R_GS 1
3915 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
3916 echo "configure:3917: checking for PTRACE_GETREGS" >&5
3917 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3920 cat > conftest.
$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3923 #include <sys/ptrace.h>
3928 if { (eval echo configure
:3929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3930 gdb_cv_have_ptrace_getregs
=yes
3932 echo "configure: failed program was:" >&5
3933 cat conftest.
$ac_ext >&5
3935 gdb_cv_have_ptrace_getregs
=no
3940 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
3941 if test $gdb_cv_have_ptrace_getregs = yes; then
3942 cat >> confdefs.h
<<\EOF
3943 #define HAVE_PTRACE_GETREGS 1
3948 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
3949 echo "configure:3950: checking for PTRACE_GETFPXREGS" >&5
3950 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3953 cat > conftest.
$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3956 #include <sys/ptrace.h>
3961 if { (eval echo configure
:3962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3963 gdb_cv_have_ptrace_getfpxregs
=yes
3965 echo "configure: failed program was:" >&5
3966 cat conftest.
$ac_ext >&5
3968 gdb_cv_have_ptrace_getfpxregs
=no
3973 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
3974 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
3975 cat >> confdefs.h
<<\EOF
3976 #define HAVE_PTRACE_GETFPXREGS 1
3981 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
3982 echo "configure:3983: checking for socketpair in -lsocket" >&5
3983 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
3984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3987 ac_save_LIBS
="$LIBS"
3988 LIBS
="-lsocket $LIBS"
3989 cat > conftest.
$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3992 /* Override any gcc2 internal prototype to avoid an error. */
3993 /* We use char because int might match the return type of a gcc2
3994 builtin and then its argument prototype would still apply. */
4001 if { (eval echo configure
:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4003 eval "ac_cv_lib_$ac_lib_var=yes"
4005 echo "configure: failed program was:" >&5
4006 cat conftest.
$ac_ext >&5
4008 eval "ac_cv_lib_$ac_lib_var=no"
4011 LIBS
="$ac_save_LIBS"
4014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4015 echo "$ac_t""yes" 1>&6
4016 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4017 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4018 cat >> confdefs.h
<<EOF
4019 #define $ac_tr_lib 1
4022 LIBS
="-lsocket $LIBS"
4025 echo "$ac_t""no" 1>&6
4028 for ac_func
in socketpair
4030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4031 echo "configure:4032: checking for $ac_func" >&5
4032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4035 cat > conftest.
$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4038 /* System header to define __stub macros and hopefully few prototypes,
4039 which can conflict with char $ac_func(); below. */
4041 /* Override any gcc2 internal prototype to avoid an error. */
4042 /* We use char because int might match the return type of a gcc2
4043 builtin and then its argument prototype would still apply. */
4048 /* The GNU C library defines this for functions which it implements
4049 to always fail with ENOSYS. Some functions are actually named
4050 something starting with __ and the normal name is an alias. */
4051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4059 if { (eval echo configure
:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4061 eval "ac_cv_func_$ac_func=yes"
4063 echo "configure: failed program was:" >&5
4064 cat conftest.
$ac_ext >&5
4066 eval "ac_cv_func_$ac_func=no"
4071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4072 echo "$ac_t""yes" 1>&6
4073 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4074 cat >> confdefs.h
<<EOF
4075 #define $ac_tr_func 1
4079 echo "$ac_t""no" 1>&6
4085 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4086 echo "configure:4087: checking whether malloc must be declared" >&5
4087 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4090 cat > conftest.
$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4095 #ifdef HAVE_STRING_H
4098 #ifdef HAVE_STRINGS_H
4099 #include <strings.h>
4102 #ifdef HAVE_STDLIB_H
4105 #ifdef HAVE_UNISTD_H
4109 char *(*pfn) = (char *(*)) malloc
4112 if { (eval echo configure
:4113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4114 bfd_cv_decl_needed_malloc
=no
4116 echo "configure: failed program was:" >&5
4117 cat conftest.
$ac_ext >&5
4119 bfd_cv_decl_needed_malloc
=yes
4124 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4125 if test $bfd_cv_decl_needed_malloc = yes; then
4126 cat >> confdefs.h
<<\EOF
4127 #define NEED_DECLARATION_MALLOC 1
4132 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4133 echo "configure:4134: checking whether realloc must be declared" >&5
4134 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 cat > conftest.
$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4142 #ifdef HAVE_STRING_H
4145 #ifdef HAVE_STRINGS_H
4146 #include <strings.h>
4149 #ifdef HAVE_STDLIB_H
4152 #ifdef HAVE_UNISTD_H
4156 char *(*pfn) = (char *(*)) realloc
4159 if { (eval echo configure
:4160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4161 bfd_cv_decl_needed_realloc
=no
4163 echo "configure: failed program was:" >&5
4164 cat conftest.
$ac_ext >&5
4166 bfd_cv_decl_needed_realloc
=yes
4171 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4172 if test $bfd_cv_decl_needed_realloc = yes; then
4173 cat >> confdefs.h
<<\EOF
4174 #define NEED_DECLARATION_REALLOC 1
4179 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4180 echo "configure:4181: checking whether free must be declared" >&5
4181 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4184 cat > conftest.
$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4189 #ifdef HAVE_STRING_H
4192 #ifdef HAVE_STRINGS_H
4193 #include <strings.h>
4196 #ifdef HAVE_STDLIB_H
4199 #ifdef HAVE_UNISTD_H
4203 char *(*pfn) = (char *(*)) free
4206 if { (eval echo configure
:4207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4208 bfd_cv_decl_needed_free
=no
4210 echo "configure: failed program was:" >&5
4211 cat conftest.
$ac_ext >&5
4213 bfd_cv_decl_needed_free
=yes
4218 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4219 if test $bfd_cv_decl_needed_free = yes; then
4220 cat >> confdefs.h
<<\EOF
4221 #define NEED_DECLARATION_FREE 1
4226 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4227 echo "configure:4228: checking whether strerror must be declared" >&5
4228 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4231 cat > conftest.
$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4236 #ifdef HAVE_STRING_H
4239 #ifdef HAVE_STRINGS_H
4240 #include <strings.h>
4243 #ifdef HAVE_STDLIB_H
4246 #ifdef HAVE_UNISTD_H
4250 char *(*pfn) = (char *(*)) strerror
4253 if { (eval echo configure
:4254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4255 bfd_cv_decl_needed_strerror
=no
4257 echo "configure: failed program was:" >&5
4258 cat conftest.
$ac_ext >&5
4260 bfd_cv_decl_needed_strerror
=yes
4265 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4266 if test $bfd_cv_decl_needed_strerror = yes; then
4267 cat >> confdefs.h
<<\EOF
4268 #define NEED_DECLARATION_STRERROR 1
4273 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4274 echo "configure:4275: checking whether strdup must be declared" >&5
4275 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4278 cat > conftest.
$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4283 #ifdef HAVE_STRING_H
4286 #ifdef HAVE_STRINGS_H
4287 #include <strings.h>
4290 #ifdef HAVE_STDLIB_H
4293 #ifdef HAVE_UNISTD_H
4297 char *(*pfn) = (char *(*)) strdup
4300 if { (eval echo configure
:4301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4302 bfd_cv_decl_needed_strdup
=no
4304 echo "configure: failed program was:" >&5
4305 cat conftest.
$ac_ext >&5
4307 bfd_cv_decl_needed_strdup
=yes
4312 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4313 if test $bfd_cv_decl_needed_strdup = yes; then
4314 cat >> confdefs.h
<<\EOF
4315 #define NEED_DECLARATION_STRDUP 1
4320 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4321 echo "configure:4322: checking whether strstr must be declared" >&5
4322 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4323 echo $ac_n "(cached) $ac_c" 1>&6
4325 cat > conftest.
$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4330 #ifdef HAVE_STRING_H
4333 #ifdef HAVE_STRINGS_H
4334 #include <strings.h>
4337 #ifdef HAVE_STDLIB_H
4340 #ifdef HAVE_UNISTD_H
4344 char *(*pfn) = (char *(*)) strstr
4347 if { (eval echo configure
:4348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4349 bfd_cv_decl_needed_strstr
=no
4351 echo "configure: failed program was:" >&5
4352 cat conftest.
$ac_ext >&5
4354 bfd_cv_decl_needed_strstr
=yes
4359 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4360 if test $bfd_cv_decl_needed_strstr = yes; then
4361 cat >> confdefs.h
<<\EOF
4362 #define NEED_DECLARATION_STRSTR 1
4369 # The following save_state_t checkery is only necessary for HPUX
4370 # versions earlier than 10.20. When those fade from memory, this
4371 # could be expunged. --jsm 1999-03-22
4373 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4374 echo "configure:4375: checking for HPUX save_state structure" >&5
4375 cat > conftest.
$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4378 #include <machine/save_state.h>
4380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4381 egrep "save_state_t" >/dev
/null
2>&1; then
4383 gdb_cv_hpux_savestate
=yes
4386 gdb_cv_hpux_savestate
=no
4390 cat > conftest.
$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 #include <machine/save_state.h>
4395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4396 egrep "ss_wide" >/dev
/null
2>&1; then
4398 gdb_cv_hpux_sswide
=yes
4401 gdb_cv_hpux_sswide
=no
4405 if test $gdb_cv_hpux_savestate = yes
4407 cat >> confdefs.h
<<\EOF
4408 #define HAVE_STRUCT_SAVE_STATE_T 1
4412 if test $gdb_cv_hpux_sswide = yes
4414 cat >> confdefs.h
<<\EOF
4415 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4419 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4422 # If we are configured native on GNU/Linux, work around problems with
4424 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4426 if test "${target}" = "${host}"; then
4429 cat >> confdefs.h
<<\EOF
4430 #define START_INFERIOR_TRAPS_EXPECTED 2
4433 cat >> confdefs.h
<<\EOF
4434 #define sys_quotactl 1
4438 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4439 cat >> confdefs.h
<<\EOF
4440 #define NEW_PROC_API 1
4445 cat >> confdefs.h
<<\EOF
4446 #define NEW_PROC_API 1
4453 if test "$ac_cv_header_sys_procfs_h" = yes; then
4454 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4455 echo "configure:4456: checking for pstatus_t in sys/procfs.h" >&5
4456 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 cat > conftest.
$ac_ext <<EOF
4460 #line 4461 "configure"
4461 #include "confdefs.h"
4464 #include <sys/procfs.h>
4469 if { (eval echo configure
:4470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4471 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4473 echo "configure: failed program was:" >&5
4474 cat conftest.
$ac_ext >&5
4476 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4482 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4483 cat >> confdefs.h
<<\EOF
4484 #define HAVE_PSTATUS_T 1
4488 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4490 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4491 echo "configure:4492: checking for prrun_t in sys/procfs.h" >&5
4492 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4495 cat > conftest.
$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4500 #include <sys/procfs.h>
4505 if { (eval echo configure
:4506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4507 bfd_cv_have_sys_procfs_type_prrun_t
=yes
4509 echo "configure: failed program was:" >&5
4510 cat conftest.
$ac_ext >&5
4512 bfd_cv_have_sys_procfs_type_prrun_t
=no
4518 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4519 cat >> confdefs.h
<<\EOF
4520 #define HAVE_PRRUN_T 1
4524 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4526 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4527 echo "configure:4528: checking for gregset_t in sys/procfs.h" >&5
4528 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4531 cat > conftest.
$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4536 #include <sys/procfs.h>
4541 if { (eval echo configure
:4542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4543 bfd_cv_have_sys_procfs_type_gregset_t
=yes
4545 echo "configure: failed program was:" >&5
4546 cat conftest.
$ac_ext >&5
4548 bfd_cv_have_sys_procfs_type_gregset_t
=no
4554 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
4555 cat >> confdefs.h
<<\EOF
4556 #define HAVE_GREGSET_T 1
4560 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
4562 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
4563 echo "configure:4564: checking for fpregset_t in sys/procfs.h" >&5
4564 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4567 cat > conftest.
$ac_ext <<EOF
4568 #line 4569 "configure"
4569 #include "confdefs.h"
4572 #include <sys/procfs.h>
4577 if { (eval echo configure
:4578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4579 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
4581 echo "configure: failed program was:" >&5
4582 cat conftest.
$ac_ext >&5
4584 bfd_cv_have_sys_procfs_type_fpregset_t
=no
4590 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
4591 cat >> confdefs.h
<<\EOF
4592 #define HAVE_FPREGSET_T 1
4596 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
4598 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
4599 echo "configure:4600: checking for prgregset_t in sys/procfs.h" >&5
4600 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4603 cat > conftest.
$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4608 #include <sys/procfs.h>
4613 if { (eval echo configure
:4614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4615 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
4617 echo "configure: failed program was:" >&5
4618 cat conftest.
$ac_ext >&5
4620 bfd_cv_have_sys_procfs_type_prgregset_t
=no
4626 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4627 cat >> confdefs.h
<<\EOF
4628 #define HAVE_PRGREGSET_T 1
4632 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
4634 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
4635 echo "configure:4636: checking for prfpregset_t in sys/procfs.h" >&5
4636 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4639 cat > conftest.
$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4644 #include <sys/procfs.h>
4649 if { (eval echo configure
:4650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4651 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
4653 echo "configure: failed program was:" >&5
4654 cat conftest.
$ac_ext >&5
4656 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
4662 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4663 cat >> confdefs.h
<<\EOF
4664 #define HAVE_PRFPREGSET_T 1
4668 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
4670 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
4671 echo "configure:4672: checking for prgregset32_t in sys/procfs.h" >&5
4672 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
4673 echo $ac_n "(cached) $ac_c" 1>&6
4675 cat > conftest.
$ac_ext <<EOF
4676 #line 4677 "configure"
4677 #include "confdefs.h"
4680 #include <sys/procfs.h>
4685 if { (eval echo configure
:4686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4687 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
4689 echo "configure: failed program was:" >&5
4690 cat conftest.
$ac_ext >&5
4692 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
4698 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
4699 cat >> confdefs.h
<<\EOF
4700 #define HAVE_PRGREGSET32_T 1
4704 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
4706 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
4707 echo "configure:4708: checking for prfpregset32_t in sys/procfs.h" >&5
4708 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4711 cat > conftest.
$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4716 #include <sys/procfs.h>
4721 if { (eval echo configure
:4722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4723 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
4725 echo "configure: failed program was:" >&5
4726 cat conftest.
$ac_ext >&5
4728 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
4734 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
4735 cat >> confdefs.h
<<\EOF
4736 #define HAVE_PRFPREGSET32_T 1
4740 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
4742 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
4743 echo "configure:4744: checking for lwpid_t in sys/procfs.h" >&5
4744 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4747 cat > conftest.
$ac_ext <<EOF
4748 #line 4749 "configure"
4749 #include "confdefs.h"
4752 #include <sys/procfs.h>
4757 if { (eval echo configure
:4758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4759 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
4761 echo "configure: failed program was:" >&5
4762 cat conftest.
$ac_ext >&5
4764 bfd_cv_have_sys_procfs_type_lwpid_t
=no
4770 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4771 cat >> confdefs.h
<<\EOF
4772 #define HAVE_LWPID_T 1
4776 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
4778 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
4779 echo "configure:4780: checking for psaddr_t in sys/procfs.h" >&5
4780 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
4781 echo $ac_n "(cached) $ac_c" 1>&6
4783 cat > conftest.
$ac_ext <<EOF
4784 #line 4785 "configure"
4785 #include "confdefs.h"
4788 #include <sys/procfs.h>
4793 if { (eval echo configure
:4794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4795 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
4797 echo "configure: failed program was:" >&5
4798 cat conftest.
$ac_ext >&5
4800 bfd_cv_have_sys_procfs_type_psaddr_t
=no
4806 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4807 cat >> confdefs.h
<<\EOF
4808 #define HAVE_PSADDR_T 1
4812 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
4816 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
4817 echo "configure:4818: checking for struct link_map32 in sys/link.h" >&5
4818 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
4819 echo $ac_n "(cached) $ac_c" 1>&6
4821 cat > conftest.
$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4825 #include <sys/link.h>
4827 struct link_map32 l;
4830 if { (eval echo configure
:4831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4832 gdb_cv_have_struct_link_map32
=yes
4834 echo "configure: failed program was:" >&5
4835 cat conftest.
$ac_ext >&5
4837 gdb_cv_have_struct_link_map32
=no
4842 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
4843 if test $gdb_cv_have_struct_link_map32 = yes; then
4844 cat >> confdefs.h
<<\EOF
4845 #define HAVE_STRUCT_LINK_MAP32 1
4852 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
4853 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
4854 echo "configure:4855: checking whether prfpregset_t type is broken" >&5
4855 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 if test "$cross_compiling" = yes; then
4859 gdb_cv_prfpregset_t_broken
=yes
4861 cat > conftest.
$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 #include <sys/procfs.h>
4867 if (sizeof (prfpregset_t) == sizeof (void *))
4872 if { (eval echo configure
:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4874 gdb_cv_prfpregset_t_broken
=no
4876 echo "configure: failed program was:" >&5
4877 cat conftest.
$ac_ext >&5
4879 gdb_cv_prfpregset_t_broken
=yes
4886 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
4887 if test $gdb_cv_prfpregset_t_broken = yes; then
4888 cat >> confdefs.h
<<\EOF
4889 #define PRFPREGSET_T_BROKEN 1
4896 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
4897 echo "configure:4898: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
4898 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4901 cat > conftest.
$ac_ext <<EOF
4902 #line 4903 "configure"
4903 #include "confdefs.h"
4905 #include <sys/types.h>
4906 #include <sys/procfs.h>
4911 dummy = ioctl(0, PIOCSET, &dummy);
4915 if { (eval echo configure
:4916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4917 gdb_cv_have_procfs_piocset
=yes
4919 echo "configure: failed program was:" >&5
4920 cat conftest.
$ac_ext >&5
4922 gdb_cv_have_procfs_piocset
=no
4927 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
4928 if test $gdb_cv_have_procfs_piocset = yes; then
4929 cat >> confdefs.h
<<\EOF
4930 #define HAVE_PROCFS_PIOCSET 1
4936 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4937 echo "configure:4938: checking for main in -lm" >&5
4938 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
4939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4942 ac_save_LIBS
="$LIBS"
4944 cat > conftest.
$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4952 if { (eval echo configure
:4953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4954 eval "ac_cv_lib_$ac_lib_var=yes"
4956 echo "configure: failed program was:" >&5
4957 cat conftest.
$ac_ext >&5
4959 eval "ac_cv_lib_$ac_lib_var=no"
4962 LIBS
="$ac_save_LIBS"
4965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4966 echo "$ac_t""yes" 1>&6
4967 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4969 cat >> confdefs.h
<<EOF
4970 #define $ac_tr_lib 1
4976 echo "$ac_t""no" 1>&6
4980 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
4981 echo "configure:4982: checking for wctype in -lc" >&5
4982 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
4983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4984 echo $ac_n "(cached) $ac_c" 1>&6
4986 ac_save_LIBS
="$LIBS"
4988 cat > conftest.
$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4991 /* Override any gcc2 internal prototype to avoid an error. */
4992 /* We use char because int might match the return type of a gcc2
4993 builtin and then its argument prototype would still apply. */
5000 if { (eval echo configure
:5001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5002 eval "ac_cv_lib_$ac_lib_var=yes"
5004 echo "configure: failed program was:" >&5
5005 cat conftest.
$ac_ext >&5
5007 eval "ac_cv_lib_$ac_lib_var=no"
5010 LIBS
="$ac_save_LIBS"
5013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5014 echo "$ac_t""yes" 1>&6
5017 echo "$ac_t""no" 1>&6
5018 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5019 echo "configure:5020: checking for wctype in -lw" >&5
5020 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5022 echo $ac_n "(cached) $ac_c" 1>&6
5024 ac_save_LIBS
="$LIBS"
5026 cat > conftest.
$ac_ext <<EOF
5027 #line 5028 "configure"
5028 #include "confdefs.h"
5029 /* Override any gcc2 internal prototype to avoid an error. */
5030 /* We use char because int might match the return type of a gcc2
5031 builtin and then its argument prototype would still apply. */
5038 if { (eval echo configure
:5039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5040 eval "ac_cv_lib_$ac_lib_var=yes"
5042 echo "configure: failed program was:" >&5
5043 cat conftest.
$ac_ext >&5
5045 eval "ac_cv_lib_$ac_lib_var=no"
5048 LIBS
="$ac_save_LIBS"
5051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5052 echo "$ac_t""yes" 1>&6
5053 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
5054 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5055 cat >> confdefs.h
<<EOF
5056 #define $ac_tr_lib 1
5062 echo "$ac_t""no" 1>&6
5069 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
5070 echo "configure:5071: checking for long long support in compiler" >&5
5071 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5074 cat > conftest.
$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5080 extern long long foo;
5081 switch (foo & 2) { case 0: return 1; }
5085 if { (eval echo configure
:5086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5087 gdb_cv_c_long_long
=yes
5089 echo "configure: failed program was:" >&5
5090 cat conftest.
$ac_ext >&5
5092 gdb_cv_c_long_long
=no
5097 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
5098 if test $gdb_cv_c_long_long = yes; then
5099 cat >> confdefs.h
<<\EOF
5100 #define CC_HAS_LONG_LONG 1
5106 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
5107 echo "configure:5108: checking for long long support in printf" >&5
5108 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
5109 echo $ac_n "(cached) $ac_c" 1>&6
5111 if test "$cross_compiling" = yes; then
5112 gdb_cv_printf_has_long_long
=no
5114 cat > conftest.
$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5121 l = (l << 16) + 0x0123;
5122 l = (l << 16) + 0x4567;
5123 l = (l << 16) + 0x89ab;
5124 l = (l << 16) + 0xcdef;
5125 sprintf (buf, "0x%016llx", l);
5126 return (strcmp ("0x0123456789abcdef", buf));
5129 if { (eval echo configure
:5130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5131 gdb_cv_printf_has_long_long
=yes
5133 echo "configure: failed program was:" >&5
5134 cat conftest.
$ac_ext >&5
5136 gdb_cv_printf_has_long_long
=no
5143 if test $gdb_cv_printf_has_long_long = yes; then
5144 cat >> confdefs.h
<<\EOF
5145 #define PRINTF_HAS_LONG_LONG 1
5149 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
5152 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
5153 echo "configure:5154: checking for long double support in compiler" >&5
5154 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
5155 echo $ac_n "(cached) $ac_c" 1>&6
5157 cat > conftest.
$ac_ext <<EOF
5158 #line 5159 "configure"
5159 #include "confdefs.h"
5165 if { (eval echo configure
:5166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5167 ac_cv_c_long_double
=yes
5169 echo "configure: failed program was:" >&5
5170 cat conftest.
$ac_ext >&5
5172 ac_cv_c_long_double
=no
5177 echo "$ac_t""$ac_cv_c_long_double" 1>&6
5178 if test $ac_cv_c_long_double = yes; then
5179 cat >> confdefs.h
<<\EOF
5180 #define HAVE_LONG_DOUBLE 1
5186 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
5187 echo "configure:5188: checking for long double support in printf" >&5
5188 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
5189 echo $ac_n "(cached) $ac_c" 1>&6
5191 if test "$cross_compiling" = yes; then
5192 gdb_cv_printf_has_long_double
=no
5194 cat > conftest.
$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5200 long double f = 3.141592653;
5201 sprintf (buf, "%Lg", f);
5202 return (strncmp ("3.14159", buf, 7));
5205 if { (eval echo configure
:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5207 gdb_cv_printf_has_long_double
=yes
5209 echo "configure: failed program was:" >&5
5210 cat conftest.
$ac_ext >&5
5212 gdb_cv_printf_has_long_double
=no
5219 if test $gdb_cv_printf_has_long_double = yes; then
5220 cat >> confdefs.h
<<\EOF
5221 #define PRINTF_HAS_LONG_DOUBLE 1
5225 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
5228 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
5229 echo "configure:5230: checking for long double support in scanf" >&5
5230 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5233 if test "$cross_compiling" = yes; then
5234 gdb_cv_scanf_has_long_double
=no
5236 cat > conftest.
$ac_ext <<EOF
5237 #line 5238 "configure"
5238 #include "confdefs.h"
5241 char *buf = "3.141592653";
5243 sscanf (buf, "%Lg", &f);
5244 return !(f > 3.14159 && f < 3.14160);
5247 if { (eval echo configure
:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5249 gdb_cv_scanf_has_long_double
=yes
5251 echo "configure: failed program was:" >&5
5252 cat conftest.
$ac_ext >&5
5254 gdb_cv_scanf_has_long_double
=no
5261 if test $gdb_cv_scanf_has_long_double = yes; then
5262 cat >> confdefs.h
<<\EOF
5263 #define SCANF_HAS_LONG_DOUBLE 1
5267 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
5269 for ac_hdr
in unistd.h
5271 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5273 echo "configure:5274: checking for $ac_hdr" >&5
5274 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5277 cat > conftest.
$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5282 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5283 { (eval echo configure
:5284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5284 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5285 if test -z "$ac_err"; then
5287 eval "ac_cv_header_$ac_safe=yes"
5290 echo "configure: failed program was:" >&5
5291 cat conftest.
$ac_ext >&5
5293 eval "ac_cv_header_$ac_safe=no"
5297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5299 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5300 cat >> confdefs.h
<<EOF
5301 #define $ac_tr_hdr 1
5305 echo "$ac_t""no" 1>&6
5309 for ac_func
in getpagesize
5311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5312 echo "configure:5313: checking for $ac_func" >&5
5313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5314 echo $ac_n "(cached) $ac_c" 1>&6
5316 cat > conftest.
$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5319 /* System header to define __stub macros and hopefully few prototypes,
5320 which can conflict with char $ac_func(); below. */
5322 /* Override any gcc2 internal prototype to avoid an error. */
5323 /* We use char because int might match the return type of a gcc2
5324 builtin and then its argument prototype would still apply. */
5329 /* The GNU C library defines this for functions which it implements
5330 to always fail with ENOSYS. Some functions are actually named
5331 something starting with __ and the normal name is an alias. */
5332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5340 if { (eval echo configure
:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5342 eval "ac_cv_func_$ac_func=yes"
5344 echo "configure: failed program was:" >&5
5345 cat conftest.
$ac_ext >&5
5347 eval "ac_cv_func_$ac_func=no"
5352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5353 echo "$ac_t""yes" 1>&6
5354 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5355 cat >> confdefs.h
<<EOF
5356 #define $ac_tr_func 1
5360 echo "$ac_t""no" 1>&6
5364 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5365 echo "configure:5366: checking for working mmap" >&5
5366 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 if test "$cross_compiling" = yes; then
5370 ac_cv_func_mmap_fixed_mapped
=no
5372 cat > conftest.
$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5376 /* Thanks to Mike Haertel and Jim Avera for this test.
5377 Here is a matrix of mmap possibilities:
5378 mmap private not fixed
5379 mmap private fixed at somewhere currently unmapped
5380 mmap private fixed at somewhere already mapped
5381 mmap shared not fixed
5382 mmap shared fixed at somewhere currently unmapped
5383 mmap shared fixed at somewhere already mapped
5384 For private mappings, we should verify that changes cannot be read()
5385 back from the file, nor mmap's back from the file at a different
5386 address. (There have been systems where private was not correctly
5387 implemented like the infamous i386 svr4.0, and systems where the
5388 VM page cache was not coherent with the filesystem buffer cache
5389 like early versions of FreeBSD and possibly contemporary NetBSD.)
5390 For shared mappings, we should conversely verify that changes get
5391 propogated back to all the places they're supposed to be.
5393 Grep wants private fixed already mapped.
5394 The main things grep needs to know about mmap are:
5395 * does it exist and is it safe to write into the mmap'd area
5396 * how to use it (BSD variants) */
5397 #include <sys/types.h>
5399 #include <sys/mman.h>
5401 /* This mess was copied from the GNU getpagesize.h. */
5402 #ifndef HAVE_GETPAGESIZE
5403 # ifdef HAVE_UNISTD_H
5404 # include <unistd.h>
5407 /* Assume that all systems that can run configure have sys/param.h. */
5408 # ifndef HAVE_SYS_PARAM_H
5409 # define HAVE_SYS_PARAM_H 1
5412 # ifdef _SC_PAGESIZE
5413 # define getpagesize() sysconf(_SC_PAGESIZE)
5414 # else /* no _SC_PAGESIZE */
5415 # ifdef HAVE_SYS_PARAM_H
5416 # include <sys/param.h>
5417 # ifdef EXEC_PAGESIZE
5418 # define getpagesize() EXEC_PAGESIZE
5419 # else /* no EXEC_PAGESIZE */
5421 # define getpagesize() NBPG * CLSIZE
5424 # endif /* no CLSIZE */
5425 # else /* no NBPG */
5427 # define getpagesize() NBPC
5428 # else /* no NBPC */
5430 # define getpagesize() PAGESIZE
5431 # endif /* PAGESIZE */
5432 # endif /* no NBPC */
5433 # endif /* no NBPG */
5434 # endif /* no EXEC_PAGESIZE */
5435 # else /* no HAVE_SYS_PARAM_H */
5436 # define getpagesize() 8192 /* punt totally */
5437 # endif /* no HAVE_SYS_PARAM_H */
5438 # endif /* no _SC_PAGESIZE */
5440 #endif /* no HAVE_GETPAGESIZE */
5443 extern "C" { void *malloc(unsigned); }
5451 char *data, *data2, *data3;
5455 pagesize = getpagesize();
5458 * First, make a file with some known garbage in it.
5460 data = malloc(pagesize);
5463 for (i = 0; i < pagesize; ++i)
5464 *(data + i) = rand();
5466 fd = creat("conftestmmap", 0600);
5469 if (write(fd, data, pagesize) != pagesize)
5474 * Next, try to mmap the file at a fixed address which
5475 * already has something else allocated at it. If we can,
5476 * also make sure that we see the same garbage.
5478 fd = open("conftestmmap", O_RDWR);
5481 data2 = malloc(2 * pagesize);
5484 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5485 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5486 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5488 for (i = 0; i < pagesize; ++i)
5489 if (*(data + i) != *(data2 + i))
5493 * Finally, make sure that changes to the mapped area
5494 * do not percolate back to the file as seen by read().
5495 * (This is a bug on some variants of i386 svr4.0.)
5497 for (i = 0; i < pagesize; ++i)
5498 *(data2 + i) = *(data2 + i) + 1;
5499 data3 = malloc(pagesize);
5502 if (read(fd, data3, pagesize) != pagesize)
5504 for (i = 0; i < pagesize; ++i)
5505 if (*(data + i) != *(data3 + i))
5508 unlink("conftestmmap");
5513 if { (eval echo configure
:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5515 ac_cv_func_mmap_fixed_mapped
=yes
5517 echo "configure: failed program was:" >&5
5518 cat conftest.
$ac_ext >&5
5520 ac_cv_func_mmap_fixed_mapped
=no
5527 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5528 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5529 cat >> confdefs.h
<<\EOF
5538 if test ${build} = ${host} -a ${host} = ${target} ; then
5541 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
5542 echo "configure:5543: checking for HPUX/OSF thread support" >&5
5543 if test -f /usr
/include
/dce
/cma_config.h
; then
5544 if test "$GCC" = "yes" ; then
5545 echo "$ac_t""yes" 1>&6
5546 cat >> confdefs.h
<<\EOF
5547 #define HAVE_HPUX_THREAD_SUPPORT 1
5550 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
5551 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
5553 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
5556 echo "$ac_t""no" 1>&6
5560 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
5561 echo "configure:5562: checking for Solaris thread debugging library" >&5
5562 if test -f /usr
/lib
/libthread_db.so
.1 ; then
5563 echo "$ac_t""yes" 1>&6
5564 cat >> confdefs.h
<<\EOF
5565 #define HAVE_THREAD_DB_LIB 1
5568 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
5569 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
5570 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5571 echo "configure:5572: checking for dlopen in -ldl" >&5
5572 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5573 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5574 echo $ac_n "(cached) $ac_c" 1>&6
5576 ac_save_LIBS
="$LIBS"
5578 cat > conftest.
$ac_ext <<EOF
5579 #line 5580 "configure"
5580 #include "confdefs.h"
5581 /* Override any gcc2 internal prototype to avoid an error. */
5582 /* We use char because int might match the return type of a gcc2
5583 builtin and then its argument prototype would still apply. */
5590 if { (eval echo configure
:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5592 eval "ac_cv_lib_$ac_lib_var=yes"
5594 echo "configure: failed program was:" >&5
5595 cat conftest.
$ac_ext >&5
5597 eval "ac_cv_lib_$ac_lib_var=no"
5600 LIBS
="$ac_save_LIBS"
5603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5604 echo "$ac_t""yes" 1>&6
5605 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5606 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5607 cat >> confdefs.h
<<EOF
5608 #define $ac_tr_lib 1
5614 echo "$ac_t""no" 1>&6
5617 if test "$GCC" = "yes" ; then
5618 # The GNU linker requires the -export-dynamic option to make
5619 # all symbols visible in the dynamic symbol table.
5620 hold_ldflags
=$LDFLAGS
5621 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
5622 echo "configure:5623: checking for the ld -export-dynamic flag" >&5
5623 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
5624 cat > conftest.
$ac_ext <<EOF
5625 #line 5626 "configure"
5626 #include "confdefs.h"
5632 if { (eval echo configure
:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5636 echo "configure: failed program was:" >&5
5637 cat conftest.
$ac_ext >&5
5642 LDFLAGS
=$hold_ldflags
5643 echo "$ac_t""$found" 1>&6
5644 if test $found = yes; then
5645 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
5648 # Sun randomly tweaked the prototypes in <proc_service.h>
5650 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
5651 echo "configure:5652: checking if <proc_service.h> is old" >&5
5652 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
5653 echo $ac_n "(cached) $ac_c" 1>&6
5656 cat > conftest.
$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5660 #include <proc_service.h>
5662 (struct ps_prochandle*, psaddr_t, const void*, size_t);
5668 if { (eval echo configure
:5669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5670 gdb_cv_proc_service_is_old
=no
5672 echo "configure: failed program was:" >&5
5673 cat conftest.
$ac_ext >&5
5675 gdb_cv_proc_service_is_old
=yes
5681 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
5682 if test $gdb_cv_proc_service_is_old = yes; then
5683 cat >> confdefs.h
<<\EOF
5684 #define PROC_SERVICE_IS_OLD 1
5689 echo "$ac_t""no" 1>&6
5697 # Check whether --enable-gdbmi or --disable-gdbmi was given.
5698 if test "${enable_gdbmi+set}" = set; then
5699 enableval
="$enable_gdbmi"
5701 case "${enable_gdbmi}" in
5703 "") enable_gdbmi
=yes ;;
5705 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
5711 case ${enable_gdbmi} in
5713 if test -d "${srcdir}/mi" ; then
5714 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
5715 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
5716 CONFIG_SRCS
="${CONFIG_SRS} \$(SUBDIR_MI_SRCS)"
5717 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
5718 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
5719 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
5720 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
5721 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
5722 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
5727 # Check whether --enable-tui or --disable-tui was given.
5728 if test "${enable_tui+set}" = set; then
5729 enableval
="$enable_tui"
5731 case "${enable_tui}" in
5733 "") enable_tui
=yes ;;
5735 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
5741 case ${enable_tui} in
5743 if test -d "${srcdir}/tui" ; then
5744 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
5745 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
5746 CONFIG_SRCS
="${CONFIG_SRS} \$(SUBDIR_TUI_SRCS)"
5747 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
5748 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
5749 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
5750 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
5751 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
5752 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
5757 # Check whether --enable-netrom or --disable-netrom was given.
5758 if test "${enable_netrom+set}" = set; then
5759 enableval
="$enable_netrom"
5760 case "${enableval}" in
5761 yes) enable_netrom
=yes ;;
5762 no
) enable_netrom
=no
;;
5763 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
5768 if test "${enable_netrom}" = "yes"; then
5769 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
5770 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
5774 # NOTE: Don't add -Wall or -Wunused, they both include
5775 # -Wunused-parameter which reports bogus warnings.
5776 # NOTE: If you add to this list, remember to update
5777 # gdb/doc/gdbint.texinfo.
5778 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
5779 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
5780 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
5781 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
5782 # -Wchar-subscripts -Wuninitialized -Wtraditional -Wshadow -Wcast-qual
5783 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
5784 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
5785 # -Woverloaded-virtual -Winline -Werror"
5786 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5787 if test "${enable_build_warnings+set}" = set; then
5788 enableval
="$enable_build_warnings"
5789 case "${enableval}" in
5791 no
) build_warnings
="-w";;
5792 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5793 build_warnings
="${build_warnings} ${t}";;
5794 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5795 build_warnings
="${t} ${build_warnings}";;
5796 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5798 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5799 echo "Setting compiler warning flags = $build_warnings" 6>&1
5802 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
5803 if test "${enable_gdb_build_warnings+set}" = set; then
5804 enableval
="$enable_gdb_build_warnings"
5805 case "${enableval}" in
5807 no
) build_warnings
="-w";;
5808 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5809 build_warnings
="${build_warnings} ${t}";;
5810 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
5811 build_warnings
="${t} ${build_warnings}";;
5812 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5814 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
5815 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
5820 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
5822 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
5823 echo "configure:5824: checking compiler warning flags" >&5
5824 # Separate out the -Werror flag as some files just cannot be
5825 # compiled with it enabled.
5826 for w
in ${build_warnings}; do
5828 -Werr*) WERROR_CFLAGS
=-Werror ;;
5829 *) # Check that GCC accepts it
5830 if $CC $w 2>&1 |
grep 'unrecognized option' > /dev
/null
; then
5833 WARN_CFLAGS
="${WARN_CFLAGS} $w"
5837 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
5847 # Check whether --with-mmalloc or --without-mmalloc was given.
5848 if test "${with_mmalloc+set}" = set; then
5849 withval
="$with_mmalloc"
5850 case "${withval}" in
5851 yes) want_mmalloc
=true
;;
5852 no
) want_mmalloc
=false
;;
5853 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
5859 if test x
$want_mmalloc = xtrue
; then
5860 cat >> confdefs.h
<<\EOF
5861 #define USE_MMALLOC 1
5864 cat >> confdefs.h
<<\EOF
5865 #define MMCHECK_FORCE 1
5868 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
5869 MMALLOC
='../mmalloc/libmmalloc.a'
5872 # Check whether --with-included-regex or --without-included-regex was given.
5873 if test "${with_included_regex+set}" = set; then
5874 withval
="$with_included_regex"
5875 case "${withval}" in
5876 yes) want_included_regex
=true
;;
5877 no
) want_included_regex
=false
;;
5878 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
5881 want_included_regex
=true
5884 if test $want_included_regex = false
; then
5885 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
5886 echo "configure:5887: checking for GNU regex" >&5
5887 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5890 cat > conftest.
$ac_ext <<EOF
5891 #line 5892 "configure"
5892 #include "confdefs.h"
5893 #include <gnu-versions.h>
5894 #include <sys/types.h>
5897 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
5898 #error No valid GNU regex.
5903 if { (eval echo configure
:5904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5905 gdb_cv_have_gnu_regex
=yes
5907 echo "configure: failed program was:" >&5
5908 cat conftest.
$ac_ext >&5
5910 gdb_cv_have_gnu_regex
=no
5915 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
5916 if test $gdb_cv_have_gnu_regex = no
; then
5917 want_included_regex
=true
5921 if test x
${want_included_regex} = xtrue
; then
5923 cat >> confdefs.h
<<\EOF
5924 #define USE_INCLUDED_REGEX 1
5930 # In the Cygwin environment, we need some additional flags.
5931 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5932 echo "configure:5933: checking for cygwin" >&5
5933 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
5934 echo $ac_n "(cached) $ac_c" 1>&6
5936 cat > conftest.
$ac_ext <<EOF
5937 #line 5938 "configure"
5938 #include "confdefs.h"
5940 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
5944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5945 egrep "lose" >/dev
/null
2>&1; then
5947 gdb_cv_os_cygwin
=yes
5956 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
5959 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
5961 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
5962 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
5967 if test x
$gdb_host = xgo32
; then
5970 if test x
$gdb_cv_os_cygwin = xyes
; then
5971 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
5974 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5975 echo "configure:5976: checking for tgetent in -lncurses" >&5
5976 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
5977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5980 ac_save_LIBS
="$LIBS"
5981 LIBS
="-lncurses $LIBS"
5982 cat > conftest.
$ac_ext <<EOF
5983 #line 5984 "configure"
5984 #include "confdefs.h"
5985 /* Override any gcc2 internal prototype to avoid an error. */
5986 /* We use char because int might match the return type of a gcc2
5987 builtin and then its argument prototype would still apply. */
5994 if { (eval echo configure
:5995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5996 eval "ac_cv_lib_$ac_lib_var=yes"
5998 echo "configure: failed program was:" >&5
5999 cat conftest.
$ac_ext >&5
6001 eval "ac_cv_lib_$ac_lib_var=no"
6004 LIBS
="$ac_save_LIBS"
6007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6008 echo "$ac_t""yes" 1>&6
6011 echo "$ac_t""no" 1>&6
6012 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
6013 echo "configure:6014: checking for tgetent in -lHcurses" >&5
6014 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
6015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6016 echo $ac_n "(cached) $ac_c" 1>&6
6018 ac_save_LIBS
="$LIBS"
6019 LIBS
="-lHcurses $LIBS"
6020 cat > conftest.
$ac_ext <<EOF
6021 #line 6022 "configure"
6022 #include "confdefs.h"
6023 /* Override any gcc2 internal prototype to avoid an error. */
6024 /* We use char because int might match the return type of a gcc2
6025 builtin and then its argument prototype would still apply. */
6032 if { (eval echo configure
:6033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6034 eval "ac_cv_lib_$ac_lib_var=yes"
6036 echo "configure: failed program was:" >&5
6037 cat conftest.
$ac_ext >&5
6039 eval "ac_cv_lib_$ac_lib_var=no"
6042 LIBS
="$ac_save_LIBS"
6045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6046 echo "$ac_t""yes" 1>&6
6049 echo "$ac_t""no" 1>&6
6050 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
6051 echo "configure:6052: checking for tgetent in -ltermlib" >&5
6052 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
6053 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6054 echo $ac_n "(cached) $ac_c" 1>&6
6056 ac_save_LIBS
="$LIBS"
6057 LIBS
="-ltermlib $LIBS"
6058 cat > conftest.
$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6061 /* Override any gcc2 internal prototype to avoid an error. */
6062 /* We use char because int might match the return type of a gcc2
6063 builtin and then its argument prototype would still apply. */
6070 if { (eval echo configure
:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6072 eval "ac_cv_lib_$ac_lib_var=yes"
6074 echo "configure: failed program was:" >&5
6075 cat conftest.
$ac_ext >&5
6077 eval "ac_cv_lib_$ac_lib_var=no"
6080 LIBS
="$ac_save_LIBS"
6083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6084 echo "$ac_t""yes" 1>&6
6087 echo "$ac_t""no" 1>&6
6088 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
6089 echo "configure:6090: checking for tgetent in -ltermcap" >&5
6090 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
6091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6092 echo $ac_n "(cached) $ac_c" 1>&6
6094 ac_save_LIBS
="$LIBS"
6095 LIBS
="-ltermcap $LIBS"
6096 cat > conftest.
$ac_ext <<EOF
6097 #line 6098 "configure"
6098 #include "confdefs.h"
6099 /* Override any gcc2 internal prototype to avoid an error. */
6100 /* We use char because int might match the return type of a gcc2
6101 builtin and then its argument prototype would still apply. */
6108 if { (eval echo configure
:6109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6110 eval "ac_cv_lib_$ac_lib_var=yes"
6112 echo "configure: failed program was:" >&5
6113 cat conftest.
$ac_ext >&5
6115 eval "ac_cv_lib_$ac_lib_var=no"
6118 LIBS
="$ac_save_LIBS"
6121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6122 echo "$ac_t""yes" 1>&6
6125 echo "$ac_t""no" 1>&6
6126 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
6127 echo "configure:6128: checking for tgetent in -lcurses" >&5
6128 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
6129 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6130 echo $ac_n "(cached) $ac_c" 1>&6
6132 ac_save_LIBS
="$LIBS"
6133 LIBS
="-lcurses $LIBS"
6134 cat > conftest.
$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */
6146 if { (eval echo configure
:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6148 eval "ac_cv_lib_$ac_lib_var=yes"
6150 echo "configure: failed program was:" >&5
6151 cat conftest.
$ac_ext >&5
6153 eval "ac_cv_lib_$ac_lib_var=no"
6156 LIBS
="$ac_save_LIBS"
6159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6160 echo "$ac_t""yes" 1>&6
6163 echo "$ac_t""no" 1>&6
6164 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
6165 echo "configure:6166: checking for tgetent in -lterminfo" >&5
6166 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
6167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6168 echo $ac_n "(cached) $ac_c" 1>&6
6170 ac_save_LIBS
="$LIBS"
6171 LIBS
="-lterminfo $LIBS"
6172 cat > conftest.
$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6175 /* Override any gcc2 internal prototype to avoid an error. */
6176 /* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */
6184 if { (eval echo configure
:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6186 eval "ac_cv_lib_$ac_lib_var=yes"
6188 echo "configure: failed program was:" >&5
6189 cat conftest.
$ac_ext >&5
6191 eval "ac_cv_lib_$ac_lib_var=no"
6194 LIBS
="$ac_save_LIBS"
6197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6198 echo "$ac_t""yes" 1>&6
6201 echo "$ac_t""no" 1>&6
6215 if test "x$TERM_LIB" = x
6217 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
6223 # libreadline needs libuser32.a in a cygwin environment
6225 if test x
$gdb_cv_os_cygwin = xyes
; then
6226 WIN32LIBS
="-luser32"
6228 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
6234 LIBGUI
="../libgui/src/libgui.a"
6235 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
6239 # Check whether --with-cpu or --without-cpu was given.
6240 if test "${with_cpu+set}" = set; then
6243 powerpc-
* | powerpcle-
* )
6244 ## It would be nice to keep this table in sync with the one in
6246 case "${with_cpu}" in
6247 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
6249 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
6251 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
6252 ## These are all RS6000 variants, as far as GDB is concerned.
6262 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
6268 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
6271 cat >> confdefs.h
<<EOF
6272 #define TARGET_CPU_DEFAULT "${with_cpu}"
6280 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6281 if test "${enable_gdbtk+set}" = set; then
6282 enableval
="$enable_gdbtk"
6283 case "${enableval}" in
6287 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
6290 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
6298 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
6302 # Default is on for everything but go32 and Cygwin
6307 if test -d "${srcdir}/gdbtk" ; then
6323 if test "${enable_gdbtk}" = "yes"; then
6327 # Ok, lets find the tcl configuration
6328 # First, look for one uninstalled.
6329 # the alternative search directory is invoked by --with-tclconfig
6332 if test x
"${no_tcl}" = x
; then
6333 # we reset no_tcl in case something fails here
6335 # Check whether --with-tclconfig or --without-tclconfig was given.
6336 if test "${with_tclconfig+set}" = set; then
6337 withval
="$with_tclconfig"
6338 with_tclconfig
=${withval}
6341 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
6342 echo "configure:6343: checking for Tcl configuration" >&5
6343 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
6344 echo $ac_n "(cached) $ac_c" 1>&6
6348 # First check to see if --with-tclconfig was specified.
6349 if test x
"${with_tclconfig}" != x
; then
6350 if test -f "${with_tclconfig}/tclConfig.sh" ; then
6351 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
6353 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
6357 # then check for a private Tcl installation
6358 if test x
"${ac_cv_c_tclconfig}" = x
; then
6361 `ls -dr ../tcl[7-9]* 2>/dev/null` \
6363 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
6365 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
6366 if test -f "$i/${configdir}/tclConfig.sh" ; then
6367 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
6372 # check in a few common install locations
6373 if test x
"${ac_cv_c_tclconfig}" = x
; then
6374 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6375 if test -f "$i/tclConfig.sh" ; then
6376 ac_cv_c_tclconfig
=`(cd $i; pwd)`
6381 # check in a few other private locations
6382 if test x
"${ac_cv_c_tclconfig}" = x
; then
6385 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
6386 if test -f "$i/${configdir}/tclConfig.sh" ; then
6387 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
6395 if test x
"${ac_cv_c_tclconfig}" = x
; then
6396 TCLCONFIG
="# no Tcl configs found"
6397 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
6400 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
6401 echo "$ac_t""found $TCLCONFIG" 1>&6
6405 if test -z "${no_tcl}"; then
6435 # Ok, lets find the tk configuration
6436 # First, look for one uninstalled.
6437 # the alternative search directory is invoked by --with-tkconfig
6440 if test x
"${no_tk}" = x
; then
6441 # we reset no_tk in case something fails here
6443 # Check whether --with-tkconfig or --without-tkconfig was given.
6444 if test "${with_tkconfig+set}" = set; then
6445 withval
="$with_tkconfig"
6446 with_tkconfig
=${withval}
6449 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
6450 echo "configure:6451: checking for Tk configuration" >&5
6451 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
6452 echo $ac_n "(cached) $ac_c" 1>&6
6456 # First check to see if --with-tkconfig was specified.
6457 if test x
"${with_tkconfig}" != x
; then
6458 if test -f "${with_tkconfig}/tkConfig.sh" ; then
6459 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
6461 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
6465 # then check for a private Tk library
6466 if test x
"${ac_cv_c_tkconfig}" = x
; then
6469 `ls -dr ../tk[4-9]* 2>/dev/null` \
6471 `ls -dr ../../tk[4-9]* 2>/dev/null` \
6473 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
6474 if test -f "$i/${configdir}/tkConfig.sh" ; then
6475 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
6480 # check in a few common install locations
6481 if test x
"${ac_cv_c_tkconfig}" = x
; then
6482 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6483 if test -f "$i/tkConfig.sh" ; then
6484 ac_cv_c_tkconfig
=`(cd $i; pwd)`
6489 # check in a few other private locations
6490 if test x
"${ac_cv_c_tkconfig}" = x
; then
6493 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
6494 if test -f "$i/${configdir}/tkConfig.sh" ; then
6495 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
6503 if test x
"${ac_cv_c_tkconfig}" = x
; then
6504 TKCONFIG
="# no Tk configs found"
6505 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
6508 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
6509 echo "$ac_t""found $TKCONFIG" 1>&6
6515 # If $no_tk is nonempty, then we can't do Tk, and there is no
6516 # point to doing Tcl.
6517 if test -z "${no_tk}"; then
6519 if test -f "$TKCONFIG" ; then
6537 # Ok, lets find the tcl source trees so we can use the headers
6538 # Warning: transition of version 9 to 10 will break this algorithm
6539 # because 10 sorts before 9. We also look for just tcl. We have to
6540 # be careful that we don't match stuff like tclX by accident.
6541 # the alternative search directory is involked by --with-tclinclude
6545 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
6546 echo "configure:6547: checking for Tcl private headers. dir=${configdir}" >&5
6547 # Check whether --with-tclinclude or --without-tclinclude was given.
6548 if test "${with_tclinclude+set}" = set; then
6549 withval
="$with_tclinclude"
6550 with_tclinclude
=${withval}
6553 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
6554 echo $ac_n "(cached) $ac_c" 1>&6
6557 # first check to see if --with-tclinclude was specified
6558 if test x
"${with_tclinclude}" != x
; then
6559 if test -f ${with_tclinclude}/tclInt.h
; then
6560 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
6561 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
6562 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
6564 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6568 # next check if it came with Tcl configuration file
6569 if test x
"${ac_cv_c_tclconfig}" = x
; then
6570 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
6571 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
6575 # next check in private source directory
6577 # since ls returns lowest version numbers first, reverse its output
6578 if test x
"${ac_cv_c_tclh}" = x
; then
6581 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
6582 ${srcdir}/..
/..
/tcl \
6583 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
6584 ${srcdir}/..
/..
/..
/tcl \
6585 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
6586 if test -f $i/generic
/tclInt.h
; then
6587 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
6592 # finally check in a few common install locations
6594 # since ls returns lowest version numbers first, reverse its output
6595 if test x
"${ac_cv_c_tclh}" = x
; then
6597 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
6598 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
6599 /usr
/local
/src
/tcl \
6600 /usr
/local
/lib
/tcl \
6601 ${prefix}/include
; do
6602 if test -f $i/generic
/tclInt.h
; then
6603 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
6608 # see if one is installed
6609 if test x
"${ac_cv_c_tclh}" = x
; then
6610 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
6611 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
6612 echo "configure:6613: checking for tclInt.h" >&5
6613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6614 echo $ac_n "(cached) $ac_c" 1>&6
6616 cat > conftest.
$ac_ext <<EOF
6617 #line 6618 "configure"
6618 #include "confdefs.h"
6621 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6622 { (eval echo configure
:6623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6623 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6624 if test -z "$ac_err"; then
6626 eval "ac_cv_header_$ac_safe=yes"
6629 echo "configure: failed program was:" >&5
6630 cat conftest.
$ac_ext >&5
6632 eval "ac_cv_header_$ac_safe=no"
6636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6637 echo "$ac_t""yes" 1>&6
6638 ac_cv_c_tclh
=installed
6640 echo "$ac_t""no" 1>&6
6648 if test x
"${ac_cv_c_tclh}" = x
; then
6649 TCLHDIR
="# no Tcl private headers found"
6650 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
6652 if test x
"${ac_cv_c_tclh}" != x
; then
6654 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
6655 echo "$ac_t""is installed" 1>&6
6658 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
6659 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
6660 TCLHDIR
="-I${ac_cv_c_tclh}"
6668 # Ok, lets find the tk source trees so we can use the headers
6669 # If the directory (presumably symlink) named "tk" exists, use that one
6670 # in preference to any others. Same logic is used when choosing library
6671 # and again with Tcl. The search order is the best place to look first, then in
6672 # decreasing significance. The loop breaks if the trigger file is found.
6673 # Note the gross little conversion here of srcdir by cd'ing to the found
6674 # directory. This converts the path from a relative to an absolute, so
6675 # recursive cache variables for the path will work right. We check all
6676 # the possible paths in one loop rather than many seperate loops to speed
6678 # the alternative search directory is involked by --with-tkinclude
6681 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
6682 echo "configure:6683: checking for Tk private headers" >&5
6683 # Check whether --with-tkinclude or --without-tkinclude was given.
6684 if test "${with_tkinclude+set}" = set; then
6685 withval
="$with_tkinclude"
6686 with_tkinclude
=${withval}
6689 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6693 # first check to see if --with-tkinclude was specified
6694 if test x
"${with_tkinclude}" != x
; then
6695 if test -f ${with_tkinclude}/tk.h
; then
6696 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
6697 elif test -f ${with_tkinclude}/generic
/tk.h
; then
6698 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
6700 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
6704 # next check if it came with Tk configuration file
6705 if test x
"${ac_cv_c_tkconfig}" = x
; then
6706 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
6707 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
6711 # next check in private source directory
6713 # since ls returns lowest version numbers first, reverse its output
6714 if test x
"${ac_cv_c_tkh}" = x
; then
6717 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
6718 ${srcdir}/..
/..
/tk \
6719 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
6720 ${srcdir}/..
/..
/..
/tk \
6721 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
6722 if test -f $i/generic
/tk.h
; then
6723 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6728 # finally check in a few common install locations
6730 # since ls returns lowest version numbers first, reverse its output
6731 if test x
"${ac_cv_c_tkh}" = x
; then
6733 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
6734 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
6737 ${prefix}/include
; do
6738 if test -f $i/generic
/tk.h
; then
6739 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
6744 # see if one is installed
6745 if test x
"${ac_cv_c_tkh}" = x
; then
6746 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
6747 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
6748 echo "configure:6749: checking for tk.h" >&5
6749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6750 echo $ac_n "(cached) $ac_c" 1>&6
6752 cat > conftest.
$ac_ext <<EOF
6753 #line 6754 "configure"
6754 #include "confdefs.h"
6757 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6758 { (eval echo configure
:6759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6759 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6760 if test -z "$ac_err"; then
6762 eval "ac_cv_header_$ac_safe=yes"
6765 echo "configure: failed program was:" >&5
6766 cat conftest.
$ac_ext >&5
6768 eval "ac_cv_header_$ac_safe=no"
6772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6773 echo "$ac_t""yes" 1>&6
6774 ac_cv_c_tkh
=installed
6776 echo "$ac_t""no" 1>&6
6784 if test x
"${ac_cv_c_tkh}" != x
; then
6786 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
6787 echo "$ac_t""is installed" 1>&6
6790 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
6791 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
6792 TKHDIR
="-I${ac_cv_c_tkh}"
6795 TKHDIR
="# no Tk directory found"
6796 echo "configure: warning: Can't find Tk private headers" 1>&2
6803 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6804 echo "configure:6805: checking for Itcl private headers. srcdir=${srcdir}" >&5
6805 if test x
"${ac_cv_c_itclh}" = x
; then
6806 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
6807 if test -f $i/generic
/itcl.h
; then
6808 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
6813 if test x
"${ac_cv_c_itclh}" = x
; then
6814 ITCLHDIR
="# no Itcl private headers found"
6815 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
6817 if test x
"${ac_cv_c_itclh}" != x
; then
6818 ITCLHDIR
="-I${ac_cv_c_itclh}"
6820 # should always be here
6821 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
6826 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6827 echo "configure:6828: checking for Itk private headers. srcdir=${srcdir}" >&5
6828 if test x
"${ac_cv_c_itkh}" = x
; then
6829 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
6830 if test -f $i/generic
/itk.h
; then
6831 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
6836 if test x
"${ac_cv_c_itkh}" = x
; then
6837 ITKHDIR
="# no Itk private headers found"
6838 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
6840 if test x
"${ac_cv_c_itkh}" != x
; then
6841 ITKHDIR
="-I${ac_cv_c_itkh}"
6843 # should always be here
6844 # ITKLIB="../itcl/itk/unix/libitk.a"
6849 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6850 echo "configure:6851: checking for Tix private headers. srcdir=${srcdir}" >&5
6851 if test x
"${ac_cv_c_tixh}" = x
; then
6852 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
6853 if test -f $i/generic
/tix.h
; then
6854 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
6859 if test x
"${ac_cv_c_tixh}" = x
; then
6860 TIXHDIR
="# no Tix private headers found"
6861 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
6863 if test x
"${ac_cv_c_tixh}" != x
; then
6864 TIXHDIR
="-I${ac_cv_c_tixh}"
6869 # now look for Itcl library stuff
6873 # Ok, lets find the itcl configuration
6874 # First, look for one uninstalled.
6875 # the alternative search directory is invoked by --with-itclconfig
6878 if test x
"${no_itcl}" = x
; then
6879 # we reset no_itcl in case something fails here
6881 # Check whether --with-itclconfig or --without-itclconfig was given.
6882 if test "${with_itclconfig+set}" = set; then
6883 withval
="$with_itclconfig"
6884 with_itclconfig
=${withval}
6887 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
6888 echo "configure:6889: checking for Itcl configuration" >&5
6889 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
6890 echo $ac_n "(cached) $ac_c" 1>&6
6894 # First check to see if --with-itclconfig was specified.
6895 if test x
"${with_itclconfig}" != x
; then
6896 if test -f "${with_itclconfig}/itclConfig.sh" ; then
6897 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
6899 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
6903 # then check for a private Itcl library
6904 if test x
"${ac_cv_c_itclconfig}" = x
; then
6907 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
6909 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
6911 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
6912 if test -f "$i/itclConfig.sh" ; then
6913 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6918 # check in a few common install locations
6919 if test x
"${ac_cv_c_itclconfig}" = x
; then
6920 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
6921 if test -f "$i/itclConfig.sh" ; then
6922 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6927 # check in a few other private locations
6928 if test x
"${ac_cv_c_itclconfig}" = x
; then
6930 ${srcdir}/..
/itcl
/itcl \
6931 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
6932 if test -f "$i/itclConfig.sh" ; then
6933 ac_cv_c_itclconfig
=`(cd $i; pwd)`
6941 if test x
"${ac_cv_c_itclconfig}" = x
; then
6942 ITCLCONFIG
="# no Itcl configs found"
6943 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
6946 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
6947 echo "$ac_t""found $ITCLCONFIG" 1>&6
6951 if test -z "${no_itcl}"; then
6953 if test -f "$ITCLCONFIG" ; then
6969 itcldir
=..
/itcl
/itcl
/win
/
6972 itcldir
=..
/itcl
/itcl
/unix
/
6977 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
6978 ITCL_DEPS
="${itcldir}${ITCL_LIB_FILE}"
6982 # now look for Itk library stuff
6985 # Ok, lets find the itk configuration
6986 # First, look for one uninstalled.
6987 # the alternative search directory is invoked by --with-itkconfig
6990 if test x
"${no_itk}" = x
; then
6991 # we reset no_itk in case something fails here
6993 # Check whether --with-itkconfig or --without-itkconfig was given.
6994 if test "${with_itkconfig+set}" = set; then
6995 withval
="$with_itkconfig"
6996 with_itkconfig
=${withval}
6999 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
7000 echo "configure:7001: checking for Itk configuration" >&5
7001 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
7002 echo $ac_n "(cached) $ac_c" 1>&6
7006 # First check to see if --with-itkconfig was specified.
7007 if test x
"${with_itkconfig}" != x
; then
7008 if test -f "${with_itkconfig}/itkConfig.sh" ; then
7009 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
7011 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
7015 # then check for a private Itk library
7016 if test x
"${ac_cv_c_itkconfig}" = x
; then
7019 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
7021 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
7023 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
7024 if test -f "$i/itkConfig.sh" ; then
7025 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7030 # check in a few common install locations
7031 if test x
"${ac_cv_c_itkconfig}" = x
; then
7032 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7033 if test -f "$i/itkConfig.sh" ; then
7034 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7039 # check in a few other private locations
7040 if test x
"${ac_cv_c_itkconfig}" = x
; then
7042 ${srcdir}/..
/itcl
/itk \
7043 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
7044 if test -f "$i/itkConfig.sh" ; then
7045 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7053 if test x
"${ac_cv_c_itkconfig}" = x
; then
7054 ITKCONFIG
="# no Itk configs found"
7055 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
7058 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
7059 echo "$ac_t""found $ITKCONFIG" 1>&6
7064 if test -z "${no_itcl}"; then
7066 if test -f "$ITKCONFIG" ; then
7083 itkdir
=..
/itcl
/itk
/win
/
7086 itkdir
=..
/itcl
/itk
/unix
/
7090 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
7091 ITK_DEPS
="${itkdir}${ITK_LIB_FILE}"
7094 # now look for Tix library stuff
7097 # Ok, lets find the tix configuration
7098 # First, look for one uninstalled.
7099 # the alternative search directory is invoked by --with-itkconfig
7102 if test x
"${no_tix}" = x
; then
7103 # we reset no_tix in case something fails here
7105 # Check whether --with-tixconfig or --without-tixconfig was given.
7106 if test "${with_tixconfig+set}" = set; then
7107 withval
="$with_tixconfig"
7108 with_tixconfig
=${withval}
7111 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
7112 echo "configure:7113: checking for Tix configuration" >&5
7113 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
7114 echo $ac_n "(cached) $ac_c" 1>&6
7118 # First check to see if --with-tixconfig was specified.
7119 if test x
"${with_tixconfig}" != x
; then
7120 if test -f "${with_tixconfig}/tixConfig.sh" ; then
7121 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
7123 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
7127 # then check for a private Tix library
7128 if test x
"${ac_cv_c_tixconfig}" = x
; then
7131 `ls -dr ../tix 2>/dev/null` \
7133 `ls -dr ../../tix 2>/dev/null` \
7135 `ls -dr ../../../tix 2>/dev/null` ; do
7136 echo "**** Looking at $i - with ${configdir}"
7137 if test -f "$i/tixConfig.sh" ; then
7138 ac_cv_c_tixconfig
=`(cd $i; pwd)`
7143 # check in a few common install locations
7144 if test x
"${ac_cv_c_tixconfig}" = x
; then
7145 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7146 echo "**** Looking at $i"
7147 if test -f "$i/tixConfig.sh" ; then
7148 ac_cv_c_tixconfig
=`(cd $i; pwd)`
7153 # check in a few other private locations
7154 echo "**** Other private locations"
7155 if test x
"${ac_cv_c_tixconfig}" = x
; then
7158 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
7159 echo "**** Looking at $i - with ${configdir}"
7160 if test -f "$i/${configdir}/tixConfig.sh" ; then
7161 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
7169 if test x
"${ac_cv_c_tixconfig}" = x
; then
7170 TIXCONFIG
="# no Tix configs found"
7171 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
7174 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
7175 echo "$ac_t""found $TIXCONFIG" 1>&6
7180 if test -z "${no_tix}"; then
7182 if test -f "$TIXCONFIG" ; then
7193 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
7194 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
7197 ENABLE_CFLAGS
="$ENABLE_CFLAGS -DGDBTK"
7198 # Tcl/Tk 8.1 require -fwritable strings. I don't
7199 # know whether 8.2 will or not, but I bet it will.
7200 # I don't have to worry about 7.x since we don't support it.
7202 if test "$GCC" = "yes"; then
7203 if test "$TCL_VERSION" != "8.0" ; then
7204 GDBTK_CFLAGS
="-fwritable-strings"
7208 # Include some libraries that Tcl and Tk want.
7209 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
7210 CONFIG_DEPS
='$(LIBGUI) $(ITCL_DEPS) $(ITK_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
7211 # Yes, the ordering seems wrong here. But it isn't.
7212 # TK_LIBS is the list of libraries that need to be linked
7213 # after Tcl/Tk. Note that this isn't put into LIBS. If it
7214 # were in LIBS then any link tests after this point would
7215 # try to include things like `$(LIBGUI)', which wouldn't work.
7216 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
7217 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"
7218 CONFIG_OBS
="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-varobj.o gdbtk-wrapper.o"
7219 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"
7220 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
7221 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
7222 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
7223 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
7225 if test x
$gdb_cv_os_cygwin = xyes
; then
7226 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
7227 WIN32LDAPP
="-Wl,--subsystem,console"
7228 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
7246 # If we find X, set shell vars x_includes and x_libraries to the
7247 # paths, otherwise set no_x=yes.
7248 # Uses ac_ vars as temps to allow command line to override cache and checks.
7249 # --without-x overrides everything else, but does not touch the cache.
7250 echo $ac_n "checking for X""... $ac_c" 1>&6
7251 echo "configure:7252: checking for X" >&5
7253 # Check whether --with-x or --without-x was given.
7254 if test "${with_x+set}" = set; then
7259 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7260 if test "x$with_x" = xno
; then
7261 # The user explicitly disabled X.
7264 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7265 # Both variables are already set.
7268 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7269 echo $ac_n "(cached) $ac_c" 1>&6
7271 # One or both of the vars are not set, and there is no cached value.
7272 ac_x_includes
=NO ac_x_libraries
=NO
7274 if mkdir conftestdir
; then
7276 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7277 cat > Imakefile
<<'EOF'
7279 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7281 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7282 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7283 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7284 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7285 for ac_extension
in a so sl
; do
7286 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7287 test -f $ac_im_libdir/libX11.
$ac_extension; then
7288 ac_im_usrlibdir
=$ac_im_libdir; break
7291 # Screen out bogus values from the imake configuration. They are
7292 # bogus both because they are the default anyway, and because
7293 # using them would break gcc on systems where it needs fixed includes.
7294 case "$ac_im_incroot" in
7296 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
7298 case "$ac_im_usrlibdir" in
7300 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
7307 if test "$ac_x_includes" = NO
; then
7308 # Guess where to find include files, by looking for this one X11 .h file.
7309 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
7311 # First, try using that file with no special directory specified.
7312 cat > conftest.
$ac_ext <<EOF
7313 #line 7314 "configure"
7314 #include "confdefs.h"
7315 #include <$x_direct_test_include>
7317 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7318 { (eval echo configure
:7319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7319 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7320 if test -z "$ac_err"; then
7322 # We can compile using X headers with no special include directory.
7326 echo "configure: failed program was:" >&5
7327 cat conftest.
$ac_ext >&5
7329 # Look for the header file in a standard set of common directories.
7330 # Check X11 before X11Rn because it is often a symlink to the current release.
7333 /usr
/X11R
6/include \
7334 /usr
/X11R
5/include \
7335 /usr
/X11R
4/include \
7338 /usr
/include
/X11R6 \
7339 /usr
/include
/X11R5 \
7340 /usr
/include
/X11R4 \
7342 /usr
/local
/X11
/include \
7343 /usr
/local
/X11R
6/include \
7344 /usr
/local
/X11R
5/include \
7345 /usr
/local
/X11R
4/include \
7347 /usr
/local
/include
/X11 \
7348 /usr
/local
/include
/X11R6 \
7349 /usr
/local
/include
/X11R5 \
7350 /usr
/local
/include
/X11R4 \
7354 /usr
/XFree86
/include
/X11 \
7357 /usr
/local
/include \
7358 /usr
/unsupported
/include \
7359 /usr
/athena
/include \
7360 /usr
/local
/x11r
5/include \
7361 /usr
/lpp
/Xamples
/include \
7363 /usr
/openwin
/include \
7364 /usr
/openwin
/share
/include \
7367 if test -r "$ac_dir/$x_direct_test_include"; then
7368 ac_x_includes
=$ac_dir
7374 fi # $ac_x_includes = NO
7376 if test "$ac_x_libraries" = NO
; then
7377 # Check for the libraries.
7379 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
7380 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
7382 # See if we find them without any special options.
7383 # Don't add to $LIBS permanently.
7384 ac_save_LIBS
="$LIBS"
7385 LIBS
="-l$x_direct_test_library $LIBS"
7386 cat > conftest.
$ac_ext <<EOF
7387 #line 7388 "configure"
7388 #include "confdefs.h"
7391 ${x_direct_test_function}()
7394 if { (eval echo configure
:7395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7396 LIBS
="$ac_save_LIBS"
7397 # We can link X programs with no special library path.
7400 echo "configure: failed program was:" >&5
7401 cat conftest.
$ac_ext >&5
7403 LIBS
="$ac_save_LIBS"
7404 # First see if replacing the include by lib works.
7405 # Check X11 before X11Rn because it is often a symlink to the current release.
7406 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
7417 /usr
/local
/X11
/lib \
7418 /usr
/local
/X11R
6/lib \
7419 /usr
/local
/X11R
5/lib \
7420 /usr
/local
/X11R
4/lib \
7422 /usr
/local
/lib
/X11 \
7423 /usr
/local
/lib
/X11R6 \
7424 /usr
/local
/lib
/X11R5 \
7425 /usr
/local
/lib
/X11R4 \
7429 /usr
/XFree86
/lib
/X11 \
7433 /usr
/unsupported
/lib \
7435 /usr
/local
/x11r
5/lib \
7436 /usr
/lpp
/Xamples
/lib \
7440 /usr
/openwin
/share
/lib \
7443 for ac_extension
in a so sl
; do
7444 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
7445 ac_x_libraries
=$ac_dir
7452 fi # $ac_x_libraries = NO
7454 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
7455 # Didn't find X anywhere. Cache the known absence of X.
7456 ac_cv_have_x
="have_x=no"
7458 # Record where we found X for the cache.
7459 ac_cv_have_x
="have_x=yes \
7460 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7464 eval "$ac_cv_have_x"
7467 if test "$have_x" != yes; then
7468 echo "$ac_t""$have_x" 1>&6
7471 # If each of the values was on the command line, it overrides each guess.
7472 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7473 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7474 # Update the cache value to reflect the command line values.
7475 ac_cv_have_x
="have_x=yes \
7476 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7477 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7482 # Unlike the sim directory, whether a simulator is linked is controlled by
7483 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7484 # This code just checks for a few cases where we'd like to ignore those
7485 # definitions, even when they're present in the '.mt' file. These cases
7486 # are when --disable-sim is specified, or if the simulator directory is
7487 # not part of the soruce tree.
7489 # Check whether --enable-sim or --disable-sim was given.
7490 if test "${enable_sim+set}" = set; then
7491 enableval
="$enable_sim"
7492 echo "enable_sim = $enable_sim";
7493 echo "enableval = ${enableval}";
7494 case "${enableval}" in
7495 yes) ignore_sim
=false
;;
7496 no
) ignore_sim
=true
;;
7497 *) ignore_sim
=false
;;
7504 if test ! -d "${srcdir}/../sim"; then
7508 if test "${ignore_sim}" = "true"; then
7510 IGNORE_SIM_OBS
="SIM_OBS="
7514 cat >> confdefs.h
<<\EOF
7533 # Begin stuff to support --enable-shared
7534 # Check whether --enable-shared or --disable-shared was given.
7535 if test "${enable_shared+set}" = set; then
7536 enableval
="$enable_shared"
7537 case "${enableval}" in
7546 # If we have shared libraries, try to set rpath reasonably.
7547 if test "${shared}" = "true"; then
7550 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
7552 *-*-irix5* |
*-*-irix6*)
7553 HLDFLAGS
='-Wl,-rpath,$(libdir)'
7557 *-*-linux* |
*-pc-linux-gnu*)
7558 HLDFLAGS
='-Wl,-rpath,$(libdir)'
7561 HLDFLAGS
='-R $(libdir)'
7564 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;'
7569 # On SunOS, if the linker supports the -rpath option, use it to
7570 # prevent ../bfd and ../opcodes from being included in the run time
7574 echo 'main () { }' > conftest.c
7575 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
7576 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
7578 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
7580 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
7582 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
7584 elif test "${shared}" = "true"; then
7585 HLDFLAGS
='-Wl,-rpath=$(libdir)'
7587 HLDFLAGS
='-Wl,-rpath='
7589 rm -f conftest.t conftest.c conftest
7594 # End stuff to support --enable-shared
7596 # target_subdir is used by the testsuite to find the target libraries.
7598 if test "${host}" != "${target}"; then
7599 target_subdir
="${target_alias}/"
7604 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
7605 if test ! -f ${host_makefile_frag}; then
7606 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
7608 frags
="$frags $host_makefile_frag"
7610 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
7611 if test ! -f ${target_makefile_frag}; then
7612 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
7614 frags
="$frags $target_makefile_frag"
7621 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7622 ' ${host_makefile_frag}`
7624 targetfile
=`sed -n '
7625 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7626 ' ${target_makefile_frag}`
7628 GDB_MULTI_ARCH
=`sed -n '
7629 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
7630 ' ${target_makefile_frag}`
7632 # these really aren't orthogonal true/false values of the same condition,
7633 # but shells are slow enough that I like to reuse the test conditions
7635 if test "${target}" = "${host}"; then
7636 nativefile
=`sed -n '
7637 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
7638 ' ${host_makefile_frag}`
7640 # GDBserver is only useful in a "native" enviroment
7641 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
7645 # New targets should just set gdb_multi_arch=yes in configure.tgt.
7646 # Old targets being converted can either do that or set GDB_MULTI_ARCH
7647 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
7648 # will be the default.
7649 if test x
"${GDB_MULTI_ARCH}" = x
; then
7650 case "${gdb_multi_arch}" in
7651 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
7652 no
) GDB_MULTI_ARCH
=0 ;;
7653 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
7656 if test x
"${GDB_MULTI_ARCH}" != x
; then
7657 cat >> confdefs.h
<<EOF
7658 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
7662 # Warn the user when they use an old pratice
7663 case "${GDB_MULTI_ARCH}" in
7665 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
7666 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
7667 GDB_MULTI_ARCH_PURE
)
7668 if test x
"${targetfile}" != x
; then
7669 echo "configure: warning: "GDB
: Ingoring TM_FILE
in ${target_makefile_frag}"" 1>&2
7672 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
7676 SUBDIRS
="doc testsuite nlm"
7677 if test "${enable_multi_ice}" = "yes"; then
7678 SUBDIRS
="${SUBDIRS} multi-ice"
7683 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
7684 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
7692 if test "${hostfile}" != ""; then
7694 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
7695 files
="${files} ${GDB_XM_FILE}"
7696 links
="${links} xm.h"
7697 cat >> confdefs.h
<<EOF
7698 #define GDB_XM_FILE ${GDB_XM_FILE}
7706 if test "${targetfile}" != ""; then
7708 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
7709 files
="${files} ${GDB_TM_FILE}"
7710 links
="${links} tm.h"
7711 cat >> confdefs.h
<<EOF
7712 #define GDB_TM_FILE ${GDB_TM_FILE}
7720 if test "${nativefile}" != ""; then
7722 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
7723 files
="${files} ${GDB_NM_FILE}"
7724 links
="${links} nm.h"
7725 cat >> confdefs.h
<<EOF
7726 #define GDB_NM_FILE ${GDB_NM_FILE}
7732 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7733 echo "configure:7734: checking whether ln -s works" >&5
7734 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7735 echo $ac_n "(cached) $ac_c" 1>&6
7738 if ln -s X conftestdata
2>/dev
/null
7741 ac_cv_prog_LN_S
="ln -s"
7746 LN_S
="$ac_cv_prog_LN_S"
7747 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7748 echo "$ac_t""yes" 1>&6
7750 echo "$ac_t""no" 1>&6
7756 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7757 echo "configure:7758: checking for Cygwin environment" >&5
7758 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
7759 echo $ac_n "(cached) $ac_c" 1>&6
7761 cat > conftest.
$ac_ext <<EOF
7762 #line 7763 "configure"
7763 #include "confdefs.h"
7768 #define __CYGWIN__ __CYGWIN32__
7773 if { (eval echo configure
:7774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7777 echo "configure: failed program was:" >&5
7778 cat conftest.
$ac_ext >&5
7786 echo "$ac_t""$ac_cv_cygwin" 1>&6
7788 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
7789 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7790 echo "configure:7791: checking for mingw32 environment" >&5
7791 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
7792 echo $ac_n "(cached) $ac_c" 1>&6
7794 cat > conftest.
$ac_ext <<EOF
7795 #line 7796 "configure"
7796 #include "confdefs.h"
7802 if { (eval echo configure
:7803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7806 echo "configure: failed program was:" >&5
7807 cat conftest.
$ac_ext >&5
7815 echo "$ac_t""$ac_cv_mingw32" 1>&6
7817 test "$ac_cv_mingw32" = yes && MINGW32
=yes
7820 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7821 echo "configure:7822: checking for executable suffix" >&5
7822 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
7823 echo $ac_n "(cached) $ac_c" 1>&6
7825 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
7829 echo 'int main () { return 0; }' > conftest.
$ac_ext
7831 if { (eval echo configure
:7832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7832 for file in conftest.
*; do
7834 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
7835 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
7839 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7842 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
7847 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
7848 echo "$ac_t""${ac_cv_exeext}" 1>&6
7852 subdirs
="$configdirs"
7855 cat > confcache
<<\EOF
7856 # This file is a shell script that caches the results of configure
7857 # tests run on this system so they can be shared between configure
7858 # scripts and configure runs. It is not useful on other systems.
7859 # If it contains results you don't want to keep, you may remove or edit it.
7861 # By default, configure uses ./config.cache as the cache file,
7862 # creating it if it does not exist already. You can give configure
7863 # the --cache-file=FILE option to use a different cache file; that is
7864 # what configure does when it calls configure scripts in
7865 # subdirectories, so they share the cache.
7866 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7867 # config.status only pays attention to the cache file if you give it the
7868 # --recheck option to rerun configure.
7871 # The following way of writing the cache mishandles newlines in values,
7872 # but we know of no workaround that is simple, portable, and efficient.
7873 # So, don't put newlines in cache variables' values.
7874 # Ultrix sh set writes to stderr and can't be redirected directly,
7875 # and sets the high bit in the cache file unless we assign to the vars.
7877 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7879 # `set' does not quote correctly, so add quotes (double-quote substitution
7880 # turns \\\\ into \\, and sed turns \\ into \).
7882 -e "s/'/'\\\\''/g" \
7883 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7886 # `set' quotes correctly as required by POSIX, so do not add quotes.
7887 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7890 if cmp -s $cache_file confcache
; then
7893 if test -w $cache_file; then
7894 echo "updating cache $cache_file"
7895 cat confcache
> $cache_file
7897 echo "not updating unwritable cache $cache_file"
7902 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7904 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7905 # Let make expand exec_prefix.
7906 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7908 # Any assignment to VPATH causes Sun make to only execute
7909 # the first set of double-colon rules, so remove it if not needed.
7910 # If there is a colon in the path, we need to keep it.
7911 if test "x$srcdir" = x.
; then
7912 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7915 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7917 DEFS
=-DHAVE_CONFIG_H
7919 # Without the "./", some shells look in PATH for config.status.
7920 : ${CONFIG_STATUS=./config.status}
7922 echo creating
$CONFIG_STATUS
7923 rm -f $CONFIG_STATUS
7924 cat > $CONFIG_STATUS <<EOF
7926 # Generated automatically by configure.
7927 # Run this file to recreate the current configuration.
7928 # This directory was configured as follows,
7929 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7931 # $0 $ac_configure_args
7933 # Compiler output produced by configure, useful for debugging
7934 # configure, is in ./config.log if it exists.
7936 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7939 case "\$ac_option" in
7940 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7941 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7942 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7943 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7944 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7946 -help | --help | --hel | --he | --h)
7947 echo "\$ac_cs_usage"; exit 0 ;;
7948 *) echo "\$ac_cs_usage"; exit 1 ;;
7952 ac_given_srcdir=$srcdir
7953 ac_given_INSTALL="$INSTALL"
7955 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7957 cat >> $CONFIG_STATUS <<EOF
7959 # Protect against being on the right side of a sed subst in config.status.
7960 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7961 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7965 s%@CFLAGS@%$CFLAGS%g
7966 s%@CPPFLAGS@%$CPPFLAGS%g
7967 s%@CXXFLAGS@%$CXXFLAGS%g
7968 s%@FFLAGS@%$FFLAGS%g
7970 s%@LDFLAGS@%$LDFLAGS%g
7972 s%@exec_prefix@%$exec_prefix%g
7973 s%@prefix@%$prefix%g
7974 s%@program_transform_name@%$program_transform_name%g
7975 s%@bindir@%$bindir%g
7976 s%@sbindir@%$sbindir%g
7977 s%@libexecdir@%$libexecdir%g
7978 s%@datadir@%$datadir%g
7979 s%@sysconfdir@%$sysconfdir%g
7980 s%@sharedstatedir@%$sharedstatedir%g
7981 s%@localstatedir@%$localstatedir%g
7982 s%@libdir@%$libdir%g
7983 s%@includedir@%$includedir%g
7984 s%@oldincludedir@%$oldincludedir%g
7985 s%@infodir@%$infodir%g
7986 s%@mandir@%$mandir%g
7987 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7988 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7993 s%@host_alias@%$host_alias%g
7994 s%@host_cpu@%$host_cpu%g
7995 s%@host_vendor@%$host_vendor%g
7996 s%@host_os@%$host_os%g
7997 s%@target@%$target%g
7998 s%@target_alias@%$target_alias%g
7999 s%@target_cpu@%$target_cpu%g
8000 s%@target_vendor@%$target_vendor%g
8001 s%@target_os@%$target_os%g
8003 s%@build_alias@%$build_alias%g
8004 s%@build_cpu@%$build_cpu%g
8005 s%@build_vendor@%$build_vendor%g
8006 s%@build_os@%$build_os%g
8007 s%@SET_MAKE@%$SET_MAKE%g
8008 s%@RANLIB@%$RANLIB%g
8009 s%@ALLOCA@%$ALLOCA%g
8010 s%@USE_NLS@%$USE_NLS%g
8011 s%@MSGFMT@%$MSGFMT%g
8012 s%@GMSGFMT@%$GMSGFMT%g
8013 s%@XGETTEXT@%$XGETTEXT%g
8014 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8015 s%@CATALOGS@%$CATALOGS%g
8016 s%@CATOBJEXT@%$CATOBJEXT%g
8017 s%@DATADIRNAME@%$DATADIRNAME%g
8018 s%@GMOFILES@%$GMOFILES%g
8019 s%@INSTOBJEXT@%$INSTOBJEXT%g
8020 s%@INTLDEPS@%$INTLDEPS%g
8021 s%@INTLLIBS@%$INTLLIBS%g
8022 s%@INTLOBJS@%$INTLOBJS%g
8023 s%@POFILES@%$POFILES%g
8025 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8027 s%@GT_YES@%$GT_YES%g
8028 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8031 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8032 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8033 s%@INSTALL_DATA@%$INSTALL_DATA%g
8035 s%@DLLTOOL@%$DLLTOOL%g
8036 s%@WINDRES@%$WINDRES%g
8039 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
8040 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
8041 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
8042 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
8043 s%@MMALLOC@%$MMALLOC%g
8045 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
8046 s%@TERM_LIB@%$TERM_LIB%g
8047 s%@WIN32LIBS@%$WIN32LIBS%g
8048 s%@LIBGUI@%$LIBGUI%g
8049 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
8050 s%@WIN32LDAPP@%$WIN32LDAPP%g
8051 s%@TCL_VERSION@%$TCL_VERSION%g
8052 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
8053 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
8054 s%@TCL_CC@%$TCL_CC%g
8055 s%@TCL_DEFS@%$TCL_DEFS%g
8056 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
8057 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
8058 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
8059 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
8060 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
8061 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
8062 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
8063 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
8064 s%@TCL_RANLIB@%$TCL_RANLIB%g
8065 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
8066 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
8067 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
8068 s%@TK_VERSION@%$TK_VERSION%g
8069 s%@TK_DEFS@%$TK_DEFS%g
8070 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
8071 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
8072 s%@TK_XLIBSW@%$TK_XLIBSW%g
8073 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
8074 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
8075 s%@TCLHDIR@%$TCLHDIR%g
8076 s%@TKHDIR@%$TKHDIR%g
8077 s%@ITCLHDIR@%$ITCLHDIR%g
8078 s%@ITKHDIR@%$ITKHDIR%g
8079 s%@TIXHDIR@%$TIXHDIR%g
8080 s%@ITCL_VERSION@%$ITCL_VERSION%g
8081 s%@ITCL_DEFS@%$ITCL_DEFS%g
8082 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
8083 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
8084 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
8085 s%@ITK_VERSION@%$ITK_VERSION%g
8086 s%@ITK_DEFS@%$ITK_DEFS%g
8087 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
8088 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
8089 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
8090 s%@TIX_VERSION@%$TIX_VERSION%g
8091 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
8092 s%@X_CFLAGS@%$X_CFLAGS%g
8093 s%@X_LDFLAGS@%$X_LDFLAGS%g
8094 s%@X_LIBS@%$X_LIBS%g
8095 s%@ITCLLIB@%$ITCLLIB%g
8096 s%@ITCL_DEPS@%$ITCL_DEPS%g
8097 s%@ITKLIB@%$ITKLIB%g
8098 s%@ITK_DEPS@%$ITK_DEPS%g
8099 s%@TIXLIB@%$TIXLIB%g
8100 s%@TIX_DEPS@%$TIX_DEPS%g
8101 s%@GDBTKLIBS@%$GDBTKLIBS%g
8102 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
8103 s%@IGNORE_SIM@%$IGNORE_SIM%g
8104 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
8105 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
8106 s%@CONFIG_OBS@%$CONFIG_OBS%g
8107 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
8108 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
8109 s%@CONFIG_INITS@%$CONFIG_INITS%g
8110 s%@CONFIG_ALL@%$CONFIG_ALL%g
8111 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
8112 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
8113 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
8114 s%@HLDFLAGS@%$HLDFLAGS%g
8115 s%@HLDENV@%$HLDENV%g
8116 s%@target_subdir@%$target_subdir%g
8117 /@host_makefile_frag@/r $host_makefile_frag
8118 s%@host_makefile_frag@%%g
8119 /@target_makefile_frag@/r $target_makefile_frag
8120 s%@target_makefile_frag@%%g
8122 s%@SUBDIRS@%$SUBDIRS%g
8127 s%@EXEEXT@%$EXEEXT%g
8128 s%@subdirs@%$subdirs%g
8133 cat >> $CONFIG_STATUS <<\EOF
8135 # Split the substitutions into bite-sized pieces for seds with
8136 # small command number limits, like on Digital OSF/1 and HP-UX.
8137 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8138 ac_file
=1 # Number of current file.
8139 ac_beg
=1 # First line for current file.
8140 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8143 while $ac_more_lines; do
8144 if test $ac_beg -gt 1; then
8145 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8147 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8149 if test ! -s conftest.s
$ac_file; then
8151 rm -f conftest.s
$ac_file
8153 if test -z "$ac_sed_cmds"; then
8154 ac_sed_cmds
="sed -f conftest.s$ac_file"
8156 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8158 ac_file
=`expr $ac_file + 1`
8160 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8163 if test -z "$ac_sed_cmds"; then
8168 cat >> $CONFIG_STATUS <<EOF
8170 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
8172 cat >> $CONFIG_STATUS <<\EOF
8173 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8174 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8176 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8177 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8178 *) ac_file_in
="${ac_file}.in" ;;
8181 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8183 # Remove last slash and all that follows it. Not all systems have dirname.
8184 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8185 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8186 # The file is in a subdirectory.
8187 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8188 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8189 # A "../" for each directory in $ac_dir_suffix.
8190 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8192 ac_dir_suffix
= ac_dots
=
8195 case "$ac_given_srcdir" in
8197 if test -z "$ac_dots"; then top_srcdir
=.
8198 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8199 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8201 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8202 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8205 case "$ac_given_INSTALL" in
8206 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
8207 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
8210 echo creating
"$ac_file"
8212 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8214 *Makefile
*) ac_comsub
="1i\\
8215 # $configure_input" ;;
8219 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8221 s%@configure_input@%$configure_input%g
8222 s%@srcdir@%$srcdir%g
8223 s%@top_srcdir@%$top_srcdir%g
8224 s%@INSTALL@%$INSTALL%g
8225 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8229 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8230 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8232 # ac_d sets the value in "#define NAME VALUE" lines.
8233 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8234 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8237 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8238 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8239 ac_uB
='\([ ]\)%\1#\2define\3'
8242 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8243 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8244 ac_eB
='$%\1#\2define\3'
8248 if test "${CONFIG_HEADERS+set}" != set; then
8250 cat >> $CONFIG_STATUS <<EOF
8251 CONFIG_HEADERS="config.h:config.in"
8253 cat >> $CONFIG_STATUS <<\EOF
8255 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8256 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8258 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8259 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8260 *) ac_file_in
="${ac_file}.in" ;;
8263 echo creating
$ac_file
8265 rm -f conftest.frag conftest.
in conftest.out
8266 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8267 cat $ac_file_inputs > conftest.
in
8271 # Transform confdefs.h into a sed script conftest.vals that substitutes
8272 # the proper values into config.h.in to produce config.h. And first:
8273 # Protect against being on the right side of a sed subst in config.status.
8274 # Protect against being in an unquoted here document in config.status.
8276 cat > conftest.hdr
<<\EOF
8279 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8283 sed -n -f conftest.hdr confdefs.h > conftest.vals
8286 # This sed command replaces #undef with comments. This is necessary, for
8287 # example, in the case of _POSIX_SOURCE, which is predefined and required
8288 # on some systems where configure will not decide to define it.
8289 cat >> conftest.vals <<\EOF
8290 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8293 # Break up conftest.vals because some shells have a limit on
8294 # the size of here documents, and old seds have small limits too.
8299 ac_lines=`grep -c . conftest.vals
`
8300 # grep -c gives empty output for an empty file on some AIX systems.
8301 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8302 # Write a limited-size here document to conftest.frag.
8303 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8304 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8306 sed -f conftest.frag conftest.in > conftest.out
8308 mv conftest.out conftest.in
8310 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8312 mv conftest.tail conftest.vals
8316 cat >> $CONFIG_STATUS <<\EOF
8317 rm -f conftest.frag conftest.h
8318 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8319 cat conftest.in >> conftest.h
8321 if cmp -s $ac_file conftest.h 2>/dev/null; then
8322 echo "$ac_file is unchanged"
8325 # Remove last slash and all that follows it. Not all systems have dirname.
8326 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8327 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8328 # The file is in a subdirectory.
8329 test ! -d "$ac_dir" && mkdir "$ac_dir"
8332 mv conftest.h $ac_file
8338 cat >> $CONFIG_STATUS <<EOF
8343 cat >> $CONFIG_STATUS <<\EOF
8344 srcdir=$ac_given_srcdir
8345 while test -n "$ac_sources"; do
8346 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8347 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8349 echo "linking $srcdir/$ac_source to $ac_dest"
8351 if test ! -r $srcdir/$ac_source; then
8352 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8356 # Make relative symlinks.
8357 # Remove last slash and all that follows it. Not all systems have dirname.
8358 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
8359 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8360 # The dest file is in a subdirectory.
8361 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8362 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
8363 # A "../" for each directory in $ac_dest_dir_suffix.
8364 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
8366 ac_dest_dir_suffix= ac_dots=
8370 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8371 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8374 # Make a symlink if possible; otherwise try a hard link.
8375 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8376 ln $srcdir/$ac_source $ac_dest; then :
8378 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8382 cat >> $CONFIG_STATUS <<EOF
8384 gdb_host_cpu=$gdb_host_cpu
8385 gdb_target_cpu=$gdb_target_cpu
8386 nativefile=$nativefile
8389 cat >> $CONFIG_STATUS <<\EOF
8391 if test "${nativefile}" = ""; then
8392 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
8393 < Makefile > Makefile.tem
8394 mv -f Makefile.tem Makefile
8397 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
8398 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
8399 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
8400 mv -f Makefile.tmp Makefile
8403 case x$CONFIG_HEADERS in
8404 xconfig.h:config.in)
8410 chmod +x $CONFIG_STATUS
8411 rm -fr confdefs* $ac_clean_files
8412 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8414 if test "$no_recursion" != yes; then
8416 # Remove --cache-file and --srcdir arguments so they do not pile up.
8417 ac_sub_configure_args=
8419 for ac_arg in $ac_configure_args; do
8420 if test -n "$ac_prev"; then
8425 -cache-file | --cache-file | --cache-fil | --cache-fi \
8426 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8427 ac_prev=cache_file ;;
8428 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8429 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8431 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8433 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8435 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8439 for ac_config_dir in $configdirs; do
8441 # Do not complain, so a configure script can configure whichever
8442 # parts of a large source tree are present.
8443 if test ! -d $srcdir/$ac_config_dir; then
8447 echo configuring in $ac_config_dir
8452 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8454 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8462 # A "../" for each directory in /$ac_config_dir.
8463 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
8466 .) # No --srcdir option. We are building in place.
8467 ac_sub_srcdir=$srcdir ;;
8468 /*) # Absolute path.
8469 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8471 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8474 # Check for guested configure; otherwise get Cygnus style configure.
8475 if test -f $ac_sub_srcdir/configure; then
8476 ac_sub_configure=$ac_sub_srcdir/configure
8477 elif test -f $ac_sub_srcdir/configure.in; then
8478 ac_sub_configure=$ac_configure
8480 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8484 # The recursion is here.
8485 if test -n "$ac_sub_configure"; then
8487 # Make the cache file name correct relative to the subdirectory.
8488 case "$cache_file" in
8489 /*) ac_sub_cache_file=$cache_file ;;
8491 ac_sub_cache_file="$ac_dots$cache_file" ;;
8493 case "$ac_given_INSTALL" in
8494 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8495 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8498 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8499 # The eval makes quoting arguments work.
8500 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8503 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }