3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.2
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --disable-nls do not use Native Language Support"
17 --with-included-gettext use the GNU gettext library included here"
21 --enable-build-warnings Enable compiler warnings if gcc is used"
23 --with-mmalloc Use memory mapped malloc package"
25 --enable-ide Enable IDE support"
27 --with-foundry-libs=DIR Use the Foundry SDK in DIR"
29 --enable-gdbtk Enable GDBTK GUI front end"
31 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
33 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
35 --with-tclinclude=DIR Directory where tcl private headers are"
37 --with-tkinclude=DIR Directory where tk private headers are"
39 --with-x use the X Window System"
42 --with-sim-gpu2=DIR Use GPU2 library under given DIR"
44 --with-sim-funit=DIR Use target FP lib under given DIR"
47 --enable-shared Use shared libraries"
49 # Initialize some variables set by options.
50 # The variables have the same names as the options, with
51 # dashes changed to underlines.
53 cache_file
=.
/config.cache
62 program_transform_name
=s
,x
,x
,
70 bindir
='${exec_prefix}/bin'
71 sbindir
='${exec_prefix}/sbin'
72 libexecdir
='${exec_prefix}/libexec'
73 datadir
='${prefix}/share'
74 sysconfdir
='${prefix}/etc'
75 sharedstatedir
='${prefix}/com'
76 localstatedir
='${prefix}/var'
77 libdir
='${exec_prefix}/lib'
78 includedir
='${prefix}/include'
79 oldincludedir
='/usr/include'
80 infodir
='${prefix}/info'
81 mandir
='${prefix}/man'
83 # Initialize some other variables.
86 SHELL
=${CONFIG_SHELL-/bin/sh}
87 # Maximum number of lines to put in a shell here document.
94 # If the previous option needs an argument, assign it.
95 if test -n "$ac_prev"; then
96 eval "$ac_prev=\$ac_option"
102 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
106 # Accept the important Cygnus configure options, so we can diagnose typos.
110 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
112 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
113 bindir
="$ac_optarg" ;;
115 -build |
--build |
--buil |
--bui |
--bu)
117 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
118 build
="$ac_optarg" ;;
120 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
121 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
122 ac_prev
=cache_file
;;
123 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
124 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
125 cache_file
="$ac_optarg" ;;
127 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
129 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
131 datadir
="$ac_optarg" ;;
133 -disable-* |
--disable-*)
134 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}=no" ;;
142 -enable-* |
--enable-*)
143 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
144 # Reject names that are not valid shell variable names.
145 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
146 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
153 eval "enable_${ac_feature}='$ac_optarg'" ;;
155 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
156 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
157 |
--exec |
--exe |
--ex)
158 ac_prev
=exec_prefix
;;
159 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
160 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
161 |
--exec=* |
--exe=* |
--ex=*)
162 exec_prefix
="$ac_optarg" ;;
164 -gas |
--gas |
--ga |
--g)
165 # Obsolete; use --with-gas.
168 -help |
--help |
--hel |
--he)
169 # Omit some internal or obsolete options to make the list less imposing.
170 # This message is too long to be a string in the A/UX 3.1 sh.
172 Usage: configure [options] [host]
173 Options: [defaults in brackets after descriptions]
175 --cache-file=FILE cache test results in FILE
176 --help print this message
177 --no-create do not create output files
178 --quiet, --silent do not print \`checking...' messages
179 --version print the version of autoconf that created configure
180 Directory and file names:
181 --prefix=PREFIX install architecture-independent files in PREFIX
183 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
185 --bindir=DIR user executables in DIR [EPREFIX/bin]
186 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
187 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
188 --datadir=DIR read-only architecture-independent data in DIR
190 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
191 --sharedstatedir=DIR modifiable architecture-independent data in DIR
193 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
194 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
195 --includedir=DIR C header files in DIR [PREFIX/include]
196 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
197 --infodir=DIR info documentation in DIR [PREFIX/info]
198 --mandir=DIR man documentation in DIR [PREFIX/man]
199 --srcdir=DIR find the sources in DIR [configure dir or ..]
200 --program-prefix=PREFIX prepend PREFIX to installed program names
201 --program-suffix=SUFFIX append SUFFIX to installed program names
202 --program-transform-name=PROGRAM
203 run sed PROGRAM on installed program names
207 --build=BUILD configure for building on BUILD [BUILD=HOST]
208 --host=HOST configure for HOST [guessed]
209 --target=TARGET configure for TARGET [TARGET=HOST]
210 Features and packages:
211 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
212 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
213 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
214 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
215 --x-includes=DIR X include files are in DIR
216 --x-libraries=DIR X library files are in DIR
218 if test -n "$ac_help"; then
219 echo "--enable and --with options recognized:$ac_help"
223 -host |
--host |
--hos |
--ho)
225 -host=* |
--host=* |
--hos=* |
--ho=*)
228 -includedir |
--includedir |
--includedi |
--included |
--include \
229 |
--includ |
--inclu |
--incl |
--inc)
230 ac_prev
=includedir
;;
231 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
232 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
233 includedir
="$ac_optarg" ;;
235 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
237 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
238 infodir
="$ac_optarg" ;;
240 -libdir |
--libdir |
--libdi |
--libd)
242 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
243 libdir
="$ac_optarg" ;;
245 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
246 |
--libexe |
--libex |
--libe)
247 ac_prev
=libexecdir
;;
248 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
249 |
--libexe=* |
--libex=* |
--libe=*)
250 libexecdir
="$ac_optarg" ;;
252 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
253 |
--localstate |
--localstat |
--localsta |
--localst \
254 |
--locals |
--local |
--loca |
--loc |
--lo)
255 ac_prev
=localstatedir
;;
256 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
257 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
258 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
259 localstatedir
="$ac_optarg" ;;
261 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
263 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
264 mandir
="$ac_optarg" ;;
267 # Obsolete; use --without-fp.
270 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
274 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
275 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
278 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
279 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
280 |
--oldin |
--oldi |
--old |
--ol |
--o)
281 ac_prev
=oldincludedir
;;
282 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
283 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
284 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
285 oldincludedir
="$ac_optarg" ;;
287 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
289 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
290 prefix
="$ac_optarg" ;;
292 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
293 |
--program-pre |
--program-pr |
--program-p)
294 ac_prev
=program_prefix
;;
295 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
296 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
297 program_prefix
="$ac_optarg" ;;
299 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
300 |
--program-suf |
--program-su |
--program-s)
301 ac_prev
=program_suffix
;;
302 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
303 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
304 program_suffix
="$ac_optarg" ;;
306 -program-transform-name |
--program-transform-name \
307 |
--program-transform-nam |
--program-transform-na \
308 |
--program-transform-n |
--program-transform- \
309 |
--program-transform |
--program-transfor \
310 |
--program-transfo |
--program-transf \
311 |
--program-trans |
--program-tran \
312 |
--progr-tra |
--program-tr |
--program-t)
313 ac_prev
=program_transform_name
;;
314 -program-transform-name=* |
--program-transform-name=* \
315 |
--program-transform-nam=* |
--program-transform-na=* \
316 |
--program-transform-n=* |
--program-transform-=* \
317 |
--program-transform=* |
--program-transfor=* \
318 |
--program-transfo=* |
--program-transf=* \
319 |
--program-trans=* |
--program-tran=* \
320 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
321 program_transform_name
="$ac_optarg" ;;
323 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
324 |
-silent |
--silent |
--silen |
--sile |
--sil)
327 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
329 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
331 sbindir
="$ac_optarg" ;;
333 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
334 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
335 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
337 ac_prev
=sharedstatedir
;;
338 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
339 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
340 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
342 sharedstatedir
="$ac_optarg" ;;
344 -site |
--site |
--sit)
346 -site=* |
--site=* |
--sit=*)
349 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
351 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
352 srcdir
="$ac_optarg" ;;
354 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
355 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
356 ac_prev
=sysconfdir
;;
357 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
358 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
359 sysconfdir
="$ac_optarg" ;;
361 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
363 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
364 target
="$ac_optarg" ;;
366 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
369 -version |
--version |
--versio |
--versi |
--vers)
370 echo "configure generated by autoconf version 2.12.2"
374 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}='$ac_optarg'" ;;
386 -without-* |
--without-*)
387 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package
=`echo $ac_package| sed 's/-/_/g'`
393 eval "with_${ac_package}=no" ;;
396 # Obsolete; use --with-x.
399 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
400 |
--x-incl |
--x-inc |
--x-in |
--x-i)
401 ac_prev
=x_includes
;;
402 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
403 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
404 x_includes
="$ac_optarg" ;;
406 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
407 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
408 ac_prev
=x_libraries
;;
409 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
410 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
411 x_libraries
="$ac_optarg" ;;
413 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
417 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
418 echo "configure: warning: $ac_option: invalid host type" 1>&2
420 if test "x$nonopt" != xNONE
; then
421 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
429 if test -n "$ac_prev"; then
430 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
433 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
435 # File descriptor usage:
438 # 2 errors and warnings
439 # 3 some systems may open it to /dev/tty
440 # 4 used on the Kubota Titan
441 # 6 checking for... messages and results
442 # 5 compiler messages saved in config.log
443 if test "$silent" = yes; then
451 This file contains any messages produced by compilers while
452 running configure, to aid debugging if configure makes a mistake.
455 # Strip out --no-create and --no-recursion so they do not pile up.
456 # Also quote any args containing shell metacharacters.
461 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
462 |
--no-cr |
--no-c) ;;
463 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
464 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
465 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
466 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
467 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
472 # Only set these to C if already set. These must not be set unconditionally
473 # because not all systems understand e.g. LANG=C (notably SCO).
474 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
475 # Non-C LC_CTYPE values break the ctype check.
476 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
477 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
478 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
479 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
481 # confdefs.h avoids OS command line length limits that DEFS can exceed.
482 rm -rf conftest
* confdefs.h
483 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
486 # A filename unique to this package, relative to the directory that
487 # configure is in, which we can look for to find out if srcdir is correct.
488 ac_unique_file
=main.c
490 # Find the source files, if location was not specified.
491 if test -z "$srcdir"; then
492 ac_srcdir_defaulted
=yes
493 # Try the directory containing this script, then its parent.
495 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
496 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
498 if test ! -r $srcdir/$ac_unique_file; then
502 ac_srcdir_defaulted
=no
504 if test ! -r $srcdir/$ac_unique_file; then
505 if test "$ac_srcdir_defaulted" = yes; then
506 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
508 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
511 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
513 # Prefer explicitly selected file to automatically selected ones.
514 if test -z "$CONFIG_SITE"; then
515 if test "x$prefix" != xNONE
; then
516 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
518 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521 for ac_site_file
in $CONFIG_SITE; do
522 if test -r "$ac_site_file"; then
523 echo "loading site script $ac_site_file"
528 if test -r "$cache_file"; then
529 echo "loading cache $cache_file"
532 echo "creating cache $cache_file"
537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538 ac_cpp
='$CPP $CPPFLAGS'
539 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
540 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
541 cross_compiling
=$ac_cv_prog_cc_cross
545 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
546 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
554 ac_n
= ac_c
='\c' ac_t
=
560 # Extract the first word of "gcc", so it can be a program name with args.
561 set dummy gcc
; ac_word
=$2
562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
563 echo "configure:562: checking for $ac_word" >&5
564 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
565 echo $ac_n "(cached) $ac_c" 1>&6
567 if test -n "$CC"; then
568 ac_cv_prog_CC
="$CC" # Let the user override the test.
570 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
571 for ac_dir
in $PATH; do
572 test -z "$ac_dir" && ac_dir
=.
573 if test -f $ac_dir/$ac_word; then
582 if test -n "$CC"; then
583 echo "$ac_t""$CC" 1>&6
585 echo "$ac_t""no" 1>&6
588 if test -z "$CC"; then
589 # Extract the first word of "cc", so it can be a program name with args.
590 set dummy cc
; ac_word
=$2
591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
592 echo "configure:591: checking for $ac_word" >&5
593 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
594 echo $ac_n "(cached) $ac_c" 1>&6
596 if test -n "$CC"; then
597 ac_cv_prog_CC
="$CC" # Let the user override the test.
599 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
601 for ac_dir
in $PATH; do
602 test -z "$ac_dir" && ac_dir
=.
603 if test -f $ac_dir/$ac_word; then
604 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
613 if test $ac_prog_rejected = yes; then
614 # We found a bogon in the path, so make sure we never use it.
615 set dummy
$ac_cv_prog_CC
617 if test $# -gt 0; then
618 # We chose a different compiler from the bogus one.
619 # However, it has the same basename, so the bogon will be chosen
620 # first if we set CC to just the basename; use the full file name.
622 set dummy
"$ac_dir/$ac_word" "$@"
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
639 # Extract the first word of "cl", so it can be a program name with args.
640 set dummy cl
; ac_word
=$2
641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
642 echo "configure:641: checking for $ac_word" >&5
643 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
644 echo $ac_n "(cached) $ac_c" 1>&6
646 if test -n "$CC"; then
647 ac_cv_prog_CC
="$CC" # Let the user override the test.
649 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
650 for ac_dir
in $PATH; do
651 test -z "$ac_dir" && ac_dir
=.
652 if test -f $ac_dir/$ac_word; then
661 if test -n "$CC"; then
662 echo "$ac_t""$CC" 1>&6
664 echo "$ac_t""no" 1>&6
669 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
672 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
673 echo "configure:672: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
677 ac_cpp
='$CPP $CPPFLAGS'
678 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
679 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
680 cross_compiling
=$ac_cv_prog_cc_cross
682 cat > conftest.
$ac_ext <<EOF
683 #line 682 "configure"
684 #include "confdefs.h"
687 if { (eval echo configure
:686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
688 ac_cv_prog_cc_works
=yes
689 # If we can't run a trivial program, we are probably using a cross compiler.
690 if (.
/conftest
; exit) 2>/dev
/null
; then
691 ac_cv_prog_cc_cross
=no
693 ac_cv_prog_cc_cross
=yes
696 echo "configure: failed program was:" >&5
697 cat conftest.
$ac_ext >&5
698 ac_cv_prog_cc_works
=no
702 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
703 if test $ac_cv_prog_cc_works = no
; then
704 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
706 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
707 echo "configure:706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
708 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
709 cross_compiling
=$ac_cv_prog_cc_cross
711 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
712 echo "configure:711: checking whether we are using GNU C" >&5
713 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
714 echo $ac_n "(cached) $ac_c" 1>&6
716 cat > conftest.c
<<EOF
721 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
728 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
730 if test $ac_cv_prog_gcc = yes; then
736 ac_test_CFLAGS
="${CFLAGS+set}"
737 ac_save_CFLAGS
="$CFLAGS"
739 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
740 echo "configure:739: checking whether ${CC-cc} accepts -g" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 echo 'void f(){}' > conftest.c
745 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
754 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
755 if test "$ac_test_CFLAGS" = set; then
756 CFLAGS
="$ac_save_CFLAGS"
757 elif test $ac_cv_prog_cc_g = yes; then
758 if test "$GCC" = yes; then
764 if test "$GCC" = yes; then
771 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
772 echo "configure:771: checking how to run the C preprocessor" >&5
773 # On Suns, sometimes $CPP names a directory.
774 if test -n "$CPP" && test -d "$CPP"; then
777 if test -z "$CPP"; then
778 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 # This must be in double quotes, not single quotes, because CPP may get
782 # substituted into the Makefile and "${CC-cc}" will confuse make.
784 # On the NeXT, cc -E runs the code through the compiler's parser,
785 # not just through cpp.
786 cat > conftest.
$ac_ext <<EOF
787 #line 786 "configure"
788 #include "confdefs.h"
792 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
793 { (eval echo configure
:792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
794 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
795 if test -z "$ac_err"; then
799 echo "configure: failed program was:" >&5
800 cat conftest.
$ac_ext >&5
802 CPP
="${CC-cc} -E -traditional-cpp"
803 cat > conftest.
$ac_ext <<EOF
804 #line 803 "configure"
805 #include "confdefs.h"
809 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
810 { (eval echo configure
:809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
811 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
812 if test -z "$ac_err"; then
816 echo "configure: failed program was:" >&5
817 cat conftest.
$ac_ext >&5
819 CPP
="${CC-cc} -nologo -E"
820 cat > conftest.
$ac_ext <<EOF
821 #line 820 "configure"
822 #include "confdefs.h"
826 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
827 { (eval echo configure
:826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
828 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
829 if test -z "$ac_err"; then
833 echo "configure: failed program was:" >&5
834 cat conftest.
$ac_ext >&5
843 ac_cv_prog_CPP
="$CPP"
845 CPP
="$ac_cv_prog_CPP"
847 ac_cv_prog_CPP
="$CPP"
849 echo "$ac_t""$CPP" 1>&6
851 echo $ac_n "checking for AIX""... $ac_c" 1>&6
852 echo "configure:851: checking for AIX" >&5
853 cat > conftest.
$ac_ext <<EOF
854 #line 853 "configure"
855 #include "confdefs.h"
861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
862 egrep "yes" >/dev
/null
2>&1; then
864 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
865 #define _ALL_SOURCE 1
870 echo "$ac_t""no" 1>&6
875 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
876 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
877 echo "configure:876: checking for minix/config.h" >&5
878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
881 cat > conftest.
$ac_ext <<EOF
882 #line 881 "configure"
883 #include "confdefs.h"
884 #include <minix/config.h>
886 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
887 { (eval echo configure
:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
888 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
889 if test -z "$ac_err"; then
891 eval "ac_cv_header_$ac_safe=yes"
894 echo "configure: failed program was:" >&5
895 cat conftest.
$ac_ext >&5
897 eval "ac_cv_header_$ac_safe=no"
901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
902 echo "$ac_t""yes" 1>&6
905 echo "$ac_t""no" 1>&6
909 if test "$MINIX" = yes; then
910 cat >> confdefs.h
<<\EOF
911 #define _POSIX_SOURCE 1
914 cat >> confdefs.h
<<\EOF
915 #define _POSIX_1_SOURCE 2
918 cat >> confdefs.h
<<\EOF
924 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
925 echo "configure:924: checking for POSIXized ISC" >&5
926 if test -d /etc
/conf
/kconfig.d
&&
927 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
929 echo "$ac_t""yes" 1>&6
930 ISC
=yes # If later tests want to check for ISC.
931 cat >> confdefs.h
<<\EOF
932 #define _POSIX_SOURCE 1
935 if test "$GCC" = yes; then
941 echo "$ac_t""no" 1>&6
946 DLLTOOL
=${DLLTOOL-dlltool}
950 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
951 if test -f $ac_dir/install-sh
; then
953 ac_install_sh
="$ac_aux_dir/install-sh -c"
955 elif test -f $ac_dir/install.sh
; then
957 ac_install_sh
="$ac_aux_dir/install.sh -c"
961 if test -z "$ac_aux_dir"; then
962 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
964 ac_config_guess
=$ac_aux_dir/config.guess
965 ac_config_sub
=$ac_aux_dir/config.sub
966 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
969 # Do some error checking and defaulting for the host and target type.
971 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
974 # 1. You are not allowed to specify --host, --target, and nonopt at the
976 # 2. Host defaults to nonopt.
977 # 3. If nonopt is not specified, then host defaults to the current host,
978 # as determined by config.guess.
979 # 4. Target and build default to nonopt.
980 # 5. If nonopt is not specified, then target and build default to host.
982 # The aliases save the names the user supplied, while $host etc.
983 # will get canonicalized.
984 case $host---$target---$nonopt in
985 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
986 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
990 # Make sure we can run config.sub.
991 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
992 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
995 echo $ac_n "checking host system type""... $ac_c" 1>&6
996 echo "configure:995: checking host system type" >&5
999 case "$host_alias" in
1003 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1004 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1006 *) host_alias
=$nonopt ;;
1010 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1011 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1012 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1013 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1014 echo "$ac_t""$host" 1>&6
1016 echo $ac_n "checking target system type""... $ac_c" 1>&6
1017 echo "configure:1016: checking target system type" >&5
1019 target_alias
=$target
1020 case "$target_alias" in
1023 NONE
) target_alias
=$host_alias ;;
1024 *) target_alias
=$nonopt ;;
1028 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1029 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1030 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1031 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1032 echo "$ac_t""$target" 1>&6
1034 echo $ac_n "checking build system type""... $ac_c" 1>&6
1035 echo "configure:1034: checking build system type" >&5
1038 case "$build_alias" in
1041 NONE
) build_alias
=$host_alias ;;
1042 *) build_alias
=$nonopt ;;
1046 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1047 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1048 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1049 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1050 echo "$ac_t""$build" 1>&6
1052 test "$host_alias" != "$target_alias" &&
1053 test "$program_prefix$program_suffix$program_transform_name" = \
1055 program_prefix
=${target_alias}-
1059 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1060 echo "configure:1059: checking whether ${MAKE-make} sets \${MAKE}" >&5
1061 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1062 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 cat > conftestmake
<<\EOF
1067 @
echo 'ac_maketemp="${MAKE}"'
1069 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1070 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1071 if test -n "$ac_maketemp"; then
1072 eval ac_cv_prog_make_
${ac_make}_set
=yes
1074 eval ac_cv_prog_make_
${ac_make}_set
=no
1078 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1079 echo "$ac_t""yes" 1>&6
1082 echo "$ac_t""no" 1>&6
1083 SET_MAKE
="MAKE=${MAKE-make}"
1086 # Extract the first word of "ranlib", so it can be a program name with args.
1087 set dummy ranlib
; ac_word
=$2
1088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1089 echo "configure:1088: checking for $ac_word" >&5
1090 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 if test -n "$RANLIB"; then
1094 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1096 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1097 for ac_dir
in $PATH; do
1098 test -z "$ac_dir" && ac_dir
=.
1099 if test -f $ac_dir/$ac_word; then
1100 ac_cv_prog_RANLIB
="ranlib"
1105 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1108 RANLIB
="$ac_cv_prog_RANLIB"
1109 if test -n "$RANLIB"; then
1110 echo "$ac_t""$RANLIB" 1>&6
1112 echo "$ac_t""no" 1>&6
1115 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1116 echo "configure:1115: checking for ANSI C header files" >&5
1117 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 cat > conftest.
$ac_ext <<EOF
1121 #line 1120 "configure"
1122 #include "confdefs.h"
1128 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1129 { (eval echo configure
:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1130 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1131 if test -z "$ac_err"; then
1133 ac_cv_header_stdc
=yes
1136 echo "configure: failed program was:" >&5
1137 cat conftest.
$ac_ext >&5
1139 ac_cv_header_stdc
=no
1143 if test $ac_cv_header_stdc = yes; then
1144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1145 cat > conftest.
$ac_ext <<EOF
1146 #line 1145 "configure"
1147 #include "confdefs.h"
1150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1151 egrep "memchr" >/dev
/null
2>&1; then
1155 ac_cv_header_stdc
=no
1161 if test $ac_cv_header_stdc = yes; then
1162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1163 cat > conftest.
$ac_ext <<EOF
1164 #line 1163 "configure"
1165 #include "confdefs.h"
1168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1169 egrep "free" >/dev
/null
2>&1; then
1173 ac_cv_header_stdc
=no
1179 if test $ac_cv_header_stdc = yes; then
1180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1181 if test "$cross_compiling" = yes; then
1184 cat > conftest.
$ac_ext <<EOF
1185 #line 1184 "configure"
1186 #include "confdefs.h"
1188 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1189 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1191 int main () { int i; for (i = 0; i < 256; i++)
1192 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1196 if { (eval echo configure
:1195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1200 echo "configure: failed program was:" >&5
1201 cat conftest.
$ac_ext >&5
1203 ac_cv_header_stdc
=no
1211 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1212 if test $ac_cv_header_stdc = yes; then
1213 cat >> confdefs.h
<<\EOF
1214 #define STDC_HEADERS 1
1219 echo $ac_n "checking for working const""... $ac_c" 1>&6
1220 echo "configure:1219: checking for working const" >&5
1221 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 cat > conftest.
$ac_ext <<EOF
1225 #line 1224 "configure"
1226 #include "confdefs.h"
1230 /* Ultrix mips cc rejects this. */
1231 typedef int charset[2]; const charset x;
1232 /* SunOS 4.1.1 cc rejects this. */
1233 char const *const *ccp;
1235 /* NEC SVR4.0.2 mips cc rejects this. */
1236 struct point {int x, y;};
1237 static struct point const zero = {0,0};
1238 /* AIX XL C 1.02.0.0 rejects this.
1239 It does not let you subtract one const X* pointer from another in an arm
1240 of an if-expression whose if-part is not a constant expression */
1241 const char *g = "string";
1242 ccp = &g + (g ? g-g : 0);
1243 /* HPUX 7.0 cc rejects these. */
1246 ccp = (char const *const *) p;
1247 { /* SCO 3.2v4 cc rejects this. */
1249 char const *s = 0 ? (char *) 0 : (char const *) 0;
1253 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1255 const int *foo = &x[0];
1258 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1259 typedef const int *iptr;
1263 { /* AIX XL C 1.02.0.0 rejects this saying
1264 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1265 struct s { int j; const int *ap[3]; };
1266 struct s *b; b->j = 5;
1268 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1274 if { (eval echo configure
:1273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1278 echo "configure: failed program was:" >&5
1279 cat conftest.
$ac_ext >&5
1286 echo "$ac_t""$ac_cv_c_const" 1>&6
1287 if test $ac_cv_c_const = no
; then
1288 cat >> confdefs.h
<<\EOF
1294 echo $ac_n "checking for inline""... $ac_c" 1>&6
1295 echo "configure:1294: checking for inline" >&5
1296 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1300 for ac_kw
in inline __inline__ __inline
; do
1301 cat > conftest.
$ac_ext <<EOF
1302 #line 1301 "configure"
1303 #include "confdefs.h"
1309 if { (eval echo configure
:1308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1311 ac_cv_c_inline
=$ac_kw; break
1313 echo "configure: failed program was:" >&5
1314 cat conftest.
$ac_ext >&5
1321 echo "$ac_t""$ac_cv_c_inline" 1>&6
1322 case "$ac_cv_c_inline" in
1324 no
) cat >> confdefs.h
<<\EOF
1328 *) cat >> confdefs.h
<<EOF
1329 #define inline $ac_cv_c_inline
1334 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1335 echo "configure:1334: checking for off_t" >&5
1336 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 cat > conftest.
$ac_ext <<EOF
1340 #line 1339 "configure"
1341 #include "confdefs.h"
1342 #include <sys/types.h>
1348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1349 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1351 ac_cv_type_off_t
=yes
1359 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1360 if test $ac_cv_type_off_t = no
; then
1361 cat >> confdefs.h
<<\EOF
1367 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1368 echo "configure:1367: checking for size_t" >&5
1369 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 cat > conftest.
$ac_ext <<EOF
1373 #line 1372 "configure"
1374 #include "confdefs.h"
1375 #include <sys/types.h>
1381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1382 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1384 ac_cv_type_size_t
=yes
1387 ac_cv_type_size_t
=no
1392 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1393 if test $ac_cv_type_size_t = no
; then
1394 cat >> confdefs.h
<<\EOF
1395 #define size_t unsigned
1400 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1401 # for constant arguments. Useless!
1402 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1403 echo "configure:1402: checking for working alloca.h" >&5
1404 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1407 cat > conftest.
$ac_ext <<EOF
1408 #line 1407 "configure"
1409 #include "confdefs.h"
1412 char *p = alloca(2 * sizeof(int));
1415 if { (eval echo configure
:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1417 ac_cv_header_alloca_h
=yes
1419 echo "configure: failed program was:" >&5
1420 cat conftest.
$ac_ext >&5
1422 ac_cv_header_alloca_h
=no
1427 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1428 if test $ac_cv_header_alloca_h = yes; then
1429 cat >> confdefs.h
<<\EOF
1430 #define HAVE_ALLOCA_H 1
1435 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1436 echo "configure:1435: checking for alloca" >&5
1437 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1440 cat > conftest.
$ac_ext <<EOF
1441 #line 1440 "configure"
1442 #include "confdefs.h"
1445 # define alloca __builtin_alloca
1448 # include <malloc.h>
1449 # define alloca _alloca
1452 # include <alloca.h>
1457 # ifndef alloca /* predefined by HP cc +Olibcalls */
1466 char *p = (char *) alloca(1);
1469 if { (eval echo configure
:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1471 ac_cv_func_alloca_works
=yes
1473 echo "configure: failed program was:" >&5
1474 cat conftest.
$ac_ext >&5
1476 ac_cv_func_alloca_works
=no
1481 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1482 if test $ac_cv_func_alloca_works = yes; then
1483 cat >> confdefs.h
<<\EOF
1484 #define HAVE_ALLOCA 1
1489 if test $ac_cv_func_alloca_works = no
; then
1490 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1491 # that cause trouble. Some versions do not even contain alloca or
1492 # contain a buggy version. If you still want to use their alloca,
1493 # use ar to extract alloca.o from them instead of compiling alloca.c.
1494 ALLOCA
=alloca.
${ac_objext}
1495 cat >> confdefs.h
<<\EOF
1500 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1501 echo "configure:1500: checking whether alloca needs Cray hooks" >&5
1502 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 cat > conftest.
$ac_ext <<EOF
1506 #line 1505 "configure"
1507 #include "confdefs.h"
1508 #if defined(CRAY) && ! defined(CRAY2)
1515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1516 egrep "webecray" >/dev
/null
2>&1; then
1527 echo "$ac_t""$ac_cv_os_cray" 1>&6
1528 if test $ac_cv_os_cray = yes; then
1529 for ac_func
in _getb67 GETB67 getb67
; do
1530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1531 echo "configure:1530: checking for $ac_func" >&5
1532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1535 cat > conftest.
$ac_ext <<EOF
1536 #line 1535 "configure"
1537 #include "confdefs.h"
1538 /* System header to define __stub macros and hopefully few prototypes,
1539 which can conflict with char $ac_func(); below. */
1541 /* Override any gcc2 internal prototype to avoid an error. */
1542 /* We use char because int might match the return type of a gcc2
1543 builtin and then its argument prototype would still apply. */
1548 /* The GNU C library defines this for functions which it implements
1549 to always fail with ENOSYS. Some functions are actually named
1550 something starting with __ and the normal name is an alias. */
1551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1559 if { (eval echo configure
:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1561 eval "ac_cv_func_$ac_func=yes"
1563 echo "configure: failed program was:" >&5
1564 cat conftest.
$ac_ext >&5
1566 eval "ac_cv_func_$ac_func=no"
1571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1572 echo "$ac_t""yes" 1>&6
1573 cat >> confdefs.h
<<EOF
1574 #define CRAY_STACKSEG_END $ac_func
1579 echo "$ac_t""no" 1>&6
1585 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1586 echo "configure:1585: checking stack direction for C alloca" >&5
1587 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1590 if test "$cross_compiling" = yes; then
1591 ac_cv_c_stack_direction
=0
1593 cat > conftest.
$ac_ext <<EOF
1594 #line 1593 "configure"
1595 #include "confdefs.h"
1596 find_stack_direction ()
1598 static char *addr = 0;
1603 return find_stack_direction ();
1606 return (&dummy > addr) ? 1 : -1;
1610 exit (find_stack_direction() < 0);
1613 if { (eval echo configure
:1612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1615 ac_cv_c_stack_direction
=1
1617 echo "configure: failed program was:" >&5
1618 cat conftest.
$ac_ext >&5
1620 ac_cv_c_stack_direction
=-1
1627 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1628 cat >> confdefs.h
<<EOF
1629 #define STACK_DIRECTION $ac_cv_c_stack_direction
1634 for ac_hdr
in unistd.h
1636 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1637 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1638 echo "configure:1637: checking for $ac_hdr" >&5
1639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1642 cat > conftest.
$ac_ext <<EOF
1643 #line 1642 "configure"
1644 #include "confdefs.h"
1647 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1648 { (eval echo configure
:1647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1649 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1650 if test -z "$ac_err"; then
1652 eval "ac_cv_header_$ac_safe=yes"
1655 echo "configure: failed program was:" >&5
1656 cat conftest.
$ac_ext >&5
1658 eval "ac_cv_header_$ac_safe=no"
1662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1663 echo "$ac_t""yes" 1>&6
1664 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1665 cat >> confdefs.h
<<EOF
1666 #define $ac_tr_hdr 1
1670 echo "$ac_t""no" 1>&6
1674 for ac_func
in getpagesize
1676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1677 echo "configure:1676: checking for $ac_func" >&5
1678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1681 cat > conftest.
$ac_ext <<EOF
1682 #line 1681 "configure"
1683 #include "confdefs.h"
1684 /* System header to define __stub macros and hopefully few prototypes,
1685 which can conflict with char $ac_func(); below. */
1687 /* Override any gcc2 internal prototype to avoid an error. */
1688 /* We use char because int might match the return type of a gcc2
1689 builtin and then its argument prototype would still apply. */
1694 /* The GNU C library defines this for functions which it implements
1695 to always fail with ENOSYS. Some functions are actually named
1696 something starting with __ and the normal name is an alias. */
1697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1705 if { (eval echo configure
:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1707 eval "ac_cv_func_$ac_func=yes"
1709 echo "configure: failed program was:" >&5
1710 cat conftest.
$ac_ext >&5
1712 eval "ac_cv_func_$ac_func=no"
1717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1718 echo "$ac_t""yes" 1>&6
1719 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1720 cat >> confdefs.h
<<EOF
1721 #define $ac_tr_func 1
1725 echo "$ac_t""no" 1>&6
1729 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1730 echo "configure:1729: checking for working mmap" >&5
1731 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 if test "$cross_compiling" = yes; then
1735 ac_cv_func_mmap_fixed_mapped
=no
1737 cat > conftest.
$ac_ext <<EOF
1738 #line 1737 "configure"
1739 #include "confdefs.h"
1741 /* Thanks to Mike Haertel and Jim Avera for this test.
1742 Here is a matrix of mmap possibilities:
1743 mmap private not fixed
1744 mmap private fixed at somewhere currently unmapped
1745 mmap private fixed at somewhere already mapped
1746 mmap shared not fixed
1747 mmap shared fixed at somewhere currently unmapped
1748 mmap shared fixed at somewhere already mapped
1749 For private mappings, we should verify that changes cannot be read()
1750 back from the file, nor mmap's back from the file at a different
1751 address. (There have been systems where private was not correctly
1752 implemented like the infamous i386 svr4.0, and systems where the
1753 VM page cache was not coherent with the filesystem buffer cache
1754 like early versions of FreeBSD and possibly contemporary NetBSD.)
1755 For shared mappings, we should conversely verify that changes get
1756 propogated back to all the places they're supposed to be.
1758 Grep wants private fixed already mapped.
1759 The main things grep needs to know about mmap are:
1760 * does it exist and is it safe to write into the mmap'd area
1761 * how to use it (BSD variants) */
1762 #include <sys/types.h>
1764 #include <sys/mman.h>
1766 /* This mess was copied from the GNU getpagesize.h. */
1767 #ifndef HAVE_GETPAGESIZE
1768 # ifdef HAVE_UNISTD_H
1769 # include <unistd.h>
1772 /* Assume that all systems that can run configure have sys/param.h. */
1773 # ifndef HAVE_SYS_PARAM_H
1774 # define HAVE_SYS_PARAM_H 1
1777 # ifdef _SC_PAGESIZE
1778 # define getpagesize() sysconf(_SC_PAGESIZE)
1779 # else /* no _SC_PAGESIZE */
1780 # ifdef HAVE_SYS_PARAM_H
1781 # include <sys/param.h>
1782 # ifdef EXEC_PAGESIZE
1783 # define getpagesize() EXEC_PAGESIZE
1784 # else /* no EXEC_PAGESIZE */
1786 # define getpagesize() NBPG * CLSIZE
1789 # endif /* no CLSIZE */
1790 # else /* no NBPG */
1792 # define getpagesize() NBPC
1793 # else /* no NBPC */
1795 # define getpagesize() PAGESIZE
1796 # endif /* PAGESIZE */
1797 # endif /* no NBPC */
1798 # endif /* no NBPG */
1799 # endif /* no EXEC_PAGESIZE */
1800 # else /* no HAVE_SYS_PARAM_H */
1801 # define getpagesize() 8192 /* punt totally */
1802 # endif /* no HAVE_SYS_PARAM_H */
1803 # endif /* no _SC_PAGESIZE */
1805 #endif /* no HAVE_GETPAGESIZE */
1808 extern "C" { void *malloc(unsigned); }
1816 char *data, *data2, *data3;
1820 pagesize = getpagesize();
1823 * First, make a file with some known garbage in it.
1825 data = malloc(pagesize);
1828 for (i = 0; i < pagesize; ++i)
1829 *(data + i) = rand();
1831 fd = creat("conftestmmap", 0600);
1834 if (write(fd, data, pagesize) != pagesize)
1839 * Next, try to mmap the file at a fixed address which
1840 * already has something else allocated at it. If we can,
1841 * also make sure that we see the same garbage.
1843 fd = open("conftestmmap", O_RDWR);
1846 data2 = malloc(2 * pagesize);
1849 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1850 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1851 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1853 for (i = 0; i < pagesize; ++i)
1854 if (*(data + i) != *(data2 + i))
1858 * Finally, make sure that changes to the mapped area
1859 * do not percolate back to the file as seen by read().
1860 * (This is a bug on some variants of i386 svr4.0.)
1862 for (i = 0; i < pagesize; ++i)
1863 *(data2 + i) = *(data2 + i) + 1;
1864 data3 = malloc(pagesize);
1867 if (read(fd, data3, pagesize) != pagesize)
1869 for (i = 0; i < pagesize; ++i)
1870 if (*(data + i) != *(data3 + i))
1873 unlink("conftestmmap");
1878 if { (eval echo configure
:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1880 ac_cv_func_mmap_fixed_mapped
=yes
1882 echo "configure: failed program was:" >&5
1883 cat conftest.
$ac_ext >&5
1885 ac_cv_func_mmap_fixed_mapped
=no
1892 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1893 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1894 cat >> confdefs.h
<<\EOF
1901 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1902 unistd.h values.h sys
/param.h
1904 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1905 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1906 echo "configure:1905: checking for $ac_hdr" >&5
1907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1910 cat > conftest.
$ac_ext <<EOF
1911 #line 1910 "configure"
1912 #include "confdefs.h"
1915 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1916 { (eval echo configure
:1915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1917 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1918 if test -z "$ac_err"; then
1920 eval "ac_cv_header_$ac_safe=yes"
1923 echo "configure: failed program was:" >&5
1924 cat conftest.
$ac_ext >&5
1926 eval "ac_cv_header_$ac_safe=no"
1930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1931 echo "$ac_t""yes" 1>&6
1932 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1933 cat >> confdefs.h
<<EOF
1934 #define $ac_tr_hdr 1
1938 echo "$ac_t""no" 1>&6
1942 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1943 __argz_count __argz_stringify __argz_next
1945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1946 echo "configure:1945: checking for $ac_func" >&5
1947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 cat > conftest.
$ac_ext <<EOF
1951 #line 1950 "configure"
1952 #include "confdefs.h"
1953 /* System header to define __stub macros and hopefully few prototypes,
1954 which can conflict with char $ac_func(); below. */
1956 /* Override any gcc2 internal prototype to avoid an error. */
1957 /* We use char because int might match the return type of a gcc2
1958 builtin and then its argument prototype would still apply. */
1963 /* The GNU C library defines this for functions which it implements
1964 to always fail with ENOSYS. Some functions are actually named
1965 something starting with __ and the normal name is an alias. */
1966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1974 if { (eval echo configure
:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1976 eval "ac_cv_func_$ac_func=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.
$ac_ext >&5
1981 eval "ac_cv_func_$ac_func=no"
1986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1987 echo "$ac_t""yes" 1>&6
1988 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1989 cat >> confdefs.h
<<EOF
1990 #define $ac_tr_func 1
1994 echo "$ac_t""no" 1>&6
1999 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2000 for ac_func
in stpcpy
2002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2003 echo "configure:2002: checking for $ac_func" >&5
2004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2007 cat > conftest.
$ac_ext <<EOF
2008 #line 2007 "configure"
2009 #include "confdefs.h"
2010 /* System header to define __stub macros and hopefully few prototypes,
2011 which can conflict with char $ac_func(); below. */
2013 /* Override any gcc2 internal prototype to avoid an error. */
2014 /* We use char because int might match the return type of a gcc2
2015 builtin and then its argument prototype would still apply. */
2020 /* The GNU C library defines this for functions which it implements
2021 to always fail with ENOSYS. Some functions are actually named
2022 something starting with __ and the normal name is an alias. */
2023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2031 if { (eval echo configure
:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2033 eval "ac_cv_func_$ac_func=yes"
2035 echo "configure: failed program was:" >&5
2036 cat conftest.
$ac_ext >&5
2038 eval "ac_cv_func_$ac_func=no"
2043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2044 echo "$ac_t""yes" 1>&6
2045 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2046 cat >> confdefs.h
<<EOF
2047 #define $ac_tr_func 1
2051 echo "$ac_t""no" 1>&6
2056 if test "${ac_cv_func_stpcpy}" = "yes"; then
2057 cat >> confdefs.h
<<\EOF
2058 #define HAVE_STPCPY 1
2063 if test $ac_cv_header_locale_h = yes; then
2064 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2065 echo "configure:2064: checking for LC_MESSAGES" >&5
2066 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 cat > conftest.
$ac_ext <<EOF
2070 #line 2069 "configure"
2071 #include "confdefs.h"
2077 if { (eval echo configure
:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2079 am_cv_val_LC_MESSAGES
=yes
2081 echo "configure: failed program was:" >&5
2082 cat conftest.
$ac_ext >&5
2084 am_cv_val_LC_MESSAGES
=no
2089 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2090 if test $am_cv_val_LC_MESSAGES = yes; then
2091 cat >> confdefs.h
<<\EOF
2092 #define HAVE_LC_MESSAGES 1
2097 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2098 echo "configure:2097: checking whether NLS is requested" >&5
2099 # Check whether --enable-nls or --disable-nls was given.
2100 if test "${enable_nls+set}" = set; then
2101 enableval
="$enable_nls"
2107 echo "$ac_t""$USE_NLS" 1>&6
2110 USE_INCLUDED_LIBINTL
=no
2112 if test "$USE_NLS" = "yes"; then
2113 cat >> confdefs.h
<<\EOF
2114 #define ENABLE_NLS 1
2117 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2118 echo "configure:2117: checking whether included gettext is requested" >&5
2119 # Check whether --with-included-gettext or --without-included-gettext was given.
2120 if test "${with_included_gettext+set}" = set; then
2121 withval
="$with_included_gettext"
2122 nls_cv_force_use_gnu_gettext
=$withval
2124 nls_cv_force_use_gnu_gettext
=no
2127 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2129 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2130 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2132 nls_cv_header_libgt
=
2135 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2136 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2137 echo "configure:2136: checking for libintl.h" >&5
2138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 cat > conftest.
$ac_ext <<EOF
2142 #line 2141 "configure"
2143 #include "confdefs.h"
2144 #include <libintl.h>
2146 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2147 { (eval echo configure
:2146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2148 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2149 if test -z "$ac_err"; then
2151 eval "ac_cv_header_$ac_safe=yes"
2154 echo "configure: failed program was:" >&5
2155 cat conftest.
$ac_ext >&5
2157 eval "ac_cv_header_$ac_safe=no"
2161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2162 echo "$ac_t""yes" 1>&6
2163 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2164 echo "configure:2163: checking for gettext in libc" >&5
2165 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2168 cat > conftest.
$ac_ext <<EOF
2169 #line 2168 "configure"
2170 #include "confdefs.h"
2171 #include <libintl.h>
2173 return (int) gettext ("")
2176 if { (eval echo configure
:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2178 gt_cv_func_gettext_libc
=yes
2180 echo "configure: failed program was:" >&5
2181 cat conftest.
$ac_ext >&5
2183 gt_cv_func_gettext_libc
=no
2188 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2190 if test "$gt_cv_func_gettext_libc" != "yes"; then
2191 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2192 echo "configure:2191: checking for bindtextdomain in -lintl" >&5
2193 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2197 ac_save_LIBS
="$LIBS"
2199 cat > conftest.
$ac_ext <<EOF
2200 #line 2199 "configure"
2201 #include "confdefs.h"
2202 /* Override any gcc2 internal prototype to avoid an error. */
2203 /* We use char because int might match the return type of a gcc2
2204 builtin and then its argument prototype would still apply. */
2205 char bindtextdomain();
2211 if { (eval echo configure
:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2213 eval "ac_cv_lib_$ac_lib_var=yes"
2215 echo "configure: failed program was:" >&5
2216 cat conftest.
$ac_ext >&5
2218 eval "ac_cv_lib_$ac_lib_var=no"
2221 LIBS
="$ac_save_LIBS"
2224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2225 echo "$ac_t""yes" 1>&6
2226 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2227 echo "configure:2226: checking for gettext in libintl" >&5
2228 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 cat > conftest.
$ac_ext <<EOF
2232 #line 2231 "configure"
2233 #include "confdefs.h"
2236 return (int) gettext ("")
2239 if { (eval echo configure
:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2241 gt_cv_func_gettext_libintl
=yes
2243 echo "configure: failed program was:" >&5
2244 cat conftest.
$ac_ext >&5
2246 gt_cv_func_gettext_libintl
=no
2251 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2253 echo "$ac_t""no" 1>&6
2258 if test "$gt_cv_func_gettext_libc" = "yes" \
2259 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2260 cat >> confdefs.h
<<\EOF
2261 #define HAVE_GETTEXT 1
2264 # Extract the first word of "msgfmt", so it can be a program name with args.
2265 set dummy msgfmt
; ac_word
=$2
2266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2267 echo "configure:2266: checking for $ac_word" >&5
2268 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2273 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2276 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2277 for ac_dir
in $PATH; do
2278 test -z "$ac_dir" && ac_dir
=.
2279 if test -f $ac_dir/$ac_word; then
2280 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2281 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2287 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2291 MSGFMT
="$ac_cv_path_MSGFMT"
2292 if test -n "$MSGFMT"; then
2293 echo "$ac_t""$MSGFMT" 1>&6
2295 echo "$ac_t""no" 1>&6
2297 if test "$MSGFMT" != "no"; then
2298 for ac_func
in dcgettext
2300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2301 echo "configure:2300: checking for $ac_func" >&5
2302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.
$ac_ext <<EOF
2306 #line 2305 "configure"
2307 #include "confdefs.h"
2308 /* System header to define __stub macros and hopefully few prototypes,
2309 which can conflict with char $ac_func(); below. */
2311 /* Override any gcc2 internal prototype to avoid an error. */
2312 /* We use char because int might match the return type of a gcc2
2313 builtin and then its argument prototype would still apply. */
2318 /* The GNU C library defines this for functions which it implements
2319 to always fail with ENOSYS. Some functions are actually named
2320 something starting with __ and the normal name is an alias. */
2321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2329 if { (eval echo configure
:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2331 eval "ac_cv_func_$ac_func=yes"
2333 echo "configure: failed program was:" >&5
2334 cat conftest.
$ac_ext >&5
2336 eval "ac_cv_func_$ac_func=no"
2341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2342 echo "$ac_t""yes" 1>&6
2343 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2344 cat >> confdefs.h
<<EOF
2345 #define $ac_tr_func 1
2349 echo "$ac_t""no" 1>&6
2353 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2354 set dummy gmsgfmt
; ac_word
=$2
2355 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2356 echo "configure:2355: checking for $ac_word" >&5
2357 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2362 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2365 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2368 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2369 for ac_dir
in $PATH; do
2370 test -z "$ac_dir" && ac_dir
=.
2371 if test -f $ac_dir/$ac_word; then
2372 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2377 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2381 GMSGFMT
="$ac_cv_path_GMSGFMT"
2382 if test -n "$GMSGFMT"; then
2383 echo "$ac_t""$GMSGFMT" 1>&6
2385 echo "$ac_t""no" 1>&6
2388 # Extract the first word of "xgettext", so it can be a program name with args.
2389 set dummy xgettext
; ac_word
=$2
2390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2391 echo "configure:2390: checking for $ac_word" >&5
2392 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2397 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2400 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2401 for ac_dir
in $PATH; do
2402 test -z "$ac_dir" && ac_dir
=.
2403 if test -f $ac_dir/$ac_word; then
2404 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2405 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2411 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2415 XGETTEXT
="$ac_cv_path_XGETTEXT"
2416 if test -n "$XGETTEXT"; then
2417 echo "$ac_t""$XGETTEXT" 1>&6
2419 echo "$ac_t""no" 1>&6
2422 cat > conftest.
$ac_ext <<EOF
2423 #line 2422 "configure"
2424 #include "confdefs.h"
2427 extern int _nl_msg_cat_cntr;
2428 return _nl_msg_cat_cntr
2431 if { (eval echo configure
:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2436 echo "configure: failed program was:" >&5
2437 cat conftest.
$ac_ext >&5
2448 echo "$ac_t""no" 1>&6
2453 if test "$CATOBJEXT" = "NONE"; then
2454 nls_cv_use_gnu_gettext
=yes
2458 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2459 INTLOBJS
="\$(GETTOBJS)"
2460 # Extract the first word of "msgfmt", so it can be a program name with args.
2461 set dummy msgfmt
; ac_word
=$2
2462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2463 echo "configure:2462: checking for $ac_word" >&5
2464 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2469 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2472 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2473 for ac_dir
in $PATH; do
2474 test -z "$ac_dir" && ac_dir
=.
2475 if test -f $ac_dir/$ac_word; then
2476 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2477 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2483 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2487 MSGFMT
="$ac_cv_path_MSGFMT"
2488 if test -n "$MSGFMT"; then
2489 echo "$ac_t""$MSGFMT" 1>&6
2491 echo "$ac_t""no" 1>&6
2494 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2495 set dummy gmsgfmt
; ac_word
=$2
2496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2497 echo "configure:2496: checking for $ac_word" >&5
2498 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2503 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2506 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2509 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2510 for ac_dir
in $PATH; do
2511 test -z "$ac_dir" && ac_dir
=.
2512 if test -f $ac_dir/$ac_word; then
2513 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2518 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2522 GMSGFMT
="$ac_cv_path_GMSGFMT"
2523 if test -n "$GMSGFMT"; then
2524 echo "$ac_t""$GMSGFMT" 1>&6
2526 echo "$ac_t""no" 1>&6
2529 # Extract the first word of "xgettext", so it can be a program name with args.
2530 set dummy xgettext
; ac_word
=$2
2531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2532 echo "configure:2531: checking for $ac_word" >&5
2533 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2538 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2541 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2542 for ac_dir
in $PATH; do
2543 test -z "$ac_dir" && ac_dir
=.
2544 if test -f $ac_dir/$ac_word; then
2545 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2546 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2552 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2556 XGETTEXT
="$ac_cv_path_XGETTEXT"
2557 if test -n "$XGETTEXT"; then
2558 echo "$ac_t""$XGETTEXT" 1>&6
2560 echo "$ac_t""no" 1>&6
2564 USE_INCLUDED_LIBINTL
=yes
2568 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2570 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2571 nls_cv_header_intl
=libintl.h
2572 nls_cv_header_libgt
=libgettext.h
2575 if test "$XGETTEXT" != ":"; then
2576 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2579 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2584 # We need to process the po/ directory.
2588 nls_cv_header_intl
=libintl.h
2589 nls_cv_header_libgt
=libgettext.h
2592 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2593 # because some of the sources are only built for this goal.
2594 if test "$PACKAGE" = gettext; then
2596 USE_INCLUDED_LIBINTL
=yes
2599 for lang
in $ALL_LINGUAS; do
2600 GMOFILES
="$GMOFILES $lang.gmo"
2601 POFILES
="$POFILES $lang.po"
2617 if test "x$CATOBJEXT" != "x"; then
2618 if test "x$ALL_LINGUAS" = "x"; then
2621 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2622 echo "configure:2621: checking for catalogs to be installed" >&5
2624 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2625 case "$ALL_LINGUAS" in
2626 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2629 LINGUAS
=$NEW_LINGUAS
2630 echo "$ac_t""$LINGUAS" 1>&6
2633 if test -n "$LINGUAS"; then
2634 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2638 if test $ac_cv_header_locale_h = yes; then
2639 INCLUDE_LOCALE_H
="#include <locale.h>"
2642 /* The system does not provide the header <locale.h>. Take care yourself. */"
2646 if test -f $srcdir/po2tbl.
sed.
in; then
2647 if test "$CATOBJEXT" = ".cat"; then
2648 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2649 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2650 echo "configure:2649: checking for linux/version.h" >&5
2651 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2654 cat > conftest.
$ac_ext <<EOF
2655 #line 2654 "configure"
2656 #include "confdefs.h"
2657 #include <linux/version.h>
2659 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2660 { (eval echo configure
:2659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2661 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2662 if test -z "$ac_err"; then
2664 eval "ac_cv_header_$ac_safe=yes"
2667 echo "configure: failed program was:" >&5
2668 cat conftest.
$ac_ext >&5
2670 eval "ac_cv_header_$ac_safe=no"
2674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2675 echo "$ac_t""yes" 1>&6
2678 echo "$ac_t""no" 1>&6
2683 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2685 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2686 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2689 if test "$PACKAGE" = "gettext"; then
2699 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2705 if test -d $srcdir/po
; then
2706 test -d po || mkdir po
2707 if test "x$srcdir" != "x."; then
2708 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2709 posrcprefix
="$srcdir/"
2711 posrcprefix
="../$srcdir/"
2717 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2718 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2727 configdirs
="doc testsuite"
2730 .
${srcdir}/configure.
host
2732 .
${srcdir}/configure.tgt
2735 # Find a good install program. We prefer a C program (faster),
2736 # so one script is as good as another. But avoid the broken or
2737 # incompatible versions:
2738 # SysV /etc/install, /usr/sbin/install
2739 # SunOS /usr/etc/install
2740 # IRIX /sbin/install
2742 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2743 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2744 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2745 # ./install, which can be erroneously created by make from ./install.sh.
2746 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2747 echo "configure:2746: checking for a BSD compatible install" >&5
2748 if test -z "$INSTALL"; then
2749 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2752 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2753 for ac_dir
in $PATH; do
2754 # Account for people who put trailing slashes in PATH elements.
2756 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2758 # OSF1 and SCO ODT 3.0 have their own names for install.
2759 # Don't use installbsd from OSF since it installs stuff as root
2761 for ac_prog
in ginstall scoinst
install; do
2762 if test -f $ac_dir/$ac_prog; then
2763 if test $ac_prog = install &&
2764 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2765 # AIX install. It has an incompatible calling convention.
2768 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2779 if test "${ac_cv_path_install+set}" = set; then
2780 INSTALL
="$ac_cv_path_install"
2782 # As a last resort, use the slow shell script. We don't cache a
2783 # path for INSTALL within a source directory, because that will
2784 # break other packages using the cache if that directory is
2785 # removed, or if the path is relative.
2786 INSTALL
="$ac_install_sh"
2789 echo "$ac_t""$INSTALL" 1>&6
2791 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2792 # It thinks the first close brace ends the variable substitution.
2793 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2795 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2797 if test $host != $build; then
2798 ac_tool_prefix
=${host_alias}-
2803 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2804 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2806 echo "configure:2805: checking for $ac_word" >&5
2807 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2810 if test -n "$AR"; then
2811 ac_cv_prog_AR
="$AR" # Let the user override the test.
2813 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2814 for ac_dir
in $PATH; do
2815 test -z "$ac_dir" && ac_dir
=.
2816 if test -f $ac_dir/$ac_word; then
2817 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2822 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2826 if test -n "$AR"; then
2827 echo "$ac_t""$AR" 1>&6
2829 echo "$ac_t""no" 1>&6
2834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2835 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2837 echo "configure:2836: checking for $ac_word" >&5
2838 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2841 if test -n "$RANLIB"; then
2842 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2844 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2845 for ac_dir
in $PATH; do
2846 test -z "$ac_dir" && ac_dir
=.
2847 if test -f $ac_dir/$ac_word; then
2848 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2855 RANLIB
="$ac_cv_prog_RANLIB"
2856 if test -n "$RANLIB"; then
2857 echo "$ac_t""$RANLIB" 1>&6
2859 echo "$ac_t""no" 1>&6
2863 if test -z "$ac_cv_prog_RANLIB"; then
2864 if test -n "$ac_tool_prefix"; then
2865 # Extract the first word of "ranlib", so it can be a program name with args.
2866 set dummy ranlib
; ac_word
=$2
2867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2868 echo "configure:2867: checking for $ac_word" >&5
2869 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2870 echo $ac_n "(cached) $ac_c" 1>&6
2872 if test -n "$RANLIB"; then
2873 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2875 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2876 for ac_dir
in $PATH; do
2877 test -z "$ac_dir" && ac_dir
=.
2878 if test -f $ac_dir/$ac_word; then
2879 ac_cv_prog_RANLIB
="ranlib"
2884 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2887 RANLIB
="$ac_cv_prog_RANLIB"
2888 if test -n "$RANLIB"; then
2889 echo "$ac_t""$RANLIB" 1>&6
2891 echo "$ac_t""no" 1>&6
2899 for ac_prog
in 'bison -y' byacc
2901 # Extract the first word of "$ac_prog", so it can be a program name with args.
2902 set dummy
$ac_prog; ac_word
=$2
2903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2904 echo "configure:2903: checking for $ac_word" >&5
2905 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2908 if test -n "$YACC"; then
2909 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2911 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2912 for ac_dir
in $PATH; do
2913 test -z "$ac_dir" && ac_dir
=.
2914 if test -f $ac_dir/$ac_word; then
2915 ac_cv_prog_YACC
="$ac_prog"
2922 YACC
="$ac_cv_prog_YACC"
2923 if test -n "$YACC"; then
2924 echo "$ac_t""$YACC" 1>&6
2926 echo "$ac_t""no" 1>&6
2929 test -n "$YACC" && break
2931 test -n "$YACC" || YACC
="yacc"
2933 for ac_prog
in mawk gawk nawk
awk
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy
$ac_prog; ac_word
=$2
2937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2938 echo "configure:2937: checking for $ac_word" >&5
2939 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2942 if test -n "$AWK"; then
2943 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2945 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2946 for ac_dir
in $PATH; do
2947 test -z "$ac_dir" && ac_dir
=.
2948 if test -f $ac_dir/$ac_word; then
2949 ac_cv_prog_AWK
="$ac_prog"
2956 AWK
="$ac_cv_prog_AWK"
2957 if test -n "$AWK"; then
2958 echo "$ac_t""$AWK" 1>&6
2960 echo "$ac_t""no" 1>&6
2963 test -n "$AWK" && break
2967 if test "$program_transform_name" = s
,x
,x
,; then
2968 program_transform_name
=
2970 # Double any \ or $. echo might interpret backslashes.
2971 cat <<\EOF_SED
> conftestsed
2972 s
,\\,\\\\,g
; s
,\$
,$$
,g
2974 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2977 test "$program_prefix" != NONE
&&
2978 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2979 # Use a double $ so make ignores it.
2980 test "$program_suffix" != NONE
&&
2981 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2983 # sed with no file args requires a program.
2984 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2987 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2988 echo "configure:2987: checking return type of signal handlers" >&5
2989 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2992 cat > conftest.
$ac_ext <<EOF
2993 #line 2992 "configure"
2994 #include "confdefs.h"
2995 #include <sys/types.h>
3001 extern "C" void (*signal (int, void (*)(int)))(int);
3003 void (*signal ()) ();
3010 if { (eval echo configure
:3009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3012 ac_cv_type_signal
=void
3014 echo "configure: failed program was:" >&5
3015 cat conftest.
$ac_ext >&5
3017 ac_cv_type_signal
=int
3022 echo "$ac_t""$ac_cv_type_signal" 1>&6
3023 cat >> confdefs.h
<<EOF
3024 #define RETSIGTYPE $ac_cv_type_signal
3029 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3030 echo "configure:3029: checking for ANSI C header files" >&5
3031 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.
$ac_ext <<EOF
3035 #line 3034 "configure"
3036 #include "confdefs.h"
3042 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3043 { (eval echo configure
:3042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3044 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3045 if test -z "$ac_err"; then
3047 ac_cv_header_stdc
=yes
3050 echo "configure: failed program was:" >&5
3051 cat conftest.
$ac_ext >&5
3053 ac_cv_header_stdc
=no
3057 if test $ac_cv_header_stdc = yes; then
3058 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3059 cat > conftest.
$ac_ext <<EOF
3060 #line 3059 "configure"
3061 #include "confdefs.h"
3064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3065 egrep "memchr" >/dev
/null
2>&1; then
3069 ac_cv_header_stdc
=no
3075 if test $ac_cv_header_stdc = yes; then
3076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3077 cat > conftest.
$ac_ext <<EOF
3078 #line 3077 "configure"
3079 #include "confdefs.h"
3082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3083 egrep "free" >/dev
/null
2>&1; then
3087 ac_cv_header_stdc
=no
3093 if test $ac_cv_header_stdc = yes; then
3094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3095 if test "$cross_compiling" = yes; then
3098 cat > conftest.
$ac_ext <<EOF
3099 #line 3098 "configure"
3100 #include "confdefs.h"
3102 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3103 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3104 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3105 int main () { int i; for (i = 0; i < 256; i++)
3106 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3110 if { (eval echo configure
:3109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3114 echo "configure: failed program was:" >&5
3115 cat conftest.
$ac_ext >&5
3117 ac_cv_header_stdc
=no
3125 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3126 if test $ac_cv_header_stdc = yes; then
3127 cat >> confdefs.h
<<\EOF
3128 #define STDC_HEADERS 1
3133 for ac_hdr
in ctype.h curses.h endian.h libintl.h limits.h link.h \
3134 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3135 string.h
strings.h sys
/procfs.h sys
/ptrace.h sys
/reg.h \
3136 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3139 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3140 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3141 echo "configure:3140: checking for $ac_hdr" >&5
3142 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3143 echo $ac_n "(cached) $ac_c" 1>&6
3145 cat > conftest.
$ac_ext <<EOF
3146 #line 3145 "configure"
3147 #include "confdefs.h"
3150 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3151 { (eval echo configure
:3150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3152 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3153 if test -z "$ac_err"; then
3155 eval "ac_cv_header_$ac_safe=yes"
3158 echo "configure: failed program was:" >&5
3159 cat conftest.
$ac_ext >&5
3161 eval "ac_cv_header_$ac_safe=no"
3165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3166 echo "$ac_t""yes" 1>&6
3167 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3168 cat >> confdefs.h
<<EOF
3169 #define $ac_tr_hdr 1
3173 echo "$ac_t""no" 1>&6
3178 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3179 echo "configure:3178: checking whether stat file-mode macros are broken" >&5
3180 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3181 echo $ac_n "(cached) $ac_c" 1>&6
3183 cat > conftest.
$ac_ext <<EOF
3184 #line 3183 "configure"
3185 #include "confdefs.h"
3186 #include <sys/types.h>
3187 #include <sys/stat.h>
3189 #if defined(S_ISBLK) && defined(S_IFDIR)
3190 # if S_ISBLK (S_IFDIR)
3195 #if defined(S_ISBLK) && defined(S_IFCHR)
3196 # if S_ISBLK (S_IFCHR)
3201 #if defined(S_ISLNK) && defined(S_IFREG)
3202 # if S_ISLNK (S_IFREG)
3207 #if defined(S_ISSOCK) && defined(S_IFREG)
3208 # if S_ISSOCK (S_IFREG)
3214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3215 egrep "You lose" >/dev
/null
2>&1; then
3217 ac_cv_header_stat_broken
=yes
3220 ac_cv_header_stat_broken
=no
3226 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3227 if test $ac_cv_header_stat_broken = yes; then
3228 cat >> confdefs.h
<<\EOF
3229 #define STAT_MACROS_BROKEN 1
3235 echo $ac_n "checking for working const""... $ac_c" 1>&6
3236 echo "configure:3235: checking for working const" >&5
3237 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3240 cat > conftest.
$ac_ext <<EOF
3241 #line 3240 "configure"
3242 #include "confdefs.h"
3246 /* Ultrix mips cc rejects this. */
3247 typedef int charset[2]; const charset x;
3248 /* SunOS 4.1.1 cc rejects this. */
3249 char const *const *ccp;
3251 /* NEC SVR4.0.2 mips cc rejects this. */
3252 struct point {int x, y;};
3253 static struct point const zero = {0,0};
3254 /* AIX XL C 1.02.0.0 rejects this.
3255 It does not let you subtract one const X* pointer from another in an arm
3256 of an if-expression whose if-part is not a constant expression */
3257 const char *g = "string";
3258 ccp = &g + (g ? g-g : 0);
3259 /* HPUX 7.0 cc rejects these. */
3262 ccp = (char const *const *) p;
3263 { /* SCO 3.2v4 cc rejects this. */
3265 char const *s = 0 ? (char *) 0 : (char const *) 0;
3269 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3271 const int *foo = &x[0];
3274 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3275 typedef const int *iptr;
3279 { /* AIX XL C 1.02.0.0 rejects this saying
3280 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3281 struct s { int j; const int *ap[3]; };
3282 struct s *b; b->j = 5;
3284 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3290 if { (eval echo configure
:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3294 echo "configure: failed program was:" >&5
3295 cat conftest.
$ac_ext >&5
3302 echo "$ac_t""$ac_cv_c_const" 1>&6
3303 if test $ac_cv_c_const = no
; then
3304 cat >> confdefs.h
<<\EOF
3311 for ac_func
in setpgid sbrk
select poll sigaction isascii bzero bcopy \
3314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3315 echo "configure:3314: checking for $ac_func" >&5
3316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 cat > conftest.
$ac_ext <<EOF
3320 #line 3319 "configure"
3321 #include "confdefs.h"
3322 /* System header to define __stub macros and hopefully few prototypes,
3323 which can conflict with char $ac_func(); below. */
3325 /* Override any gcc2 internal prototype to avoid an error. */
3326 /* We use char because int might match the return type of a gcc2
3327 builtin and then its argument prototype would still apply. */
3332 /* The GNU C library defines this for functions which it implements
3333 to always fail with ENOSYS. Some functions are actually named
3334 something starting with __ and the normal name is an alias. */
3335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3343 if { (eval echo configure
:3342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3345 eval "ac_cv_func_$ac_func=yes"
3347 echo "configure: failed program was:" >&5
3348 cat conftest.
$ac_ext >&5
3350 eval "ac_cv_func_$ac_func=no"
3355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3356 echo "$ac_t""yes" 1>&6
3357 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3358 cat >> confdefs.h
<<EOF
3359 #define $ac_tr_func 1
3363 echo "$ac_t""no" 1>&6
3367 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3368 # for constant arguments. Useless!
3369 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3370 echo "configure:3369: checking for working alloca.h" >&5
3371 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3374 cat > conftest.
$ac_ext <<EOF
3375 #line 3374 "configure"
3376 #include "confdefs.h"
3379 char *p = alloca(2 * sizeof(int));
3382 if { (eval echo configure
:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3384 ac_cv_header_alloca_h
=yes
3386 echo "configure: failed program was:" >&5
3387 cat conftest.
$ac_ext >&5
3389 ac_cv_header_alloca_h
=no
3394 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3395 if test $ac_cv_header_alloca_h = yes; then
3396 cat >> confdefs.h
<<\EOF
3397 #define HAVE_ALLOCA_H 1
3402 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3403 echo "configure:3402: checking for alloca" >&5
3404 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3407 cat > conftest.
$ac_ext <<EOF
3408 #line 3407 "configure"
3409 #include "confdefs.h"
3412 # define alloca __builtin_alloca
3415 # include <malloc.h>
3416 # define alloca _alloca
3419 # include <alloca.h>
3424 # ifndef alloca /* predefined by HP cc +Olibcalls */
3433 char *p = (char *) alloca(1);
3436 if { (eval echo configure
:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3438 ac_cv_func_alloca_works
=yes
3440 echo "configure: failed program was:" >&5
3441 cat conftest.
$ac_ext >&5
3443 ac_cv_func_alloca_works
=no
3448 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3449 if test $ac_cv_func_alloca_works = yes; then
3450 cat >> confdefs.h
<<\EOF
3451 #define HAVE_ALLOCA 1
3456 if test $ac_cv_func_alloca_works = no
; then
3457 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3458 # that cause trouble. Some versions do not even contain alloca or
3459 # contain a buggy version. If you still want to use their alloca,
3460 # use ar to extract alloca.o from them instead of compiling alloca.c.
3461 ALLOCA
=alloca.
${ac_objext}
3462 cat >> confdefs.h
<<\EOF
3467 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3468 echo "configure:3467: checking whether alloca needs Cray hooks" >&5
3469 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3472 cat > conftest.
$ac_ext <<EOF
3473 #line 3472 "configure"
3474 #include "confdefs.h"
3475 #if defined(CRAY) && ! defined(CRAY2)
3482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3483 egrep "webecray" >/dev
/null
2>&1; then
3494 echo "$ac_t""$ac_cv_os_cray" 1>&6
3495 if test $ac_cv_os_cray = yes; then
3496 for ac_func
in _getb67 GETB67 getb67
; do
3497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3498 echo "configure:3497: checking for $ac_func" >&5
3499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3502 cat > conftest.
$ac_ext <<EOF
3503 #line 3502 "configure"
3504 #include "confdefs.h"
3505 /* System header to define __stub macros and hopefully few prototypes,
3506 which can conflict with char $ac_func(); below. */
3508 /* Override any gcc2 internal prototype to avoid an error. */
3509 /* We use char because int might match the return type of a gcc2
3510 builtin and then its argument prototype would still apply. */
3515 /* The GNU C library defines this for functions which it implements
3516 to always fail with ENOSYS. Some functions are actually named
3517 something starting with __ and the normal name is an alias. */
3518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3526 if { (eval echo configure
:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3528 eval "ac_cv_func_$ac_func=yes"
3530 echo "configure: failed program was:" >&5
3531 cat conftest.
$ac_ext >&5
3533 eval "ac_cv_func_$ac_func=no"
3538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3539 echo "$ac_t""yes" 1>&6
3540 cat >> confdefs.h
<<EOF
3541 #define CRAY_STACKSEG_END $ac_func
3546 echo "$ac_t""no" 1>&6
3552 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3553 echo "configure:3552: checking stack direction for C alloca" >&5
3554 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 if test "$cross_compiling" = yes; then
3558 ac_cv_c_stack_direction
=0
3560 cat > conftest.
$ac_ext <<EOF
3561 #line 3560 "configure"
3562 #include "confdefs.h"
3563 find_stack_direction ()
3565 static char *addr = 0;
3570 return find_stack_direction ();
3573 return (&dummy > addr) ? 1 : -1;
3577 exit (find_stack_direction() < 0);
3580 if { (eval echo configure
:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3582 ac_cv_c_stack_direction
=1
3584 echo "configure: failed program was:" >&5
3585 cat conftest.
$ac_ext >&5
3587 ac_cv_c_stack_direction
=-1
3594 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3595 cat >> confdefs.h
<<EOF
3596 #define STACK_DIRECTION $ac_cv_c_stack_direction
3602 # If we are configured native on GNU/Linux, work around problems with sys/procfs.h
3603 if test "${target}" = "${host}"; then
3606 cat >> confdefs.h
<<\EOF
3607 #define START_INFERIOR_TRAPS_EXPECTED 2
3610 cat >> confdefs.h
<<\EOF
3611 #define sys_quotactl 1
3618 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
3619 echo "configure:3618: checking for gregset_t type" >&5
3620 if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 cat > conftest.
$ac_ext <<EOF
3624 #line 3623 "configure"
3625 #include "confdefs.h"
3626 #include <sys/procfs.h>
3628 gregset_t *gregsetp = 0
3631 if { (eval echo configure
:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3633 gdb_cv_have_gregset_t
=yes
3635 echo "configure: failed program was:" >&5
3636 cat conftest.
$ac_ext >&5
3638 gdb_cv_have_gregset_t
=no
3643 echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6
3644 if test $gdb_cv_have_gregset_t = yes; then
3645 cat >> confdefs.h
<<\EOF
3646 #define HAVE_GREGSET_T 1
3651 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
3652 echo "configure:3651: checking for fpregset_t type" >&5
3653 if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3656 cat > conftest.
$ac_ext <<EOF
3657 #line 3656 "configure"
3658 #include "confdefs.h"
3659 #include <sys/procfs.h>
3661 fpregset_t *fpregsetp = 0
3664 if { (eval echo configure
:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3666 gdb_cv_have_fpregset_t
=yes
3668 echo "configure: failed program was:" >&5
3669 cat conftest.
$ac_ext >&5
3671 gdb_cv_have_fpregset_t
=no
3676 echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6
3677 if test $gdb_cv_have_fpregset_t = yes; then
3678 cat >> confdefs.h
<<\EOF
3679 #define HAVE_FPREGSET_T 1
3684 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3685 echo "configure:3684: checking for main in -lm" >&5
3686 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3690 ac_save_LIBS
="$LIBS"
3692 cat > conftest.
$ac_ext <<EOF
3693 #line 3692 "configure"
3694 #include "confdefs.h"
3700 if { (eval echo configure
:3699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3702 eval "ac_cv_lib_$ac_lib_var=yes"
3704 echo "configure: failed program was:" >&5
3705 cat conftest.
$ac_ext >&5
3707 eval "ac_cv_lib_$ac_lib_var=no"
3710 LIBS
="$ac_save_LIBS"
3713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3714 echo "$ac_t""yes" 1>&6
3715 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3716 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3717 cat >> confdefs.h
<<EOF
3718 #define $ac_tr_lib 1
3724 echo "$ac_t""no" 1>&6
3729 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
3730 echo "configure:3729: checking for long long support in compiler" >&5
3731 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3734 cat > conftest.
$ac_ext <<EOF
3735 #line 3734 "configure"
3736 #include "confdefs.h"
3740 extern long long foo;
3741 switch (foo & 2) { case 0: return 1; }
3745 if { (eval echo configure
:3744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3747 gdb_cv_c_long_long
=yes
3749 echo "configure: failed program was:" >&5
3750 cat conftest.
$ac_ext >&5
3752 gdb_cv_c_long_long
=no
3757 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
3758 if test $gdb_cv_c_long_long = yes; then
3759 cat >> confdefs.h
<<\EOF
3760 #define CC_HAS_LONG_LONG 1
3766 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
3767 echo "configure:3766: checking for long long support in printf" >&5
3768 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3771 if test "$cross_compiling" = yes; then
3772 gdb_cv_printf_has_long_long
=no
3774 cat > conftest.
$ac_ext <<EOF
3775 #line 3774 "configure"
3776 #include "confdefs.h"
3781 l = (l << 16) + 0x0123;
3782 l = (l << 16) + 0x4567;
3783 l = (l << 16) + 0x89ab;
3784 l = (l << 16) + 0xcdef;
3785 sprintf (buf, "0x%016llx", l);
3786 return (strcmp ("0x0123456789abcdef", buf));
3789 if { (eval echo configure
:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3791 gdb_cv_printf_has_long_long
=yes
3793 echo "configure: failed program was:" >&5
3794 cat conftest.
$ac_ext >&5
3796 gdb_cv_printf_has_long_long
=no
3803 if test $gdb_cv_printf_has_long_long = yes; then
3804 cat >> confdefs.h
<<\EOF
3805 #define PRINTF_HAS_LONG_LONG 1
3809 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
3812 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
3813 echo "configure:3812: checking for long double support in compiler" >&5
3814 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 cat > conftest.
$ac_ext <<EOF
3818 #line 3817 "configure"
3819 #include "confdefs.h"
3825 if { (eval echo configure
:3824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3827 ac_cv_c_long_double
=yes
3829 echo "configure: failed program was:" >&5
3830 cat conftest.
$ac_ext >&5
3832 ac_cv_c_long_double
=no
3837 echo "$ac_t""$ac_cv_c_long_double" 1>&6
3838 if test $ac_cv_c_long_double = yes; then
3839 cat >> confdefs.h
<<\EOF
3840 #define HAVE_LONG_DOUBLE 1
3846 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
3847 echo "configure:3846: checking for long double support in printf" >&5
3848 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3851 if test "$cross_compiling" = yes; then
3852 gdb_cv_printf_has_long_double
=no
3854 cat > conftest.
$ac_ext <<EOF
3855 #line 3854 "configure"
3856 #include "confdefs.h"
3860 long double f = 3.141592653;
3861 sprintf (buf, "%Lg", f);
3862 return (strncmp ("3.14159", buf, 7));
3865 if { (eval echo configure
:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3867 gdb_cv_printf_has_long_double
=yes
3869 echo "configure: failed program was:" >&5
3870 cat conftest.
$ac_ext >&5
3872 gdb_cv_printf_has_long_double
=no
3879 if test $gdb_cv_printf_has_long_double = yes; then
3880 cat >> confdefs.h
<<\EOF
3881 #define PRINTF_HAS_LONG_DOUBLE 1
3885 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
3888 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
3889 echo "configure:3888: checking for long double support in scanf" >&5
3890 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
3891 echo $ac_n "(cached) $ac_c" 1>&6
3893 if test "$cross_compiling" = yes; then
3894 gdb_cv_scanf_has_long_double
=no
3896 cat > conftest.
$ac_ext <<EOF
3897 #line 3896 "configure"
3898 #include "confdefs.h"
3901 char *buf = "3.141592653";
3903 sscanf (buf, "%Lg", &f);
3904 return !(f > 3.14159 && f < 3.14160);
3907 if { (eval echo configure
:3906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3909 gdb_cv_scanf_has_long_double
=yes
3911 echo "configure: failed program was:" >&5
3912 cat conftest.
$ac_ext >&5
3914 gdb_cv_scanf_has_long_double
=no
3921 if test $gdb_cv_scanf_has_long_double = yes; then
3922 cat >> confdefs.h
<<\EOF
3923 #define SCANF_HAS_LONG_DOUBLE 1
3927 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
3929 for ac_hdr
in unistd.h
3931 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3932 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3933 echo "configure:3932: checking for $ac_hdr" >&5
3934 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3935 echo $ac_n "(cached) $ac_c" 1>&6
3937 cat > conftest.
$ac_ext <<EOF
3938 #line 3937 "configure"
3939 #include "confdefs.h"
3942 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3943 { (eval echo configure
:3942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3944 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3945 if test -z "$ac_err"; then
3947 eval "ac_cv_header_$ac_safe=yes"
3950 echo "configure: failed program was:" >&5
3951 cat conftest.
$ac_ext >&5
3953 eval "ac_cv_header_$ac_safe=no"
3957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3958 echo "$ac_t""yes" 1>&6
3959 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3960 cat >> confdefs.h
<<EOF
3961 #define $ac_tr_hdr 1
3965 echo "$ac_t""no" 1>&6
3969 for ac_func
in getpagesize
3971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3972 echo "configure:3971: checking for $ac_func" >&5
3973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3976 cat > conftest.
$ac_ext <<EOF
3977 #line 3976 "configure"
3978 #include "confdefs.h"
3979 /* System header to define __stub macros and hopefully few prototypes,
3980 which can conflict with char $ac_func(); below. */
3982 /* Override any gcc2 internal prototype to avoid an error. */
3983 /* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3989 /* The GNU C library defines this for functions which it implements
3990 to always fail with ENOSYS. Some functions are actually named
3991 something starting with __ and the normal name is an alias. */
3992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4000 if { (eval echo configure
:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4002 eval "ac_cv_func_$ac_func=yes"
4004 echo "configure: failed program was:" >&5
4005 cat conftest.
$ac_ext >&5
4007 eval "ac_cv_func_$ac_func=no"
4012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4013 echo "$ac_t""yes" 1>&6
4014 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4015 cat >> confdefs.h
<<EOF
4016 #define $ac_tr_func 1
4020 echo "$ac_t""no" 1>&6
4024 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4025 echo "configure:4024: checking for working mmap" >&5
4026 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4029 if test "$cross_compiling" = yes; then
4030 ac_cv_func_mmap_fixed_mapped
=no
4032 cat > conftest.
$ac_ext <<EOF
4033 #line 4032 "configure"
4034 #include "confdefs.h"
4036 /* Thanks to Mike Haertel and Jim Avera for this test.
4037 Here is a matrix of mmap possibilities:
4038 mmap private not fixed
4039 mmap private fixed at somewhere currently unmapped
4040 mmap private fixed at somewhere already mapped
4041 mmap shared not fixed
4042 mmap shared fixed at somewhere currently unmapped
4043 mmap shared fixed at somewhere already mapped
4044 For private mappings, we should verify that changes cannot be read()
4045 back from the file, nor mmap's back from the file at a different
4046 address. (There have been systems where private was not correctly
4047 implemented like the infamous i386 svr4.0, and systems where the
4048 VM page cache was not coherent with the filesystem buffer cache
4049 like early versions of FreeBSD and possibly contemporary NetBSD.)
4050 For shared mappings, we should conversely verify that changes get
4051 propogated back to all the places they're supposed to be.
4053 Grep wants private fixed already mapped.
4054 The main things grep needs to know about mmap are:
4055 * does it exist and is it safe to write into the mmap'd area
4056 * how to use it (BSD variants) */
4057 #include <sys/types.h>
4059 #include <sys/mman.h>
4061 /* This mess was copied from the GNU getpagesize.h. */
4062 #ifndef HAVE_GETPAGESIZE
4063 # ifdef HAVE_UNISTD_H
4064 # include <unistd.h>
4067 /* Assume that all systems that can run configure have sys/param.h. */
4068 # ifndef HAVE_SYS_PARAM_H
4069 # define HAVE_SYS_PARAM_H 1
4072 # ifdef _SC_PAGESIZE
4073 # define getpagesize() sysconf(_SC_PAGESIZE)
4074 # else /* no _SC_PAGESIZE */
4075 # ifdef HAVE_SYS_PARAM_H
4076 # include <sys/param.h>
4077 # ifdef EXEC_PAGESIZE
4078 # define getpagesize() EXEC_PAGESIZE
4079 # else /* no EXEC_PAGESIZE */
4081 # define getpagesize() NBPG * CLSIZE
4084 # endif /* no CLSIZE */
4085 # else /* no NBPG */
4087 # define getpagesize() NBPC
4088 # else /* no NBPC */
4090 # define getpagesize() PAGESIZE
4091 # endif /* PAGESIZE */
4092 # endif /* no NBPC */
4093 # endif /* no NBPG */
4094 # endif /* no EXEC_PAGESIZE */
4095 # else /* no HAVE_SYS_PARAM_H */
4096 # define getpagesize() 8192 /* punt totally */
4097 # endif /* no HAVE_SYS_PARAM_H */
4098 # endif /* no _SC_PAGESIZE */
4100 #endif /* no HAVE_GETPAGESIZE */
4103 extern "C" { void *malloc(unsigned); }
4111 char *data, *data2, *data3;
4115 pagesize = getpagesize();
4118 * First, make a file with some known garbage in it.
4120 data = malloc(pagesize);
4123 for (i = 0; i < pagesize; ++i)
4124 *(data + i) = rand();
4126 fd = creat("conftestmmap", 0600);
4129 if (write(fd, data, pagesize) != pagesize)
4134 * Next, try to mmap the file at a fixed address which
4135 * already has something else allocated at it. If we can,
4136 * also make sure that we see the same garbage.
4138 fd = open("conftestmmap", O_RDWR);
4141 data2 = malloc(2 * pagesize);
4144 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4145 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4146 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4148 for (i = 0; i < pagesize; ++i)
4149 if (*(data + i) != *(data2 + i))
4153 * Finally, make sure that changes to the mapped area
4154 * do not percolate back to the file as seen by read().
4155 * (This is a bug on some variants of i386 svr4.0.)
4157 for (i = 0; i < pagesize; ++i)
4158 *(data2 + i) = *(data2 + i) + 1;
4159 data3 = malloc(pagesize);
4162 if (read(fd, data3, pagesize) != pagesize)
4164 for (i = 0; i < pagesize; ++i)
4165 if (*(data + i) != *(data3 + i))
4168 unlink("conftestmmap");
4173 if { (eval echo configure
:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4175 ac_cv_func_mmap_fixed_mapped
=yes
4177 echo "configure: failed program was:" >&5
4178 cat conftest.
$ac_ext >&5
4180 ac_cv_func_mmap_fixed_mapped
=no
4187 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4188 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4189 cat >> confdefs.h
<<\EOF
4196 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4197 echo "configure:4196: checking whether malloc must be declared" >&5
4198 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4199 echo $ac_n "(cached) $ac_c" 1>&6
4201 cat > conftest.
$ac_ext <<EOF
4202 #line 4201 "configure"
4203 #include "confdefs.h"
4206 #ifdef HAVE_STRING_H
4209 #ifdef HAVE_STRINGS_H
4210 #include <strings.h>
4213 #ifdef HAVE_STDLIB_H
4216 #ifdef HAVE_UNISTD_H
4220 char *(*pfn) = (char *(*)) malloc
4223 if { (eval echo configure
:4222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4225 bfd_cv_decl_needed_malloc
=no
4227 echo "configure: failed program was:" >&5
4228 cat conftest.
$ac_ext >&5
4230 bfd_cv_decl_needed_malloc
=yes
4235 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4236 if test $bfd_cv_decl_needed_malloc = yes; then
4237 bfd_tr_decl
=NEED_DECLARATION_
`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4238 cat >> confdefs.h
<<EOF
4239 #define $bfd_tr_decl 1
4244 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4245 echo "configure:4244: checking whether realloc must be declared" >&5
4246 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4247 echo $ac_n "(cached) $ac_c" 1>&6
4249 cat > conftest.
$ac_ext <<EOF
4250 #line 4249 "configure"
4251 #include "confdefs.h"
4254 #ifdef HAVE_STRING_H
4257 #ifdef HAVE_STRINGS_H
4258 #include <strings.h>
4261 #ifdef HAVE_STDLIB_H
4264 #ifdef HAVE_UNISTD_H
4268 char *(*pfn) = (char *(*)) realloc
4271 if { (eval echo configure
:4270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4273 bfd_cv_decl_needed_realloc
=no
4275 echo "configure: failed program was:" >&5
4276 cat conftest.
$ac_ext >&5
4278 bfd_cv_decl_needed_realloc
=yes
4283 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4284 if test $bfd_cv_decl_needed_realloc = yes; then
4285 bfd_tr_decl
=NEED_DECLARATION_
`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4286 cat >> confdefs.h
<<EOF
4287 #define $bfd_tr_decl 1
4292 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4293 echo "configure:4292: checking whether free must be declared" >&5
4294 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4295 echo $ac_n "(cached) $ac_c" 1>&6
4297 cat > conftest.
$ac_ext <<EOF
4298 #line 4297 "configure"
4299 #include "confdefs.h"
4302 #ifdef HAVE_STRING_H
4305 #ifdef HAVE_STRINGS_H
4306 #include <strings.h>
4309 #ifdef HAVE_STDLIB_H
4312 #ifdef HAVE_UNISTD_H
4316 char *(*pfn) = (char *(*)) free
4319 if { (eval echo configure
:4318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4321 bfd_cv_decl_needed_free
=no
4323 echo "configure: failed program was:" >&5
4324 cat conftest.
$ac_ext >&5
4326 bfd_cv_decl_needed_free
=yes
4331 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4332 if test $bfd_cv_decl_needed_free = yes; then
4333 bfd_tr_decl
=NEED_DECLARATION_
`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4334 cat >> confdefs.h
<<EOF
4335 #define $bfd_tr_decl 1
4341 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4342 echo "configure:4341: checking whether strerror must be declared" >&5
4343 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 cat > conftest.
$ac_ext <<EOF
4347 #line 4346 "configure"
4348 #include "confdefs.h"
4351 #ifdef HAVE_STRING_H
4354 #ifdef HAVE_STRINGS_H
4355 #include <strings.h>
4358 #ifdef HAVE_STDLIB_H
4361 #ifdef HAVE_UNISTD_H
4365 char *(*pfn) = (char *(*)) strerror
4368 if { (eval echo configure
:4367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4370 bfd_cv_decl_needed_strerror
=no
4372 echo "configure: failed program was:" >&5
4373 cat conftest.
$ac_ext >&5
4375 bfd_cv_decl_needed_strerror
=yes
4380 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4381 if test $bfd_cv_decl_needed_strerror = yes; then
4382 bfd_tr_decl
=NEED_DECLARATION_
`echo strerror | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4383 cat >> confdefs.h
<<EOF
4384 #define $bfd_tr_decl 1
4392 if test ${build} = ${host} -a ${host} = ${target} ; then
4395 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
4396 echo "configure:4395: checking for HPUX/OSF thread support" >&5
4397 if test -f /usr
/include
/dce
/cma_config.h
; then
4398 if test "$GCC" = "yes" ; then
4399 echo "$ac_t""yes" 1>&6
4400 cat >> confdefs.h
<<\EOF
4401 #define HAVE_HPUX_THREAD_SUPPORT 1
4404 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
4405 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
4407 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
4410 echo "$ac_t""no" 1>&6
4414 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
4415 echo "configure:4414: checking for Solaris thread debugging library" >&5
4416 if test -f /usr
/lib
/libthread_db.so
.1 ; then
4417 echo "$ac_t""yes" 1>&6
4418 cat >> confdefs.h
<<\EOF
4419 #define HAVE_THREAD_DB_LIB 1
4422 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
4423 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
4424 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4425 echo "configure:4424: checking for dlopen in -ldl" >&5
4426 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4430 ac_save_LIBS
="$LIBS"
4432 cat > conftest.
$ac_ext <<EOF
4433 #line 4432 "configure"
4434 #include "confdefs.h"
4435 /* Override any gcc2 internal prototype to avoid an error. */
4436 /* We use char because int might match the return type of a gcc2
4437 builtin and then its argument prototype would still apply. */
4444 if { (eval echo configure
:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4446 eval "ac_cv_lib_$ac_lib_var=yes"
4448 echo "configure: failed program was:" >&5
4449 cat conftest.
$ac_ext >&5
4451 eval "ac_cv_lib_$ac_lib_var=no"
4454 LIBS
="$ac_save_LIBS"
4457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4458 echo "$ac_t""yes" 1>&6
4459 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4460 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4461 cat >> confdefs.h
<<EOF
4462 #define $ac_tr_lib 1
4468 echo "$ac_t""no" 1>&6
4471 if test "$GCC" = "yes" ; then
4472 # The GNU linker requires the -export-dynamic option to make
4473 # all symbols visible in the dynamic symbol table.
4474 hold_ldflags
=$LDFLAGS
4475 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
4476 echo "configure:4475: checking for the ld -export-dynamic flag" >&5
4477 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
4478 cat > conftest.
$ac_ext <<EOF
4479 #line 4478 "configure"
4480 #include "confdefs.h"
4486 if { (eval echo configure
:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4490 echo "configure: failed program was:" >&5
4491 cat conftest.
$ac_ext >&5
4496 LDFLAGS
=$hold_ldflags
4497 echo "$ac_t""$found" 1>&6
4498 if test $found = yes; then
4499 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
4503 echo "$ac_t""no" 1>&6
4512 # Check whether --enable-netrom or --disable-netrom was given.
4513 if test "${enable_netrom+set}" = set; then
4514 enableval
="$enable_netrom"
4515 case "${enableval}" in
4516 yes) enable_netrom
=yes ;;
4517 no
) enable_netrom
=no
;;
4518 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
4523 if test "${enable_netrom}" = "yes"; then
4524 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
4525 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
4528 # Check whether --enable-warnings or --disable-warnings was given.
4529 if test "${enable_warnings+set}" = set; then
4530 enableval
="$enable_warnings"
4531 case "${enableval}" in
4532 yes) enable_build_warnings
=yes ;;
4533 no
) enable_build_warnings
=no
;;
4534 *) { echo "configure: error: bad value ${enableval} given for warnings options" 1>&2; exit 1; } ;;
4539 if test "x$enable_build_warnings" = xyes
-a "x$GCC" = xyes
4541 WARN_CFLAGS
="-Wall -Wstrict-prototypes -Wmissing-prototypes"
4552 # Check whether --with-mmalloc or --without-mmalloc was given.
4553 if test "${with_mmalloc+set}" = set; then
4554 withval
="$with_mmalloc"
4555 case "${withval}" in
4556 yes) want_mmalloc
=true
;;
4557 no
) want_mmalloc
=false
;;
4558 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
4564 if test x
$want_mmalloc = xtrue
; then
4565 cat >> confdefs.h
<<\EOF
4566 #define USE_MMALLOC 1
4569 cat >> confdefs.h
<<\EOF
4570 #define MMCHECK_FORCE 1
4573 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
4574 MMALLOC
='../mmalloc/libmmalloc.a'
4577 # start-sanitize-gdbtk
4578 # start-sanitize-ide
4580 # Check whether --enable-ide or --disable-ide was given.
4581 if test "${enable_ide+set}" = set; then
4582 enableval
="$enable_ide"
4586 if test "$enable_ide" = yes; then
4594 # Check whether --with-foundry-libs or --without-foundry-libs was given.
4595 if test "${with_foundry_libs+set}" = set; then
4596 withval
="$with_foundry_libs"
4597 FOUNDRY_LIB_BASE
=${withval}
4603 # This is the Foundry SDK
4605 # These variables are used to determine where the Foundry libs and
4606 # header files are located.
4608 if test "$FOUNDRY_LIB_BASE" != ""; then
4609 LIBGUI
="${FOUNDRY_LIB_BASE}/lib/libgui.a"
4610 GUI_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include"
4611 if test x
$enable_ide = xyes
; then
4612 IDE_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include -DIDE"
4613 IDE_X
="-L${FOUNDRY_LIB_BASE}/lib -lilu-Tk -lilu-c -lilu"
4615 IDE_CFLAGS_X
="-I${FOUNDRY_LIB_BASE}/include"
4617 LIBIDETCL
="${FOUNDRY_LIB_BASE}/lib/libidetcl.a"
4618 LIBIDE
="${FOUNDRY_LIB_BASE}/lib/libide.a"
4619 IDE_DEPS
="${FOUNDRY_LIB_BASE}/lib/libilu-Tk.a ${FOUNDRY_LIB_BASE}/lib/libilu-c.a ${FOUNDRY_LIB_BASE}/lib/libilu.a"
4621 LIBGUI
="../libgui/src/libgui.a"
4622 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
4623 if test x
$enable_ide = xyes
; then
4624 IDE_CFLAGS_X
="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src -DIDE -I${srcdir}/../ilu/runtime/mainloop"
4625 IDE_X
="-L../ilu/runtime/mainloop -lilu-Tk -L../ilu/runtime/c -lilu-c -L../ilu/runtime/kernel -lilu"
4627 IDE_CFLAGS_X
="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src"
4629 LIBIDETCL
="../libidetcl/src/libidetcl.a"
4630 LIBIDE
="../libide/src/libide.a"
4631 IDE_DEPS
="../ilu/runtime/mainloop/libilu-Tk.a ../ilu/runtime/c/libilu-c.a ../ilu/runtime/kernel/libilu.a"
4644 # Check whether --enable-gdbtk or --disable-gdbtk was given.
4645 if test "${enable_gdbtk+set}" = set; then
4646 enableval
="$enable_gdbtk"
4647 case "${enableval}" in
4651 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
4654 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
4662 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
4666 # Default is on for everything but go32 and cygwin32
4677 # In the cygwin32 environment, we need some additional flags.
4678 echo $ac_n "checking for cygwin32""... $ac_c" 1>&6
4679 echo "configure:4678: checking for cygwin32" >&5
4680 if eval "test \"`echo '$''{'gdb_cv_os_cygwin32'+set}'`\" = set"; then
4681 echo $ac_n "(cached) $ac_c" 1>&6
4683 cat > conftest.
$ac_ext <<EOF
4684 #line 4683 "configure"
4685 #include "confdefs.h"
4691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4692 egrep "lose" >/dev
/null
2>&1; then
4694 gdb_cv_os_cygwin32
=yes
4697 gdb_cv_os_cygwin32
=no
4703 echo "$ac_t""$gdb_cv_os_cygwin32" 1>&6
4710 WINDRES
=${WINDRES-windres}
4713 if test x
$gdb_cv_os_cygwin32 = xyes
; then
4714 if test x
$enable_ide = xyes
; then
4715 WIN32LIBS
="-ladvapi32"
4722 if test "${enable_gdbtk}" = "yes"; then
4726 # Ok, lets find the tcl configuration
4727 # First, look for one uninstalled.
4728 # the alternative search directory is invoked by --with-tclconfig
4731 if test x
"${no_tcl}" = x
; then
4732 # we reset no_tcl in case something fails here
4734 # Check whether --with-tclconfig or --without-tclconfig was given.
4735 if test "${with_tclconfig+set}" = set; then
4736 withval
="$with_tclconfig"
4737 with_tclconfig
=${withval}
4740 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
4741 echo "configure:4740: checking for Tcl configuration" >&5
4742 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4747 # First check to see if --with-tclconfig was specified.
4748 if test x
"${with_tclconfig}" != x
; then
4749 if test -f "${with_tclconfig}/tclConfig.sh" ; then
4750 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
4752 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
4756 # then check for a private Tcl installation
4757 if test x
"${ac_cv_c_tclconfig}" = x
; then
4760 `ls -dr ../tcl[7-9]* 2>/dev/null` \
4762 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
4764 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
4765 if test -f "$i/${configdir}/tclConfig.sh" ; then
4766 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
4771 # check in a few common install locations
4772 if test x
"${ac_cv_c_tclconfig}" = x
; then
4773 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
4774 if test -f "$i/tclConfig.sh" ; then
4775 ac_cv_c_tclconfig
=`(cd $i; pwd)`
4780 # check in a few other private locations
4781 if test x
"${ac_cv_c_tclconfig}" = x
; then
4784 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
4785 if test -f "$i/${configdir}/tclConfig.sh" ; then
4786 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
4794 if test x
"${ac_cv_c_tclconfig}" = x
; then
4795 TCLCONFIG
="# no Tcl configs found"
4796 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
4799 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
4800 echo "$ac_t""found $TCLCONFIG" 1>&6
4804 if test -z "${no_tcl}"; then
4834 # Ok, lets find the tk configuration
4835 # First, look for one uninstalled.
4836 # the alternative search directory is invoked by --with-tkconfig
4839 if test x
"${no_tk}" = x
; then
4840 # we reset no_tk in case something fails here
4842 # Check whether --with-tkconfig or --without-tkconfig was given.
4843 if test "${with_tkconfig+set}" = set; then
4844 withval
="$with_tkconfig"
4845 with_tkconfig
=${withval}
4848 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
4849 echo "configure:4848: checking for Tk configuration" >&5
4850 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4855 # First check to see if --with-tkconfig was specified.
4856 if test x
"${with_tkconfig}" != x
; then
4857 if test -f "${with_tkconfig}/tkConfig.sh" ; then
4858 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
4860 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
4864 # then check for a private Tk library
4865 if test x
"${ac_cv_c_tkconfig}" = x
; then
4868 `ls -dr ../tk[4-9]* 2>/dev/null` \
4870 `ls -dr ../../tk[4-9]* 2>/dev/null` \
4872 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
4873 if test -f "$i/${configdir}/tkConfig.sh" ; then
4874 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
4879 # check in a few common install locations
4880 if test x
"${ac_cv_c_tkconfig}" = x
; then
4881 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
4882 if test -f "$i/tkConfig.sh" ; then
4883 ac_cv_c_tkconfig
=`(cd $i; pwd)`
4888 # check in a few other private locations
4889 if test x
"${ac_cv_c_tkconfig}" = x
; then
4892 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
4893 if test -f "$i/${configdir}/tkConfig.sh" ; then
4894 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
4902 if test x
"${ac_cv_c_tkconfig}" = x
; then
4903 TKCONFIG
="# no Tk configs found"
4904 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
4907 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
4908 echo "$ac_t""found $TKCONFIG" 1>&6
4914 # If $no_tk is nonempty, then we can't do Tk, and there is no
4915 # point to doing Tcl.
4916 if test -z "${no_tk}"; then
4918 if test -f "$TKCONFIG" ; then
4936 # Ok, lets find the tcl source trees so we can use the headers
4937 # Warning: transition of version 9 to 10 will break this algorithm
4938 # because 10 sorts before 9. We also look for just tcl. We have to
4939 # be careful that we don't match stuff like tclX by accident.
4940 # the alternative search directory is involked by --with-tclinclude
4944 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
4945 echo "configure:4944: checking for Tcl private headers. dir=${configdir}" >&5
4946 # Check whether --with-tclinclude or --without-tclinclude was given.
4947 if test "${with_tclinclude+set}" = set; then
4948 withval
="$with_tclinclude"
4949 with_tclinclude
=${withval}
4952 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4956 # first check to see if --with-tclinclude was specified
4957 if test x
"${with_tclinclude}" != x
; then
4958 if test -f ${with_tclinclude}/tclInt.h
; then
4959 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
4960 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
4961 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
4963 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
4967 # next check if it came with Tcl configuration file
4968 if test x
"${ac_cv_c_tclconfig}" = x
; then
4969 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
4970 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
4974 # next check in private source directory
4976 # since ls returns lowest version numbers first, reverse its output
4977 if test x
"${ac_cv_c_tclh}" = x
; then
4980 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
4981 ${srcdir}/..
/..
/tcl \
4982 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
4983 ${srcdir}/..
/..
/..
/tcl \
4984 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
4985 if test -f $i/generic
/tclInt.h
; then
4986 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
4991 # finally check in a few common install locations
4993 # since ls returns lowest version numbers first, reverse its output
4994 if test x
"${ac_cv_c_tclh}" = x
; then
4996 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
4997 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
4998 /usr
/local
/src
/tcl \
4999 /usr
/local
/lib
/tcl \
5000 ${prefix}/include
; do
5001 if test -f $i/generic
/tclInt.h
; then
5002 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
5007 # see if one is installed
5008 if test x
"${ac_cv_c_tclh}" = x
; then
5009 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
5010 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
5011 echo "configure:5010: checking for tclInt.h" >&5
5012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5015 cat > conftest.
$ac_ext <<EOF
5016 #line 5015 "configure"
5017 #include "confdefs.h"
5020 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5021 { (eval echo configure
:5020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5022 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5023 if test -z "$ac_err"; then
5025 eval "ac_cv_header_$ac_safe=yes"
5028 echo "configure: failed program was:" >&5
5029 cat conftest.
$ac_ext >&5
5031 eval "ac_cv_header_$ac_safe=no"
5035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5036 echo "$ac_t""yes" 1>&6
5037 ac_cv_c_tclh
=installed
5039 echo "$ac_t""no" 1>&6
5047 if test x
"${ac_cv_c_tclh}" = x
; then
5048 TCLHDIR
="# no Tcl private headers found"
5049 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
5051 if test x
"${ac_cv_c_tclh}" != x
; then
5053 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
5054 echo "$ac_t""is installed" 1>&6
5057 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
5058 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
5059 TCLHDIR
="-I${ac_cv_c_tclh}"
5067 # Ok, lets find the tk source trees so we can use the headers
5068 # If the directory (presumably symlink) named "tk" exists, use that one
5069 # in preference to any others. Same logic is used when choosing library
5070 # and again with Tcl. The search order is the best place to look first, then in
5071 # decreasing significance. The loop breaks if the trigger file is found.
5072 # Note the gross little conversion here of srcdir by cd'ing to the found
5073 # directory. This converts the path from a relative to an absolute, so
5074 # recursive cache variables for the path will work right. We check all
5075 # the possible paths in one loop rather than many seperate loops to speed
5077 # the alternative search directory is involked by --with-tkinclude
5080 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
5081 echo "configure:5080: checking for Tk private headers" >&5
5082 # Check whether --with-tkinclude or --without-tkinclude was given.
5083 if test "${with_tkinclude+set}" = set; then
5084 withval
="$with_tkinclude"
5085 with_tkinclude
=${withval}
5088 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5092 # first check to see if --with-tkinclude was specified
5093 if test x
"${with_tkinclude}" != x
; then
5094 if test -f ${with_tkinclude}/tk.h
; then
5095 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
5096 elif test -f ${with_tkinclude}/generic
/tk.h
; then
5097 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
5099 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
5103 # next check if it came with Tk configuration file
5104 if test x
"${ac_cv_c_tkconfig}" = x
; then
5105 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
5106 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
5110 # next check in private source directory
5112 # since ls returns lowest version numbers first, reverse its output
5113 if test x
"${ac_cv_c_tkh}" = x
; then
5116 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
5117 ${srcdir}/..
/..
/tk \
5118 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
5119 ${srcdir}/..
/..
/..
/tk \
5120 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
5121 if test -f $i/generic
/tk.h
; then
5122 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
5127 # finally check in a few common install locations
5129 # since ls returns lowest version numbers first, reverse its output
5130 if test x
"${ac_cv_c_tkh}" = x
; then
5132 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
5133 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
5136 ${prefix}/include
; do
5137 if test -f $i/generic
/tk.h
; then
5138 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
5143 # see if one is installed
5144 if test x
"${ac_cv_c_tkh}" = x
; then
5145 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
5146 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
5147 echo "configure:5146: checking for tk.h" >&5
5148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5151 cat > conftest.
$ac_ext <<EOF
5152 #line 5151 "configure"
5153 #include "confdefs.h"
5156 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5157 { (eval echo configure
:5156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5158 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5159 if test -z "$ac_err"; then
5161 eval "ac_cv_header_$ac_safe=yes"
5164 echo "configure: failed program was:" >&5
5165 cat conftest.
$ac_ext >&5
5167 eval "ac_cv_header_$ac_safe=no"
5171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5172 echo "$ac_t""yes" 1>&6
5173 ac_cv_c_tkh
=installed
5175 echo "$ac_t""no" 1>&6
5183 if test x
"${ac_cv_c_tkh}" != x
; then
5185 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
5186 echo "$ac_t""is installed" 1>&6
5189 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
5190 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
5191 TKHDIR
="-I${ac_cv_c_tkh}"
5194 TKHDIR
="# no Tk directory found"
5195 echo "configure: warning: Can't find Tk private headers" 1>&2
5202 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5203 echo "configure:5202: checking for Itcl private headers. srcdir=${srcdir}" >&5
5204 if test x
"${ac_cv_c_itclh}" = x
; then
5205 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/..
/..
/..
/itcl
; do
5206 if test -f $i/src
/itcl.h
; then
5207 ac_cv_c_itclh
=`(cd $i/src; pwd)`
5212 if test x
"${ac_cv_c_itclh}" = x
; then
5213 ITCLHDIR
="# no Itcl private headers found"
5214 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
5216 if test x
"${ac_cv_c_itclh}" != x
; then
5217 ITCLHDIR
="-I${ac_cv_c_itclh}"
5219 # should always be here
5220 ITCLLIB
="../itcl/src/libitcl.a"
5225 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5226 echo "configure:5225: checking for Tix private headers. srcdir=${srcdir}" >&5
5227 if test x
"${ac_cv_c_tixh}" = x
; then
5228 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
5229 if test -f $i/generic
/tix.h
; then
5230 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
5235 if test x
"${ac_cv_c_tixh}" = x
; then
5236 TIXHDIR
="# no Tix private headers found"
5237 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
5239 if test x
"${ac_cv_c_tixh}" != x
; then
5240 TIXHDIR
="-I${ac_cv_c_tixh}"
5245 # now look for tix library stuff
5247 .
${ac_cv_c_tclconfig}/tclConfig.sh
5250 tixdir
=..
/tix
/win
/tcl8.0
5253 tixdir
=..
/tix
/unix
/tk8.0
5256 if test "${TCL_SHARED_BUILD}" = "1"; then
5257 TIX_LIB_EXT
="${TCL_SHLIB_SUFFIX}"
5259 # Can't win them all: SunOS 4 (others?) appends a version
5260 # number after the ".so"
5263 TIX_LIB_EXT
="${TIX_LIB_EXT}.1.0" ;;
5270 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
5271 TIXLIB
="-L${tixdir} -ltix${TIXVERSION}"
5272 TIX_DEPS
="${tixdir}/libtix${TIXVERSION}${TIX_LIB_EXT}"
5274 TIXLIB
="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
5275 TIX_DEPS
="${tixdir}/libtix`echo ${TIXVERSION} | tr -d .`${TIX_LIB_EXT}"
5279 ENABLE_CFLAGS
="${ENABLE_CFLAGS} -DGDBTK"
5281 # Include some libraries that Tcl and Tk want.
5282 if test "${enable_ide}" = "yes"; then
5283 TCL_LIBS
='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
5284 CONFIG_DEPS
='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
5286 TCL_LIBS
='$(LIBGUI) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
5287 CONFIG_DEPS
='$(LIBGUI) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
5289 # Yes, the ordering seems wrong here. But it isn't.
5290 # TK_LIBS is the list of libraries that need to be linked
5291 # after Tcl/Tk. Note that this isn't put into LIBS. If it
5292 # were in LIBS then any link tests after this point would
5293 # try to include things like `$(LIBGUI)', which wouldn't work.
5294 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
5295 CONFIG_OBS
="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o"
5297 if test x
$gdb_cv_os_cygwin32 = xyes
; then
5298 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32"
5299 WIN32LDAPP
="-Wl,--subsystem,console"
5300 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
5313 # end-sanitize-gdbtk
5315 # If we find X, set shell vars x_includes and x_libraries to the
5316 # paths, otherwise set no_x=yes.
5317 # Uses ac_ vars as temps to allow command line to override cache and checks.
5318 # --without-x overrides everything else, but does not touch the cache.
5319 echo $ac_n "checking for X""... $ac_c" 1>&6
5320 echo "configure:5319: checking for X" >&5
5322 # Check whether --with-x or --without-x was given.
5323 if test "${with_x+set}" = set; then
5328 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5329 if test "x$with_x" = xno
; then
5330 # The user explicitly disabled X.
5333 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5334 # Both variables are already set.
5337 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5338 echo $ac_n "(cached) $ac_c" 1>&6
5340 # One or both of the vars are not set, and there is no cached value.
5341 ac_x_includes
=NO ac_x_libraries
=NO
5343 if mkdir conftestdir
; then
5345 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5346 cat > Imakefile
<<'EOF'
5348 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5350 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5352 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5353 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5354 for ac_extension
in a so sl
; do
5355 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5356 test -f $ac_im_libdir/libX11.
$ac_extension; then
5357 ac_im_usrlibdir
=$ac_im_libdir; break
5360 # Screen out bogus values from the imake configuration. They are
5361 # bogus both because they are the default anyway, and because
5362 # using them would break gcc on systems where it needs fixed includes.
5363 case "$ac_im_incroot" in
5365 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
5367 case "$ac_im_usrlibdir" in
5369 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
5376 if test "$ac_x_includes" = NO
; then
5377 # Guess where to find include files, by looking for this one X11 .h file.
5378 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
5380 # First, try using that file with no special directory specified.
5381 cat > conftest.
$ac_ext <<EOF
5382 #line 5381 "configure"
5383 #include "confdefs.h"
5384 #include <$x_direct_test_include>
5386 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5387 { (eval echo configure
:5386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5388 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5389 if test -z "$ac_err"; then
5391 # We can compile using X headers with no special include directory.
5395 echo "configure: failed program was:" >&5
5396 cat conftest.
$ac_ext >&5
5398 # Look for the header file in a standard set of common directories.
5399 # Check X11 before X11Rn because it is often a symlink to the current release.
5402 /usr
/X11R
6/include \
5403 /usr
/X11R
5/include \
5404 /usr
/X11R
4/include \
5407 /usr
/include
/X11R6 \
5408 /usr
/include
/X11R5 \
5409 /usr
/include
/X11R4 \
5411 /usr
/local
/X11
/include \
5412 /usr
/local
/X11R
6/include \
5413 /usr
/local
/X11R
5/include \
5414 /usr
/local
/X11R
4/include \
5416 /usr
/local
/include
/X11 \
5417 /usr
/local
/include
/X11R6 \
5418 /usr
/local
/include
/X11R5 \
5419 /usr
/local
/include
/X11R4 \
5423 /usr
/XFree86
/include
/X11 \
5426 /usr
/local
/include \
5427 /usr
/unsupported
/include \
5428 /usr
/athena
/include \
5429 /usr
/local
/x11r
5/include \
5430 /usr
/lpp
/Xamples
/include \
5432 /usr
/openwin
/include \
5433 /usr
/openwin
/share
/include \
5436 if test -r "$ac_dir/$x_direct_test_include"; then
5437 ac_x_includes
=$ac_dir
5443 fi # $ac_x_includes = NO
5445 if test "$ac_x_libraries" = NO
; then
5446 # Check for the libraries.
5448 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
5449 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
5451 # See if we find them without any special options.
5452 # Don't add to $LIBS permanently.
5453 ac_save_LIBS
="$LIBS"
5454 LIBS
="-l$x_direct_test_library $LIBS"
5455 cat > conftest.
$ac_ext <<EOF
5456 #line 5455 "configure"
5457 #include "confdefs.h"
5460 ${x_direct_test_function}()
5463 if { (eval echo configure
:5462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5465 LIBS
="$ac_save_LIBS"
5466 # We can link X programs with no special library path.
5469 echo "configure: failed program was:" >&5
5470 cat conftest.
$ac_ext >&5
5472 LIBS
="$ac_save_LIBS"
5473 # First see if replacing the include by lib works.
5474 # Check X11 before X11Rn because it is often a symlink to the current release.
5475 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
5486 /usr
/local
/X11
/lib \
5487 /usr
/local
/X11R
6/lib \
5488 /usr
/local
/X11R
5/lib \
5489 /usr
/local
/X11R
4/lib \
5491 /usr
/local
/lib
/X11 \
5492 /usr
/local
/lib
/X11R6 \
5493 /usr
/local
/lib
/X11R5 \
5494 /usr
/local
/lib
/X11R4 \
5498 /usr
/XFree86
/lib
/X11 \
5502 /usr
/unsupported
/lib \
5504 /usr
/local
/x11r
5/lib \
5505 /usr
/lpp
/Xamples
/lib \
5509 /usr
/openwin
/share
/lib \
5512 for ac_extension
in a so sl
; do
5513 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
5514 ac_x_libraries
=$ac_dir
5521 fi # $ac_x_libraries = NO
5523 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
5524 # Didn't find X anywhere. Cache the known absence of X.
5525 ac_cv_have_x
="have_x=no"
5527 # Record where we found X for the cache.
5528 ac_cv_have_x
="have_x=yes \
5529 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5533 eval "$ac_cv_have_x"
5536 if test "$have_x" != yes; then
5537 echo "$ac_t""$have_x" 1>&6
5540 # If each of the values was on the command line, it overrides each guess.
5541 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5542 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5543 # Update the cache value to reflect the command line values.
5544 ac_cv_have_x
="have_x=yes \
5545 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5546 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5549 # start-sanitize-sky
5550 # Enable GPU2 library for MIPS simulator
5551 # Check whether --with-sim-gpu2 or --without-sim-gpu2 was given.
5552 if test "${with_sim_gpu2+set}" = set; then
5553 withval
="$with_sim_gpu2"
5556 if test -d "${withval}"
5558 LIBS
="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext"
5560 echo "configure: warning: Directory ${withval} does not exist." 1>&2
5562 *) echo "configure: warning: --with-sim-gpu2 option invalid for target ${target}" 1>&2
5566 # Enable target accurate FP library
5567 # Check whether --with-sim-funit or --without-sim-funit was given.
5568 if test "${with_sim_funit+set}" = set; then
5569 withval
="$with_sim_funit"
5572 if test -d "${withval}"
5574 LIBS
="${LIBS} -L${withval}/lib -lfunit"
5576 echo "configure: warning: Directory ${withval} does not exist." 1>&2
5578 *) echo "configure: warning: --with-sim-funit option invalid for target ${target}" 1>&2
5583 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5584 echo "configure:5583: checking for wctype in -lw" >&5
5585 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6
5589 ac_save_LIBS
="$LIBS"
5591 cat > conftest.
$ac_ext <<EOF
5592 #line 5591 "configure"
5593 #include "confdefs.h"
5594 /* Override any gcc2 internal prototype to avoid an error. */
5595 /* We use char because int might match the return type of a gcc2
5596 builtin and then its argument prototype would still apply. */
5603 if { (eval echo configure
:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5605 eval "ac_cv_lib_$ac_lib_var=yes"
5607 echo "configure: failed program was:" >&5
5608 cat conftest.
$ac_ext >&5
5610 eval "ac_cv_lib_$ac_lib_var=no"
5613 LIBS
="$ac_save_LIBS"
5616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5617 echo "$ac_t""yes" 1>&6
5620 echo "$ac_t""no" 1>&6
5630 # Begin stuff to support --enable-shared
5631 # Check whether --enable-shared or --disable-shared was given.
5632 if test "${enable_shared+set}" = set; then
5633 enableval
="$enable_shared"
5634 case "${enableval}" in
5643 # If we have shared libraries, try to set rpath reasonably.
5644 if test "${shared}" = "true"; then
5647 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
5649 *-*-irix5* |
*-*-irix6*)
5650 HLDFLAGS
='-Wl,-rpath,$(libdir)'
5654 *-*-linux* |
*-pc-linux-gnu)
5655 HLDFLAGS
='-Wl,-rpath,$(libdir)'
5658 HLDFLAGS
='-R $(libdir)'
5661 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;'
5666 # On SunOS, if the linker supports the -rpath option, use it to
5667 # prevent ../bfd and ../opcodes from being included in the run time
5671 echo 'main () { }' > conftest.c
5672 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
5673 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
5675 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
5677 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
5679 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
5681 elif test "${shared}" = "true"; then
5682 HLDFLAGS
='-Wl,-rpath=$(libdir)'
5684 HLDFLAGS
='-Wl,-rpath='
5686 rm -f conftest.t conftest.c conftest
5691 # End stuff to support --enable-shared
5693 # target_subdir is used by the testsuite to find the target libraries.
5695 if test "${host}" != "${target}"; then
5696 target_subdir
="${target_alias}/"
5701 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
5702 if test ! -f ${host_makefile_frag}; then
5703 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
5705 frags
="$frags $host_makefile_frag"
5707 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
5708 if test ! -f ${target_makefile_frag}; then
5709 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
5711 frags
="$frags $target_makefile_frag"
5718 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5719 ' ${host_makefile_frag}`
5721 targetfile
=`sed -n '
5722 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5723 ' ${target_makefile_frag}`
5725 # these really aren't orthogonal true/false values of the same condition,
5726 # but shells are slow enough that I like to reuse the test conditions
5728 if test "${target}" = "${host}"; then
5729 nativefile
=`sed -n '
5730 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5731 ' ${host_makefile_frag}`
5733 # GDBserver is only useful in a "native" enviroment
5734 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
5738 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
5739 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
5740 # corresponding links. But we have to remove the xm.h files and tm.h
5741 # files anyway, e.g. when switching from "configure host" to
5747 if test "${hostfile}" != ""; then
5748 files
="${files} config/${gdb_host_cpu}/${hostfile}"
5749 links
="${links} xm.h"
5752 if test "${targetfile}" != ""; then
5753 files
="${files} config/${gdb_target_cpu}/${targetfile}"
5754 links
="${links} tm.h"
5757 if test "${nativefile}" != ""; then
5758 files
="${files} config/${gdb_host_cpu}/${nativefile}"
5759 links
="${links} nm.h"
5761 # A cross-only configuration.
5762 files
="${files} config/nm-empty.h"
5763 links
="${links} nm.h"
5765 # start-sanitize-gdbtk
5766 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
5767 echo "configure:5766: checking whether ln -s works" >&5
5768 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
5769 echo $ac_n "(cached) $ac_c" 1>&6
5772 if ln -s X conftestdata
2>/dev
/null
5775 ac_cv_prog_LN_S
="ln -s"
5780 LN_S
="$ac_cv_prog_LN_S"
5781 if test "$ac_cv_prog_LN_S" = "ln -s"; then
5782 echo "$ac_t""yes" 1>&6
5784 echo "$ac_t""no" 1>&6
5787 # Make it possible to use the GUI without doing a full install
5788 if test "${enable_gdbtk}" = "yes" -a ! -d gdbtcl
; then
5789 if test "$LN_S" = "ln -s" -a ! -f gdbtcl
; then
5790 echo linking
$srcdir/gdbtcl to gdbtcl
5791 $LN_S $srcdir/gdbtcl gdbtcl
5793 echo Warning
: Unable to link
$srcdir/gdbtcl to gdbtcl. You will need to
do a
5794 echo " " make install before you are able to run the GUI.
5797 # end-sanitize-gdbtk
5801 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
5802 echo "configure:5801: checking for Cygwin32 environment" >&5
5803 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
5804 echo $ac_n "(cached) $ac_c" 1>&6
5806 cat > conftest.
$ac_ext <<EOF
5807 #line 5806 "configure"
5808 #include "confdefs.h"
5811 return __CYGWIN32__;
5814 if { (eval echo configure
:5813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5818 echo "configure: failed program was:" >&5
5819 cat conftest.
$ac_ext >&5
5827 echo "$ac_t""$am_cv_cygwin32" 1>&6
5829 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
5830 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
5831 echo "configure:5830: checking for Mingw32 environment" >&5
5832 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 cat > conftest.
$ac_ext <<EOF
5836 #line 5835 "configure"
5837 #include "confdefs.h"
5843 if { (eval echo configure
:5842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5847 echo "configure: failed program was:" >&5
5848 cat conftest.
$ac_ext >&5
5856 echo "$ac_t""$am_cv_mingw32" 1>&6
5858 test "$am_cv_mingw32" = yes && MINGW32
=yes
5861 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5862 echo "configure:5861: checking for executable suffix" >&5
5863 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
5864 echo $ac_n "(cached) $ac_c" 1>&6
5866 if test "$CYGWIN32" = yes ||
test "$MINGW32" = yes; then
5869 cat > am_c_test.c
<< 'EOF'
5871 /* Nothing needed here
*/
5874 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
5876 for file in am_c_test.
*; do
5880 *) am_cv_exeext
=`echo $file | sed -e s/am_c_test//` ;;
5886 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
5889 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
5890 echo "$ac_t""${am_cv_exeext}" 1>&6
5893 subdirs
="$configdirs"
5896 cat > confcache
<<\EOF
5897 # This file is a shell script that caches the results of configure
5898 # tests run on this system so they can be shared between configure
5899 # scripts and configure runs. It is not useful on other systems.
5900 # If it contains results you don't want to keep, you may remove or edit it.
5902 # By default, configure uses ./config.cache as the cache file,
5903 # creating it if it does not exist already. You can give configure
5904 # the --cache-file=FILE option to use a different cache file; that is
5905 # what configure does when it calls configure scripts in
5906 # subdirectories, so they share the cache.
5907 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5908 # config.status only pays attention to the cache file if you give it the
5909 # --recheck option to rerun configure.
5912 # The following way of writing the cache mishandles newlines in values,
5913 # but we know of no workaround that is simple, portable, and efficient.
5914 # So, don't put newlines in cache variables' values.
5915 # Ultrix sh set writes to stderr and can't be redirected directly,
5916 # and sets the high bit in the cache file unless we assign to the vars.
5918 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5920 # `set' does not quote correctly, so add quotes (double-quote substitution
5921 # turns \\\\ into \\, and sed turns \\ into \).
5923 -e "s/'/'\\\\''/g" \
5924 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5927 # `set' quotes correctly as required by POSIX, so do not add quotes.
5928 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5931 if cmp -s $cache_file confcache
; then
5934 if test -w $cache_file; then
5935 echo "updating cache $cache_file"
5936 cat confcache
> $cache_file
5938 echo "not updating unwritable cache $cache_file"
5943 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5945 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5946 # Let make expand exec_prefix.
5947 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5949 # Any assignment to VPATH causes Sun make to only execute
5950 # the first set of double-colon rules, so remove it if not needed.
5951 # If there is a colon in the path, we need to keep it.
5952 if test "x$srcdir" = x.
; then
5953 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5956 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5958 DEFS
=-DHAVE_CONFIG_H
5960 # Without the "./", some shells look in PATH for config.status.
5961 : ${CONFIG_STATUS=./config.status}
5963 echo creating
$CONFIG_STATUS
5964 rm -f $CONFIG_STATUS
5965 cat > $CONFIG_STATUS <<EOF
5967 # Generated automatically by configure.
5968 # Run this file to recreate the current configuration.
5969 # This directory was configured as follows,
5970 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5972 # $0 $ac_configure_args
5974 # Compiler output produced by configure, useful for debugging
5975 # configure, is in ./config.log if it exists.
5977 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5980 case "\$ac_option" in
5981 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5982 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5983 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5984 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5985 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
5987 -help | --help | --hel | --he | --h)
5988 echo "\$ac_cs_usage"; exit 0 ;;
5989 *) echo "\$ac_cs_usage"; exit 1 ;;
5993 ac_given_srcdir=$srcdir
5994 ac_given_INSTALL="$INSTALL"
5996 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5998 cat >> $CONFIG_STATUS <<EOF
6000 # Protect against being on the right side of a sed subst in config.status.
6001 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6002 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6006 s%@CFLAGS@%$CFLAGS%g
6007 s%@CPPFLAGS@%$CPPFLAGS%g
6008 s%@CXXFLAGS@%$CXXFLAGS%g
6010 s%@LDFLAGS@%$LDFLAGS%g
6012 s%@exec_prefix@%$exec_prefix%g
6013 s%@prefix@%$prefix%g
6014 s%@program_transform_name@%$program_transform_name%g
6015 s%@bindir@%$bindir%g
6016 s%@sbindir@%$sbindir%g
6017 s%@libexecdir@%$libexecdir%g
6018 s%@datadir@%$datadir%g
6019 s%@sysconfdir@%$sysconfdir%g
6020 s%@sharedstatedir@%$sharedstatedir%g
6021 s%@localstatedir@%$localstatedir%g
6022 s%@libdir@%$libdir%g
6023 s%@includedir@%$includedir%g
6024 s%@oldincludedir@%$oldincludedir%g
6025 s%@infodir@%$infodir%g
6026 s%@mandir@%$mandir%g
6029 s%@DLLTOOL@%$DLLTOOL%g
6031 s%@host_alias@%$host_alias%g
6032 s%@host_cpu@%$host_cpu%g
6033 s%@host_vendor@%$host_vendor%g
6034 s%@host_os@%$host_os%g
6035 s%@target@%$target%g
6036 s%@target_alias@%$target_alias%g
6037 s%@target_cpu@%$target_cpu%g
6038 s%@target_vendor@%$target_vendor%g
6039 s%@target_os@%$target_os%g
6041 s%@build_alias@%$build_alias%g
6042 s%@build_cpu@%$build_cpu%g
6043 s%@build_vendor@%$build_vendor%g
6044 s%@build_os@%$build_os%g
6045 s%@SET_MAKE@%$SET_MAKE%g
6046 s%@RANLIB@%$RANLIB%g
6047 s%@ALLOCA@%$ALLOCA%g
6048 s%@USE_NLS@%$USE_NLS%g
6049 s%@MSGFMT@%$MSGFMT%g
6050 s%@GMSGFMT@%$GMSGFMT%g
6051 s%@XGETTEXT@%$XGETTEXT%g
6052 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6053 s%@CATALOGS@%$CATALOGS%g
6054 s%@CATOBJEXT@%$CATOBJEXT%g
6055 s%@DATADIRNAME@%$DATADIRNAME%g
6056 s%@GMOFILES@%$GMOFILES%g
6057 s%@INSTOBJEXT@%$INSTOBJEXT%g
6058 s%@INTLDEPS@%$INTLDEPS%g
6059 s%@INTLLIBS@%$INTLLIBS%g
6060 s%@INTLOBJS@%$INTLOBJS%g
6061 s%@POFILES@%$POFILES%g
6063 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6065 s%@GT_YES@%$GT_YES%g
6066 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6068 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6069 s%@INSTALL_DATA@%$INSTALL_DATA%g
6073 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
6074 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6075 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
6076 s%@MMALLOC@%$MMALLOC%g
6077 s%@ENABLE_IDE@%$ENABLE_IDE%g
6078 s%@FOUNDRY_LIB_BASE@%$FOUNDRY_LIB_BASE%g
6079 s%@LIBGUI@%$LIBGUI%g
6080 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
6081 s%@IDE_CFLAGS_X@%$IDE_CFLAGS_X%g
6083 s%@LIBIDETCL@%$LIBIDETCL%g
6084 s%@LIBIDE@%$LIBIDE%g
6085 s%@IDE_DEPS@%$IDE_DEPS%g
6086 s%@WIN32LIBS@%$WIN32LIBS%g
6087 s%@WIN32LDAPP@%$WIN32LDAPP%g
6088 s%@WINDRES@%$WINDRES%g
6089 s%@TCL_VERSION@%$TCL_VERSION%g
6090 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
6091 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
6092 s%@TCL_CC@%$TCL_CC%g
6093 s%@TCL_DEFS@%$TCL_DEFS%g
6094 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
6095 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
6096 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
6097 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
6098 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
6099 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
6100 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
6101 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
6102 s%@TCL_RANLIB@%$TCL_RANLIB%g
6103 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
6104 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
6105 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
6106 s%@TK_VERSION@%$TK_VERSION%g
6107 s%@TK_DEFS@%$TK_DEFS%g
6108 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
6109 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
6110 s%@TK_XLIBSW@%$TK_XLIBSW%g
6111 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
6112 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
6113 s%@TCLHDIR@%$TCLHDIR%g
6114 s%@TKHDIR@%$TKHDIR%g
6115 s%@ITCLHDIR@%$ITCLHDIR%g
6116 s%@ITCLLIB@%$ITCLLIB%g
6117 s%@TIXHDIR@%$TIXHDIR%g
6118 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
6119 s%@X_CFLAGS@%$X_CFLAGS%g
6120 s%@X_LDFLAGS@%$X_LDFLAGS%g
6121 s%@X_LIBS@%$X_LIBS%g
6122 s%@TIXLIB@%$TIXLIB%g
6123 s%@TIX_DEPS@%$TIX_DEPS%g
6124 s%@GDBTKLIBS@%$GDBTKLIBS%g
6125 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
6126 s%@CONFIG_OBS@%$CONFIG_OBS%g
6127 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
6128 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
6129 s%@HLDFLAGS@%$HLDFLAGS%g
6130 s%@HLDENV@%$HLDENV%g
6131 s%@target_subdir@%$target_subdir%g
6132 /@host_makefile_frag@/r $host_makefile_frag
6133 s%@host_makefile_frag@%%g
6134 /@target_makefile_frag@/r $target_makefile_frag
6135 s%@target_makefile_frag@%%g
6138 s%@EXEEXT@%$EXEEXT%g
6139 s%@subdirs@%$subdirs%g
6144 cat >> $CONFIG_STATUS <<\EOF
6146 # Split the substitutions into bite-sized pieces for seds with
6147 # small command number limits, like on Digital OSF/1 and HP-UX.
6148 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6149 ac_file
=1 # Number of current file.
6150 ac_beg
=1 # First line for current file.
6151 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6154 while $ac_more_lines; do
6155 if test $ac_beg -gt 1; then
6156 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6158 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6160 if test ! -s conftest.s
$ac_file; then
6162 rm -f conftest.s
$ac_file
6164 if test -z "$ac_sed_cmds"; then
6165 ac_sed_cmds
="sed -f conftest.s$ac_file"
6167 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6169 ac_file
=`expr $ac_file + 1`
6171 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6174 if test -z "$ac_sed_cmds"; then
6179 cat >> $CONFIG_STATUS <<EOF
6181 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
6183 cat >> $CONFIG_STATUS <<\EOF
6184 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6185 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6187 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6188 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6189 *) ac_file_in
="${ac_file}.in" ;;
6192 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6194 # Remove last slash and all that follows it. Not all systems have dirname.
6195 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6196 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6197 # The file is in a subdirectory.
6198 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6199 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6200 # A "../" for each directory in $ac_dir_suffix.
6201 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6203 ac_dir_suffix
= ac_dots
=
6206 case "$ac_given_srcdir" in
6208 if test -z "$ac_dots"; then top_srcdir
=.
6209 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6210 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6212 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6213 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6216 case "$ac_given_INSTALL" in
6217 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6218 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6221 echo creating
"$ac_file"
6223 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6225 *Makefile
*) ac_comsub
="1i\\
6226 # $configure_input" ;;
6230 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6232 s%@configure_input@%$configure_input%g
6233 s%@srcdir@%$srcdir%g
6234 s%@top_srcdir@%$top_srcdir%g
6235 s%@INSTALL@%$INSTALL%g
6236 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6240 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6241 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6243 # ac_d sets the value in "#define NAME VALUE" lines.
6244 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6245 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6248 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6249 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6250 ac_uB
='\([ ]\)%\1#\2define\3'
6253 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6254 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6255 ac_eB
='$%\1#\2define\3'
6259 if test "${CONFIG_HEADERS+set}" != set; then
6261 cat >> $CONFIG_STATUS <<EOF
6262 CONFIG_HEADERS="config.h:config.in"
6264 cat >> $CONFIG_STATUS <<\EOF
6266 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6267 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6269 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6270 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6271 *) ac_file_in
="${ac_file}.in" ;;
6274 echo creating
$ac_file
6276 rm -f conftest.frag conftest.
in conftest.out
6277 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6278 cat $ac_file_inputs > conftest.
in
6282 # Transform confdefs.h into a sed script conftest.vals that substitutes
6283 # the proper values into config.h.in to produce config.h. And first:
6284 # Protect against being on the right side of a sed subst in config.status.
6285 # Protect against being in an unquoted here document in config.status.
6287 cat > conftest.hdr
<<\EOF
6290 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6294 sed -n -f conftest.hdr confdefs.h > conftest.vals
6297 # This sed command replaces #undef with comments. This is necessary, for
6298 # example, in the case of _POSIX_SOURCE, which is predefined and required
6299 # on some systems where configure will not decide to define it.
6300 cat >> conftest.vals <<\EOF
6301 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6304 # Break up conftest.vals because some shells have a limit on
6305 # the size of here documents, and old seds have small limits too.
6310 ac_lines=`grep -c . conftest.vals
`
6311 # grep -c gives empty output for an empty file on some AIX systems.
6312 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6313 # Write a limited-size here document to conftest.frag.
6314 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6315 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6317 sed -f conftest.frag conftest.in > conftest.out
6319 mv conftest.out conftest.in
6321 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6323 mv conftest.tail conftest.vals
6327 cat >> $CONFIG_STATUS <<\EOF
6328 rm -f conftest.frag conftest.h
6329 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6330 cat conftest.in >> conftest.h
6332 if cmp -s $ac_file conftest.h 2>/dev/null; then
6333 echo "$ac_file is unchanged"
6336 # Remove last slash and all that follows it. Not all systems have dirname.
6337 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6338 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6339 # The file is in a subdirectory.
6340 test ! -d "$ac_dir" && mkdir "$ac_dir"
6343 mv conftest.h $ac_file
6349 cat >> $CONFIG_STATUS <<EOF
6354 cat >> $CONFIG_STATUS <<\EOF
6355 srcdir=$ac_given_srcdir
6356 while test -n "$ac_sources"; do
6357 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6358 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6360 echo "linking $srcdir/$ac_source to $ac_dest"
6362 if test ! -r $srcdir/$ac_source; then
6363 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6367 # Make relative symlinks.
6368 # Remove last slash and all that follows it. Not all systems have dirname.
6369 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
6370 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6371 # The dest file is in a subdirectory.
6372 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6373 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
6374 # A "../" for each directory in $ac_dest_dir_suffix.
6375 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
6377 ac_dest_dir_suffix= ac_dots=
6381 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6382 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6385 # Make a symlink if possible; otherwise try a hard link.
6386 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6387 ln $srcdir/$ac_source $ac_dest; then :
6389 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6393 cat >> $CONFIG_STATUS <<EOF
6395 gdb_host_cpu=$gdb_host_cpu
6396 gdb_target_cpu=$gdb_target_cpu
6397 nativefile=$nativefile
6400 cat >> $CONFIG_STATUS <<\EOF
6402 if test "${nativefile}" = ""; then
6403 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
6404 < Makefile > Makefile.tem
6405 mv -f Makefile.tem Makefile
6408 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
6409 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
6410 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
6411 mv -f Makefile.tmp Makefile
6413 case x$CONFIG_HEADERS in
6414 xconfig.h:config.in)
6420 chmod +x $CONFIG_STATUS
6421 rm -fr confdefs* $ac_clean_files
6422 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6424 if test "$no_recursion" != yes; then
6426 # Remove --cache-file and --srcdir arguments so they do not pile up.
6427 ac_sub_configure_args=
6429 for ac_arg in $ac_configure_args; do
6430 if test -n "$ac_prev"; then
6435 -cache-file | --cache-file | --cache-fil | --cache-fi \
6436 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6437 ac_prev=cache_file ;;
6438 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6439 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6441 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6443 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6445 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6449 for ac_config_dir in $configdirs; do
6451 # Do not complain, so a configure script can configure whichever
6452 # parts of a large source tree are present.
6453 if test ! -d $srcdir/$ac_config_dir; then
6457 echo configuring in $ac_config_dir
6462 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6464 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6472 # A "../" for each directory in /$ac_config_dir.
6473 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6476 .) # No --srcdir option. We are building in place.
6477 ac_sub_srcdir=$srcdir ;;
6478 /*) # Absolute path.
6479 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6481 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6484 # Check for guested configure; otherwise get Cygnus style configure.
6485 if test -f $ac_sub_srcdir/configure; then
6486 ac_sub_configure=$ac_sub_srcdir/configure
6487 elif test -f $ac_sub_srcdir/configure.in; then
6488 ac_sub_configure=$ac_configure
6490 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6494 # The recursion is here.
6495 if test -n "$ac_sub_configure"; then
6497 # Make the cache file name correct relative to the subdirectory.
6498 case "$cache_file" in
6499 /*) ac_sub_cache_file=$cache_file ;;
6501 ac_sub_cache_file="$ac_dots$cache_file" ;;
6503 case "$ac_given_INSTALL" in
6504 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6505 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6508 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6509 # The eval makes quoting arguments work.
6510 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6513 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }