3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.10
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:
19 --enable-sim-powerpc "
23 --with-tclconfig directory containing tcl configuration (tclConfig.sh)"
25 --with-tkconfig directory containing tk configuration (tkConfig.sh)"
27 --with-tclinclude directory where tcl private headers are"
29 --with-tkinclude directory where tk private headers are"
31 # Initialize some variables set by options.
32 # The variables have the same names as the options, with
33 # dashes changed to underlines.
35 cache_file
=.
/config.cache
44 program_transform_name
=s
,x
,x
,
52 bindir
='${exec_prefix}/bin'
53 sbindir
='${exec_prefix}/sbin'
54 libexecdir
='${exec_prefix}/libexec'
55 datadir
='${prefix}/share'
56 sysconfdir
='${prefix}/etc'
57 sharedstatedir
='${prefix}/com'
58 localstatedir
='${prefix}/var'
59 libdir
='${exec_prefix}/lib'
60 includedir
='${prefix}/include'
61 oldincludedir
='/usr/include'
62 infodir
='${prefix}/info'
63 mandir
='${prefix}/man'
65 # Initialize some other variables.
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
81 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 # Accept the important Cygnus configure options, so we can diagnose typos.
89 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
91 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
92 bindir
="$ac_optarg" ;;
94 -build |
--build |
--buil |
--bui |
--bu)
96 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
99 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
100 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
101 ac_prev
=cache_file
;;
102 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
103 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
104 cache_file
="$ac_optarg" ;;
106 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
108 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
110 datadir
="$ac_optarg" ;;
112 -disable-* |
--disable-*)
113 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* |
--enable-*)
122 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
135 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
136 |
--exec |
--exe |
--ex)
137 ac_prev
=exec_prefix
;;
138 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
139 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
140 |
--exec=* |
--exe=* |
--ex=*)
141 exec_prefix
="$ac_optarg" ;;
143 -gas |
--gas |
--ga |
--g)
144 # Obsolete; use --with-gas.
147 -help |
--help |
--hel |
--he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
202 -host |
--host |
--hos |
--ho)
204 -host=* |
--host=* |
--hos=* |
--ho=*)
207 -includedir |
--includedir |
--includedi |
--included |
--include \
208 |
--includ |
--inclu |
--incl |
--inc)
209 ac_prev
=includedir
;;
210 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
211 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
212 includedir
="$ac_optarg" ;;
214 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
216 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
217 infodir
="$ac_optarg" ;;
219 -libdir |
--libdir |
--libdi |
--libd)
221 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
222 libdir
="$ac_optarg" ;;
224 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
225 |
--libexe |
--libex |
--libe)
226 ac_prev
=libexecdir
;;
227 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
228 |
--libexe=* |
--libex=* |
--libe=*)
229 libexecdir
="$ac_optarg" ;;
231 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
232 |
--localstate |
--localstat |
--localsta |
--localst \
233 |
--locals |
--local |
--loca |
--loc |
--lo)
234 ac_prev
=localstatedir
;;
235 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
236 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
237 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
238 localstatedir
="$ac_optarg" ;;
240 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
242 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
243 mandir
="$ac_optarg" ;;
246 # Obsolete; use --without-fp.
249 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
253 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
254 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
257 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
258 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
259 |
--oldin |
--oldi |
--old |
--ol |
--o)
260 ac_prev
=oldincludedir
;;
261 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
262 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
263 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
264 oldincludedir
="$ac_optarg" ;;
266 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
268 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
269 prefix
="$ac_optarg" ;;
271 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
272 |
--program-pre |
--program-pr |
--program-p)
273 ac_prev
=program_prefix
;;
274 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
275 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
276 program_prefix
="$ac_optarg" ;;
278 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
279 |
--program-suf |
--program-su |
--program-s)
280 ac_prev
=program_suffix
;;
281 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
282 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
283 program_suffix
="$ac_optarg" ;;
285 -program-transform-name |
--program-transform-name \
286 |
--program-transform-nam |
--program-transform-na \
287 |
--program-transform-n |
--program-transform- \
288 |
--program-transform |
--program-transfor \
289 |
--program-transfo |
--program-transf \
290 |
--program-trans |
--program-tran \
291 |
--progr-tra |
--program-tr |
--program-t)
292 ac_prev
=program_transform_name
;;
293 -program-transform-name=* |
--program-transform-name=* \
294 |
--program-transform-nam=* |
--program-transform-na=* \
295 |
--program-transform-n=* |
--program-transform-=* \
296 |
--program-transform=* |
--program-transfor=* \
297 |
--program-transfo=* |
--program-transf=* \
298 |
--program-trans=* |
--program-tran=* \
299 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
300 program_transform_name
="$ac_optarg" ;;
302 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
303 |
-silent |
--silent |
--silen |
--sile |
--sil)
306 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
308 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
310 sbindir
="$ac_optarg" ;;
312 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
313 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
314 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
316 ac_prev
=sharedstatedir
;;
317 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
318 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
319 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
321 sharedstatedir
="$ac_optarg" ;;
323 -site |
--site |
--sit)
325 -site=* |
--site=* |
--sit=*)
328 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
330 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
331 srcdir
="$ac_optarg" ;;
333 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
334 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
335 ac_prev
=sysconfdir
;;
336 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
337 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
338 sysconfdir
="$ac_optarg" ;;
340 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
342 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
343 target
="$ac_optarg" ;;
345 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
348 -version |
--version |
--versio |
--versi |
--vers)
349 echo "configure generated by autoconf version 2.10"
353 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package
=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* |
--without-*)
366 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package
=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
375 # Obsolete; use --with-x.
378 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
379 |
--x-incl |
--x-inc |
--x-in |
--x-i)
380 ac_prev
=x_includes
;;
381 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
382 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
383 x_includes
="$ac_optarg" ;;
385 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
386 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
387 ac_prev
=x_libraries
;;
388 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
389 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
390 x_libraries
="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE
; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
440 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
441 |
--no-cr |
--no-c) ;;
442 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
443 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
444 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
451 # Only set LANG and LC_ALL to C if already set.
452 # These must not be set unconditionally because not all systems understand
453 # e.g. LANG=C (notably SCO).
454 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
455 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest
* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file
=main.c
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted
=yes
469 # Try the directory containing this script, then its parent.
471 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
474 if test ! -r $srcdir/$ac_unique_file; then
478 ac_srcdir_defaulted
=no
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE
; then
492 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 for ac_site_file
in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
508 echo "creating cache $cache_file"
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp
='$CPP $CPPFLAGS'
515 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
518 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
519 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
527 ac_n
= ac_c
='\c' ac_t
=
533 # Extract the first word of "gcc", so it can be a program name with args.
534 set dummy gcc
; ac_word
=$2
535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
536 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
537 echo $ac_n "(cached) $ac_c" 1>&6
539 if test -n "$CC"; then
540 ac_cv_prog_CC
="$CC" # Let the user override the test.
542 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
543 for ac_dir
in $PATH; do
544 test -z "$ac_dir" && ac_dir
=.
545 if test -f $ac_dir/$ac_word; then
554 if test -n "$CC"; then
555 echo "$ac_t""$CC" 1>&6
557 echo "$ac_t""no" 1>&6
560 if test -z "$CC"; then
561 # Extract the first word of "cc", so it can be a program name with args.
562 set dummy cc
; ac_word
=$2
563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
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
="${IFS}:"
572 for ac_dir
in $PATH; do
573 test -z "$ac_dir" && ac_dir
=.
574 if test -f $ac_dir/$ac_word; then
575 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
584 if test $ac_prog_rejected = yes; then
585 # We found a bogon in the path, so make sure we never use it.
586 set dummy
$ac_cv_prog_CC
588 if test $# -gt 0; then
589 # We chose a different compiler from the bogus one.
590 # However, it has the same basename, so the bogon will be chosen
591 # first if we set CC to just the basename; use the full file name.
593 set dummy
"$ac_dir/$ac_word" "$@"
601 if test -n "$CC"; then
602 echo "$ac_t""$CC" 1>&6
604 echo "$ac_t""no" 1>&6
607 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
610 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
611 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
612 echo $ac_n "(cached) $ac_c" 1>&6
614 cat > conftest.c
<<EOF
619 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
626 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
627 if test $ac_cv_prog_gcc = yes; then
629 if test "${CFLAGS+set}" != set; then
630 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
631 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
632 echo $ac_n "(cached) $ac_c" 1>&6
634 echo 'void f(){}' > conftest.c
635 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
644 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
645 if test $ac_cv_prog_gcc_g = yes; then
653 test "${CFLAGS+set}" = set || CFLAGS
="-g"
656 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
657 # On Suns, sometimes $CPP names a directory.
658 if test -n "$CPP" && test -d "$CPP"; then
661 if test -z "$CPP"; then
662 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
663 echo $ac_n "(cached) $ac_c" 1>&6
665 # This must be in double quotes, not single quotes, because CPP may get
666 # substituted into the Makefile and "${CC-cc}" will confuse make.
668 # On the NeXT, cc -E runs the code through the compiler's parser,
669 # not just through cpp.
670 cat > conftest.
$ac_ext <<EOF
671 #line 672 "configure"
672 #include "confdefs.h"
676 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
677 { (eval echo configure
:678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
678 ac_err
=`grep -v '^ *+' conftest.out`
679 if test -z "$ac_err"; then
684 CPP
="${CC-cc} -E -traditional-cpp"
685 cat > conftest.
$ac_ext <<EOF
686 #line 687 "configure"
687 #include "confdefs.h"
691 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
692 { (eval echo configure
:693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
693 ac_err
=`grep -v '^ *+' conftest.out`
694 if test -z "$ac_err"; then
704 ac_cv_prog_CPP
="$CPP"
706 CPP
="$ac_cv_prog_CPP"
708 ac_cv_prog_CPP
="$CPP"
710 echo "$ac_t""$CPP" 1>&6
712 echo $ac_n "checking for AIX""... $ac_c" 1>&6
713 cat > conftest.
$ac_ext <<EOF
714 #line 715 "configure"
715 #include "confdefs.h"
721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
722 egrep "yes" >/dev
/null
2>&1; then
724 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
725 #define _ALL_SOURCE 1
730 echo "$ac_t""no" 1>&6
735 ac_safe
=`echo "minix/config.h" | tr './\055' '___'`
736 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
740 cat > conftest.
$ac_ext <<EOF
741 #line 742 "configure"
742 #include "confdefs.h"
743 #include <minix/config.h>
745 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
746 { (eval echo configure
:747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
747 ac_err
=`grep -v '^ *+' conftest.out`
748 if test -z "$ac_err"; then
750 eval "ac_cv_header_$ac_safe=yes"
754 eval "ac_cv_header_$ac_safe=no"
758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
759 echo "$ac_t""yes" 1>&6
762 echo "$ac_t""no" 1>&6
766 if test "$MINIX" = yes; then
767 cat >> confdefs.h
<<\EOF
768 #define _POSIX_SOURCE 1
771 cat >> confdefs.h
<<\EOF
772 #define _POSIX_1_SOURCE 2
775 cat >> confdefs.h
<<\EOF
781 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
782 if test -d /etc
/conf
/kconfig.d
&&
783 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
785 echo "$ac_t""yes" 1>&6
786 ISC
=yes # If later tests want to check for ISC.
787 cat >> confdefs.h
<<\EOF
788 #define _POSIX_SOURCE 1
791 if test "$GCC" = yes; then
797 echo "$ac_t""no" 1>&6
803 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
804 if test -f $ac_dir/install-sh
; then
806 ac_install_sh
="$ac_aux_dir/install-sh -c"
808 elif test -f $ac_dir/install.sh
; then
810 ac_install_sh
="$ac_aux_dir/install.sh -c"
814 if test -z "$ac_aux_dir"; then
815 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
817 ac_config_guess
=$ac_aux_dir/config.guess
818 ac_config_sub
=$ac_aux_dir/config.sub
819 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
821 # Find a good install program. We prefer a C program (faster),
822 # so one script is as good as another. But avoid the broken or
823 # incompatible versions:
824 # SysV /etc/install, /usr/sbin/install
825 # SunOS /usr/etc/install
828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
830 # ./install, which can be erroneously created by make from ./install.sh.
831 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
832 if test -z "$INSTALL"; then
833 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
837 for ac_dir
in $PATH; do
838 # Account for people who put trailing slashes in PATH elements.
840 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
842 # OSF1 and SCO ODT 3.0 have their own names for install.
843 for ac_prog
in ginstall installbsd scoinst
install; do
844 if test -f $ac_dir/$ac_prog; then
845 if test $ac_prog = install &&
846 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
847 # AIX install. It has an incompatible calling convention.
848 # OSF/1 installbsd also uses dspmsg, but is usable.
851 ac_cv_path_install
="$ac_dir/$ac_prog -c"
862 if test "${ac_cv_path_install+set}" = set; then
863 INSTALL
="$ac_cv_path_install"
865 # As a last resort, use the slow shell script. We don't cache a
866 # path for INSTALL within a source directory, because that will
867 # break other packages using the cache if that directory is
868 # removed, or if the path is relative.
869 INSTALL
="$ac_install_sh"
872 echo "$ac_t""$INSTALL" 1>&6
874 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
875 # It thinks the first close brace ends the variable substitution.
876 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
878 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
881 # Make sure we can run config.sub.
882 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
883 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
886 echo $ac_n "checking host system type""... $ac_c" 1>&6
889 case "$host_alias" in
893 if host_alias
=`$ac_config_guess`; then :
894 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
896 *) host_alias
=$nonopt ;;
900 host=`$ac_config_sub $host_alias`
901 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
902 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
903 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
904 echo "$ac_t""$host" 1>&6
906 echo $ac_n "checking build system type""... $ac_c" 1>&6
909 case "$build_alias" in
912 NONE
) build_alias
=$host_alias ;;
913 *) build_alias
=$nonopt ;;
917 build
=`$ac_config_sub $build_alias`
918 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
919 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
920 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
921 echo "$ac_t""$build" 1>&6
923 if test $host != $build; then
924 ac_tool_prefix
=${host_alias}-
929 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
930 set dummy
${ac_tool_prefix}ar; ac_word
=$2
931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
932 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
935 if test -n "$AR"; then
936 ac_cv_prog_AR
="$AR" # Let the user override the test.
938 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
939 for ac_dir
in $PATH; do
940 test -z "$ac_dir" && ac_dir
=.
941 if test -f $ac_dir/$ac_word; then
942 ac_cv_prog_AR
="${ac_tool_prefix}ar"
947 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
951 if test -n "$AR"; then
952 echo "$ac_t""$AR" 1>&6
954 echo "$ac_t""no" 1>&6
959 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
960 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
962 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 if test -n "$RANLIB"; then
966 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
968 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
969 for ac_dir
in $PATH; do
970 test -z "$ac_dir" && ac_dir
=.
971 if test -f $ac_dir/$ac_word; then
972 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
979 RANLIB
="$ac_cv_prog_RANLIB"
980 if test -n "$RANLIB"; then
981 echo "$ac_t""$RANLIB" 1>&6
983 echo "$ac_t""no" 1>&6
987 if test -z "$ac_cv_prog_RANLIB"; then
988 if test -n "$ac_tool_prefix"; then
989 # Extract the first word of "ranlib", so it can be a program name with args.
990 set dummy ranlib
; ac_word
=$2
991 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
992 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 if test -n "$RANLIB"; then
996 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
998 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
999 for ac_dir
in $PATH; do
1000 test -z "$ac_dir" && ac_dir
=.
1001 if test -f $ac_dir/$ac_word; then
1002 ac_cv_prog_RANLIB
="ranlib"
1007 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1010 RANLIB
="$ac_cv_prog_RANLIB"
1011 if test -n "$RANLIB"; then
1012 echo "$ac_t""$RANLIB" 1>&6
1014 echo "$ac_t""no" 1>&6
1022 for ac_prog
in 'bison -y' byacc
1024 # Extract the first word of "$ac_prog", so it can be a program name with args.
1025 set dummy
$ac_prog; ac_word
=$2
1026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1027 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1030 if test -n "$YACC"; then
1031 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1033 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1034 for ac_dir
in $PATH; do
1035 test -z "$ac_dir" && ac_dir
=.
1036 if test -f $ac_dir/$ac_word; then
1037 ac_cv_prog_YACC
="$ac_prog"
1044 YACC
="$ac_cv_prog_YACC"
1045 if test -n "$YACC"; then
1046 echo "$ac_t""$YACC" 1>&6
1048 echo "$ac_t""no" 1>&6
1051 test -n "$YACC" && break
1053 test -n "$YACC" || YACC
="yacc"
1055 for ac_prog
in mawk gawk nawk
awk
1057 # Extract the first word of "$ac_prog", so it can be a program name with args.
1058 set dummy
$ac_prog; ac_word
=$2
1059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1060 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1063 if test -n "$AWK"; then
1064 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1066 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1067 for ac_dir
in $PATH; do
1068 test -z "$ac_dir" && ac_dir
=.
1069 if test -f $ac_dir/$ac_word; then
1070 ac_cv_prog_AWK
="$ac_prog"
1077 AWK
="$ac_cv_prog_AWK"
1078 if test -n "$AWK"; then
1079 echo "$ac_t""$AWK" 1>&6
1081 echo "$ac_t""no" 1>&6
1084 test -n "$AWK" && break
1089 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1090 if test -f $ac_dir/install-sh
; then
1092 ac_install_sh
="$ac_aux_dir/install-sh -c"
1094 elif test -f $ac_dir/install.sh
; then
1096 ac_install_sh
="$ac_aux_dir/install.sh -c"
1100 if test -z "$ac_aux_dir"; then
1101 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1103 ac_config_guess
=$ac_aux_dir/config.guess
1104 ac_config_sub
=$ac_aux_dir/config.sub
1105 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1108 # Do some error checking and defaulting for the host and target type.
1110 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1113 # 1. You are not allowed to specify --host, --target, and nonopt at the
1115 # 2. Host defaults to nonopt.
1116 # 3. If nonopt is not specified, then host defaults to the current host,
1117 # as determined by config.guess.
1118 # 4. Target and build default to nonopt.
1119 # 5. If nonopt is not specified, then target and build default to host.
1121 # The aliases save the names the user supplied, while $host etc.
1122 # will get canonicalized.
1123 case $host---$target---$nonopt in
1124 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1125 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1129 # Make sure we can run config.sub.
1130 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1131 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1134 echo $ac_n "checking host system type""... $ac_c" 1>&6
1137 case "$host_alias" in
1141 if host_alias
=`$ac_config_guess`; then :
1142 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1144 *) host_alias
=$nonopt ;;
1148 host=`$ac_config_sub $host_alias`
1149 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1150 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1151 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1152 echo "$ac_t""$host" 1>&6
1154 echo $ac_n "checking target system type""... $ac_c" 1>&6
1156 target_alias
=$target
1157 case "$target_alias" in
1160 NONE
) target_alias
=$host_alias ;;
1161 *) target_alias
=$nonopt ;;
1165 target
=`$ac_config_sub $target_alias`
1166 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1167 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1168 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1169 echo "$ac_t""$target" 1>&6
1171 echo $ac_n "checking build system type""... $ac_c" 1>&6
1174 case "$build_alias" in
1177 NONE
) build_alias
=$host_alias ;;
1178 *) build_alias
=$nonopt ;;
1182 build
=`$ac_config_sub $build_alias`
1183 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1184 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1185 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1186 echo "$ac_t""$build" 1>&6
1188 test "$host_alias" != "$target_alias" &&
1189 test "$program_prefix$program_suffix$program_transform_name" = \
1191 program_prefix
=${target_alias}-
1193 if test "$program_transform_name" = s
,x
,x
,; then
1194 program_transform_name
=
1196 # Double any \ or $. echo might interpret backslashes.
1197 cat <<\EOF_SED
> conftestsed
1198 s
,\\,\\\\,g
; s
,\$
,$$
,g
1200 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1203 test "$program_prefix" != NONE
&&
1204 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1205 # Use a double $ so make ignores it.
1206 test "$program_suffix" != NONE
&&
1207 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1209 # sed with no file args requires a program.
1210 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1213 # If we cannot run a trivial program, we must be cross compiling.
1214 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1215 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1218 if test "$cross_compiling" = yes; then
1221 cat > conftest.
$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1226 { (eval echo configure
:1227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1227 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1236 echo "$ac_t""$ac_cv_c_cross" 1>&6
1237 cross_compiling
=$ac_cv_c_cross
1239 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1240 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 cat > conftest.
$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1251 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1252 { (eval echo configure
:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1253 ac_err
=`grep -v '^ *+' conftest.out`
1254 if test -z "$ac_err"; then
1256 ac_cv_header_stdc
=yes
1260 ac_cv_header_stdc
=no
1264 if test $ac_cv_header_stdc = yes; then
1265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1266 cat > conftest.
$ac_ext <<EOF
1267 #line 1268 "configure"
1268 #include "confdefs.h"
1271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1272 egrep "memchr" >/dev
/null
2>&1; then
1276 ac_cv_header_stdc
=no
1282 if test $ac_cv_header_stdc = yes; then
1283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1284 cat > conftest.
$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1290 egrep "free" >/dev
/null
2>&1; then
1294 ac_cv_header_stdc
=no
1300 if test $ac_cv_header_stdc = yes; then
1301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1302 if test "$cross_compiling" = yes; then
1305 cat > conftest.
$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1309 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1310 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1312 int main () { int i; for (i = 0; i < 256; i++)
1313 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1317 { (eval echo configure
:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1318 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1321 ac_cv_header_stdc
=no
1328 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1329 if test $ac_cv_header_stdc = yes; then
1330 cat >> confdefs.h
<<\EOF
1331 #define STDC_HEADERS 1
1336 for ac_hdr
in limits.h memory.h string.h
strings.h unistd.h termios.h termio.h sgtty.h stddef.h sys
/procfs.h link.h endian.h
1338 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1340 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 cat > conftest.
$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1348 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1349 { (eval echo configure
:1350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1350 ac_err
=`grep -v '^ *+' conftest.out`
1351 if test -z "$ac_err"; then
1353 eval "ac_cv_header_$ac_safe=yes"
1357 eval "ac_cv_header_$ac_safe=no"
1361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1362 echo "$ac_t""yes" 1>&6
1363 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1364 cat >> confdefs.h
<<EOF
1365 #define $ac_tr_hdr 1
1369 echo "$ac_t""no" 1>&6
1373 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1374 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1377 cat > conftest.
$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380 #include <sys/types.h>
1381 #include <sys/stat.h>
1383 #if defined(S_ISBLK) && defined(S_IFDIR)
1384 # if S_ISBLK (S_IFDIR)
1389 #if defined(S_ISBLK) && defined(S_IFCHR)
1390 # if S_ISBLK (S_IFCHR)
1395 #if defined(S_ISLNK) && defined(S_IFREG)
1396 # if S_ISLNK (S_IFREG)
1401 #if defined(S_ISSOCK) && defined(S_IFREG)
1402 # if S_ISSOCK (S_IFREG)
1408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1409 egrep "You lose" >/dev
/null
2>&1; then
1411 ac_cv_header_stat_broken
=yes
1414 ac_cv_header_stat_broken
=no
1420 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1421 if test $ac_cv_header_stat_broken = yes; then
1422 cat >> confdefs.h
<<\EOF
1423 #define STAT_MACROS_BROKEN 1
1429 echo $ac_n "checking for working const""... $ac_c" 1>&6
1430 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 cat > conftest.
$ac_ext <<EOF
1434 #line 1435 "configure"
1435 #include "confdefs.h"
1437 int main() { return 0; }
1440 /* Ultrix mips cc rejects this. */
1441 typedef int charset[2]; const charset x;
1442 /* SunOS 4.1.1 cc rejects this. */
1443 char const *const *ccp;
1445 /* NEC SVR4.0.2 mips cc rejects this. */
1446 struct point {int x, y;};
1447 static struct point const zero = {0,0};
1448 /* AIX XL C 1.02.0.0 rejects this.
1449 It does not let you subtract one const X* pointer from another in an arm
1450 of an if-expression whose if-part is not a constant expression */
1451 const char *g = "string";
1452 ccp = &g + (g ? g-g : 0);
1453 /* HPUX 7.0 cc rejects these. */
1456 ccp = (char const *const *) p;
1457 { /* SCO 3.2v4 cc rejects this. */
1459 char const *s = 0 ? (char *) 0 : (char const *) 0;
1463 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1465 const int *foo = &x[0];
1468 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1469 typedef const int *iptr;
1473 { /* AIX XL C 1.02.0.0 rejects this saying
1474 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1475 struct s { int j; const int *ap[3]; };
1476 struct s *b; b->j = 5;
1478 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1484 if { (eval echo configure
:1485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1495 echo "$ac_t""$ac_cv_c_const" 1>&6
1496 if test $ac_cv_c_const = no
; then
1497 cat >> confdefs.h
<<\EOF
1504 for ac_func
in setpgid sbrk
1506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1510 cat > conftest.
$ac_ext <<EOF
1511 #line 1512 "configure"
1512 #include "confdefs.h"
1513 /* System header to define __stub macros and hopefully few prototypes,
1514 which can conflict with char $ac_func(); below. */
1516 /* Override any gcc2 internal prototype to avoid an error. */
1517 /* We use char because int might match the return type of a gcc2
1518 builtin and then its argument prototype would still apply. */
1521 int main() { return 0; }
1524 /* The GNU C library defines this for functions which it implements
1525 to always fail with ENOSYS. Some functions are actually named
1526 something starting with __ and the normal name is an alias. */
1527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1535 if { (eval echo configure
:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1537 eval "ac_cv_func_$ac_func=yes"
1540 eval "ac_cv_func_$ac_func=no"
1545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1546 echo "$ac_t""yes" 1>&6
1547 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1548 cat >> confdefs.h
<<EOF
1549 #define $ac_tr_func 1
1553 echo "$ac_t""no" 1>&6
1558 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
1559 if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 cat > conftest.
$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1565 #include <sys/procfs.h>
1566 int main() { return 0; }
1568 gregset_t *gregsetp = 0
1571 if { (eval echo configure
:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1573 gdb_cv_have_gregset_t
=yes
1576 gdb_cv_have_gregset_t
=no
1582 echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6
1583 if test $gdb_cv_have_gregset_t = yes; then
1584 cat >> confdefs.h
<<\EOF
1585 #define HAVE_GREGSET_T 1
1590 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
1591 if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 cat > conftest.
$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1597 #include <sys/procfs.h>
1598 int main() { return 0; }
1600 fpregset_t *fpregsetp = 0
1603 if { (eval echo configure
:1604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1605 gdb_cv_have_fpregset_t
=yes
1608 gdb_cv_have_fpregset_t
=no
1614 echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6
1615 if test $gdb_cv_have_fpregset_t = yes; then
1616 cat >> confdefs.h
<<\EOF
1617 #define HAVE_FPREGSET_T 1
1623 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
1624 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 cat > conftest.
$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1631 int main() { return 0; }
1637 switch (foo & 2) { case 0: return; }
1641 if { (eval echo configure
:1642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1643 gdb_cv_c_long_long
=yes
1646 gdb_cv_c_long_long
=no
1652 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
1653 if test $gdb_cv_c_long_long = yes; then
1654 cat >> confdefs.h
<<\EOF
1655 #define CC_HAS_LONG_LONG 1
1661 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
1662 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1665 if test "$cross_compiling" = yes; then
1666 gdb_cv_printf_has_long_long
=no
1668 cat > conftest.
$ac_ext <<EOF
1669 #line 1670 "configure"
1670 #include "confdefs.h"
1674 long long l = 0x12345;
1675 sprintf (buf, "%llx", l);
1676 return (strcmp ("12345", buf));
1679 { (eval echo configure
:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1680 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1681 gdb_cv_printf_has_long_long
=yes
1683 gdb_cv_printf_has_long_long
=no
1689 if test $gdb_cv_printf_has_long_long = yes; then
1690 cat >> confdefs.h
<<\EOF
1691 #define PRINTF_HAS_LONG_LONG 1
1695 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
1698 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
1699 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 cat > conftest.
$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1706 int main() { return 0; }
1711 if { (eval echo configure
:1712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1713 ac_cv_c_long_double
=yes
1716 ac_cv_c_long_double
=no
1722 echo "$ac_t""$ac_cv_c_long_double" 1>&6
1723 if test $ac_cv_c_long_double = yes; then
1724 cat >> confdefs.h
<<\EOF
1725 #define HAVE_LONG_DOUBLE 1
1731 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
1732 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 if test "$cross_compiling" = yes; then
1736 gdb_cv_printf_has_long_double
=no
1738 cat > conftest.
$ac_ext <<EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1744 long double f = 3.141592653;
1745 sprintf (buf, "%Lg", f);
1746 return (strncmp ("3.14159", buf, 7));
1749 { (eval echo configure
:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1750 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1751 gdb_cv_printf_has_long_double
=yes
1753 gdb_cv_printf_has_long_double
=no
1759 if test $gdb_cv_printf_has_long_double = yes; then
1760 cat >> confdefs.h
<<\EOF
1761 #define PRINTF_HAS_LONG_DOUBLE 1
1765 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
1767 for ac_func
in valloc getpagesize
1769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 cat > conftest.
$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1776 /* System header to define __stub macros and hopefully few prototypes,
1777 which can conflict with char $ac_func(); below. */
1779 /* Override any gcc2 internal prototype to avoid an error. */
1780 /* We use char because int might match the return type of a gcc2
1781 builtin and then its argument prototype would still apply. */
1784 int main() { return 0; }
1787 /* The GNU C library defines this for functions which it implements
1788 to always fail with ENOSYS. Some functions are actually named
1789 something starting with __ and the normal name is an alias. */
1790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1798 if { (eval echo configure
:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1800 eval "ac_cv_func_$ac_func=yes"
1803 eval "ac_cv_func_$ac_func=no"
1808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1809 echo "$ac_t""yes" 1>&6
1810 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1811 cat >> confdefs.h
<<EOF
1812 #define $ac_tr_func 1
1816 echo "$ac_t""no" 1>&6
1820 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1821 if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1824 if test "$cross_compiling" = yes; then
1827 cat > conftest.
$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1831 /* Thanks to Mike Haertel and Jim Avera for this test. */
1832 #include <sys/types.h>
1834 #include <sys/mman.h>
1836 #ifndef HAVE_GETPAGESIZE
1837 # include <sys/param.h>
1838 # ifdef EXEC_PAGESIZE
1839 # define getpagesize() EXEC_PAGESIZE
1842 # define getpagesize() NBPG * CLSIZE
1848 # define getpagesize() NBPC
1850 # define getpagesize() PAGESIZE /* SVR4 */
1857 # define valloc malloc
1861 extern "C" { void *valloc(unsigned), *malloc(unsigned); }
1863 char *valloc(), *malloc();
1869 char *buf1, *buf2, *buf3;
1870 int i = getpagesize(), j;
1874 buf1 = (char *)valloc(i2);
1875 buf2 = (char *)valloc(i);
1876 buf3 = (char *)malloc(i2);
1877 for (j = 0; j < i2; ++j)
1878 *(buf1 + j) = rand();
1879 fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
1880 write(fd, buf1, i2);
1881 mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
1882 for (j = 0; j < i; ++j)
1883 if (*(buf1 + j) != *(buf2 + j))
1885 lseek(fd, (long)i, 0);
1886 read(fd, buf2, i); /* read into mapped memory -- file should not change */
1887 /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
1888 lseek(fd, (long)0, 0);
1890 for (j = 0; j < i2; ++j)
1891 if (*(buf1 + j) != *(buf3 + j))
1897 { (eval echo configure
:1898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1898 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1907 echo "$ac_t""$ac_cv_func_mmap" 1>&6
1908 if test $ac_cv_func_mmap = yes; then
1909 cat >> confdefs.h
<<\EOF
1918 if test ${build} = ${host} -a ${host} = ${target} ; then
1919 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
1920 if test -f /usr
/lib
/libthread_db.so
.1 ; then
1921 echo "$ac_t""yes" 1>&6
1922 THREAD_DB_OBS
=sol-thread.o
1923 cat >> confdefs.h
<<\EOF
1924 #define HAVE_THREAD_DB_LIB 1
1927 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Xlinker -export-dynamic"
1929 echo "$ac_t""no" 1>&6
1939 # Check whether --enable-netrom or --disable-netrom was given.
1940 if test "${enable_netrom+set}" = set; then
1941 enableval
="$enable_netrom"
1942 case "${enableval}" in
1943 yes) enable_netrom
=yes ;;
1944 no
) enable_netrom
=no
;;
1945 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
1950 if test "${enable_netrom}" = "yes"; then
1951 ENABLE_OBS
="${ENABLE_OBS} remote-nrom.o"
1957 # Check whether --enable-gm or --disable-gm was given.
1958 if test "${enable_gm+set}" = set; then
1959 enableval
="$enable_gm"
1960 case "${enableval}" in
1961 yes) ENABLE_OBS
="${ENABLE_OBS} gmagic.o"
1962 ENABLE_CFLAGS
=-DGENERAL_MAGIC
1965 *) { echo "configure: error: bad value ${enableval} given for gm option" 1>&2; exit 1; } ;;
1972 # Check whether --enable-sim-powerpc or --disable-sim-powerpc was given.
1973 if test "${enable_sim_powerpc+set}" = set; then
1974 enableval
="$enable_sim_powerpc"
1975 case "${enableval}" in
1976 yes) powerpc_sim
=yes ;;
1977 no
) powerpc_sim
=no
;;
1978 *) { echo "configure: error: bad value ${enableval} given for sim-powerpc option" 1>&2; exit 1; } ;;
1981 if test x
"$GCC" != x
""; then powerpc_sim
=yes; else powerpc_sim
=no
; fi
1985 # start-sanitize-gdbtk
1988 # Check whether --enable-gdbtk or --disable-gdbtk was given.
1989 if test "${enable_gdbtk+set}" = set; then
1990 enableval
="$enable_gdbtk"
1991 case "${enableval}" in
1995 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
1998 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
2006 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
2010 # Default is on for everything but go32 and cygwin32
2023 if test "${enable_gdbtk}" = "yes"; then
2027 # Ok, lets find the tcl configuration
2028 # First, look for one uninstalled.
2029 # the alternative search directory is invoked by --with-tclconfig
2032 if test x
"${no_tcl}" = x
; then
2033 # we reset no_tcl in case something fails here
2035 # Check whether --with-tclconfig or --without-tclconfig was given.
2036 if test "${with_tclconfig+set}" = set; then
2037 withval
="$with_tclconfig"
2038 with_tclconfig
=${withval}
2041 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
2042 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2047 # First check to see if --with-tclconfig was specified.
2048 if test x
"${with_tclconfig}" != x
; then
2049 if test -f "${with_tclconfig}/tclConfig.sh" ; then
2050 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
2052 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
2056 # then check for a private Tcl installation
2057 if test x
"${ac_cv_c_tclconfig}" = x
; then
2060 `ls -dr ../tcl[7-9]* 2>/dev/null` \
2062 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
2064 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
2065 if test -f "$i/unix/tclConfig.sh" ; then
2066 ac_cv_c_tclconfig
=`(cd $i/unix; pwd)`
2071 # check in a few common install locations
2072 if test x
"${ac_cv_c_tclconfig}" = x
; then
2073 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
2074 if test -f "$i/tclConfig.sh" ; then
2075 ac_cv_c_tclconfig
=`(cd $i; pwd)`
2080 # check in a few other private locations
2081 if test x
"${ac_cv_c_tclconfig}" = x
; then
2084 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
2085 if test -f "$i/unix/tclConfig.sh" ; then
2086 ac_cv_c_tclconfig
=`(cd $i/unix; pwd)`
2094 if test x
"${ac_cv_c_tclconfig}" = x
; then
2095 TCLCONFIG
="# no Tcl configs found"
2096 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
2099 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
2100 echo "$ac_t""found $TCLCONFIG" 1>&6
2133 # Ok, lets find the tk configuration
2134 # First, look for one uninstalled.
2135 # the alternative search directory is invoked by --with-tkconfig
2138 if test x
"${no_tk}" = x
; then
2139 # we reset no_tk in case something fails here
2141 # Check whether --with-tkconfig or --without-tkconfig was given.
2142 if test "${with_tkconfig+set}" = set; then
2143 withval
="$with_tkconfig"
2144 with_tkconfig
=${withval}
2147 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
2148 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2153 # First check to see if --with-tkconfig was specified.
2154 if test x
"${with_tkconfig}" != x
; then
2155 if test -f "${with_tkconfig}/tkConfig.sh" ; then
2156 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
2158 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
2162 # then check for a private Tk library
2163 if test x
"${ac_cv_c_tkconfig}" = x
; then
2166 `ls -dr ../tk[4-9]* 2>/dev/null` \
2168 `ls -dr ../../tk[4-9]* 2>/dev/null` \
2170 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
2171 if test -f "$i/unix/tkConfig.sh" ; then
2172 ac_cv_c_tkconfig
=`(cd $i/unix; pwd)`
2177 # check in a few common install locations
2178 if test x
"${ac_cv_c_tkconfig}" = x
; then
2179 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
2180 if test -f "$i/tkConfig.sh" ; then
2181 ac_cv_c_tkconfig
=`(cd $i; pwd)`
2186 # check in a few other private locations
2187 if test x
"${ac_cv_c_tkconfig}" = x
; then
2190 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
2191 if test -f "$i/unix/tkConfig.sh" ; then
2192 ac_cv_c_tkconfig
=`(cd $i/unix; pwd)`
2200 if test x
"${ac_cv_c_tkconfig}" = x
; then
2201 TKCONFIG
="# no Tk configs found"
2202 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
2205 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
2206 echo "$ac_t""found $TKCONFIG" 1>&6
2212 # If $no_tk is nonempty, then we can't do Tk, and there is no
2213 # point to doing Tcl.
2214 if test -z "${no_tk}"; then
2216 if test -f "$TKCONFIG" ; then
2233 # Ok, lets find the tcl source trees so we can use the headers
2234 # Warning: transition of version 9 to 10 will break this algorithm
2235 # because 10 sorts before 9. We also look for just tcl. We have to
2236 # be careful that we don't match stuff like tclX by accident.
2237 # the alternative search directory is involked by --with-tclinclude
2240 echo $ac_n "checking for Tcl private headers""... $ac_c" 1>&6
2241 # Check whether --with-tclinclude or --without-tclinclude was given.
2242 if test "${with_tclinclude+set}" = set; then
2243 withval
="$with_tclinclude"
2244 with_tclinclude
=${withval}
2247 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2251 # first check to see if --with-tclinclude was specified
2252 if test x
"${with_tclinclude}" != x
; then
2253 if test -f ${with_tclinclude}/tclInt.h
; then
2254 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
2255 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
2256 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
2258 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
2262 # next check if it came with Tcl configuration file
2263 if test x
"${ac_cv_c_tclconfig}" = x
; then
2264 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
2265 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
2269 # next check in private source directory
2271 # since ls returns lowest version numbers first, reverse its output
2272 if test x
"${ac_cv_c_tclh}" = x
; then
2275 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
2276 ${srcdir}/..
/..
/tcl \
2277 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
2278 ${srcdir}/..
/..
/..
/tcl \
2279 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
2280 if test -f $i/generic
/tclInt.h
; then
2281 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
2286 # finally check in a few common install locations
2288 # since ls returns lowest version numbers first, reverse its output
2289 if test x
"${ac_cv_c_tclh}" = x
; then
2291 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
2292 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
2293 /usr
/local
/src
/tcl \
2294 /usr
/local
/lib
/tcl \
2295 ${prefix}/include
; do
2296 if test -f $i/generic
/tclInt.h
; then
2297 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
2302 # see if one is installed
2303 if test x
"${ac_cv_c_tclh}" = x
; then
2304 ac_safe
=`echo "tclInt.h" | tr './\055' '___'`
2305 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
2306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 cat > conftest.
$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2314 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2315 { (eval echo configure
:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2316 ac_err
=`grep -v '^ *+' conftest.out`
2317 if test -z "$ac_err"; then
2319 eval "ac_cv_header_$ac_safe=yes"
2323 eval "ac_cv_header_$ac_safe=no"
2327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2328 echo "$ac_t""yes" 1>&6
2329 ac_cv_c_tclh
=installed
2331 echo "$ac_t""no" 1>&6
2339 if test x
"${ac_cv_c_tclh}" = x
; then
2340 TCLHDIR
="# no Tcl private headers found"
2341 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
2343 if test x
"${ac_cv_c_tclh}" != x
; then
2345 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
2346 echo "$ac_t""is installed" 1>&6
2349 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
2350 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
2351 TCLHDIR
="-I${ac_cv_c_tclh}"
2359 # Ok, lets find the tk source trees so we can use the headers
2360 # If the directory (presumably symlink) named "tk" exists, use that one
2361 # in preference to any others. Same logic is used when choosing library
2362 # and again with Tcl. The search order is the best place to look first, then in
2363 # decreasing significance. The loop breaks if the trigger file is found.
2364 # Note the gross little conversion here of srcdir by cd'ing to the found
2365 # directory. This converts the path from a relative to an absolute, so
2366 # recursive cache variables for the path will work right. We check all
2367 # the possible paths in one loop rather than many seperate loops to speed
2369 # the alternative search directory is involked by --with-tkinclude
2372 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
2373 # Check whether --with-tkinclude or --without-tkinclude was given.
2374 if test "${with_tkinclude+set}" = set; then
2375 withval
="$with_tkinclude"
2376 with_tkinclude
=${withval}
2379 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2383 # first check to see if --with-tkinclude was specified
2384 if test x
"${with_tkinclude}" != x
; then
2385 if test -f ${with_tkinclude}/tk.h
; then
2386 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
2387 elif test -f ${with_tkinclude}/generic
/tk.h
; then
2388 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
2390 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
2394 # next check if it came with Tk configuration file
2395 if test x
"${ac_cv_c_tkconfig}" = x
; then
2396 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
2397 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
2401 # next check in private source directory
2403 # since ls returns lowest version numbers first, reverse its output
2404 if test x
"${ac_cv_c_tkh}" = x
; then
2407 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
2408 ${srcdir}/..
/..
/tk \
2409 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
2410 ${srcdir}/..
/..
/..
/tk \
2411 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
2412 if test -f $i/generic
/tk.h
; then
2413 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
2418 # finally check in a few common install locations
2420 # since ls returns lowest version numbers first, reverse its output
2421 if test x
"${ac_cv_c_tkh}" = x
; then
2423 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
2424 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
2427 ${prefix}/include
; do
2428 if test -f $i/generic
/tk.h
; then
2429 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
2434 # see if one is installed
2435 if test x
"${ac_cv_c_tkh}" = x
; then
2436 ac_safe
=`echo "tk.h" | tr './\055' '___'`
2437 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
2438 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 cat > conftest.
$ac_ext <<EOF
2442 #line 2443 "configure"
2443 #include "confdefs.h"
2446 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2447 { (eval echo configure
:2448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2448 ac_err
=`grep -v '^ *+' conftest.out`
2449 if test -z "$ac_err"; then
2451 eval "ac_cv_header_$ac_safe=yes"
2455 eval "ac_cv_header_$ac_safe=no"
2459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2460 echo "$ac_t""yes" 1>&6
2461 ac_cv_c_tkh
=installed
2463 echo "$ac_t""no" 1>&6
2471 if test x
"${ac_cv_c_tkh}" != x
; then
2473 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
2474 echo "$ac_t""is installed" 1>&6
2477 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
2478 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
2479 TKHDIR
="-I${ac_cv_c_tkh}"
2482 TKHDIR
="# no Tk directory found"
2483 echo "configure: warning: Can't find Tk private headers" 1>&2
2490 # Include some libraries that Tcl and Tk want.
2491 LIBS
="$LIBS $TK_LIBS"
2495 TCL_LIBS
='$(TCL) $(TK) $(X11_LDFLAGS) $(X11_LIBS)'
2496 ENABLE_CLIBS
="${ENABLE_CLIBS} ${TCL_LIBS}"
2497 ENABLE_OBS
="${ENABLE_OBS} gdbtk.o"
2505 # end-sanitize-gdbtk
2511 # target_subdir is used by the testsuite to find the target libraries.
2513 if test "${host}" != "${target}"; then
2514 target_subdir
="${target_alias}/"
2518 configdirs
="doc testsuite"
2521 # Map host cpu into the config cpu subdirectory name.
2522 # The default is $host_cpu.
2524 case "${host_cpu}" in
2526 c
[12]) gdb_host_cpu
=convex
;;
2527 hppa
*) gdb_host_cpu
=pa
;;
2528 i
[3456]86) gdb_host_cpu
=i386
;;
2529 m68
*) gdb_host_cpu
=m68k
;;
2530 m88
*) gdb_host_cpu
=m88k
;;
2531 np1
) gdb_host_cpu
=gould
;;
2532 pyramid
) gdb_host_cpu
=pyr
;;
2533 powerpc
*) gdb_host_cpu
=powerpc
;;
2534 sparc64
) gdb_host_cpu
=sparc
;;
2535 *) gdb_host_cpu
=$host_cpu ;;
2539 # map host info into gdb names.
2543 a29k-
*-*) gdb_host
=ultra3
;;
2545 alpha-
*-osf1*) gdb_host
=alpha-osf1
;;
2546 alpha-
*-osf2*) gdb_host
=alpha-osf2
;;
2547 alpha-
*-osf[3456789]*) gdb_host
=alpha-osf3
;;
2548 alpha-
*-linux*) gdb_host
=alpha-linux
;;
2550 arm-
*-*) gdb_host
=arm
;;
2552 c
[12]-*-*) gdb_host
=convex
;;
2554 hppa
*-*-bsd*) gdb_host
=hppabsd
;;
2555 hppa
*-*-hiux*) gdb_host
=hppahpux
;;
2556 hppa
*-*-hpux*) gdb_host
=hppahpux
;;
2557 hppa
*-*-osf*) gdb_host
=hppaosf
;;
2559 i
[3456]86-ncr-*) gdb_host
=ncr3000
;;
2560 i
[3456]86-sequent-bsd*) gdb_host
=symmetry
;; # dynix
2561 i
[3456]86-sequent-sysv4*) gdb_host
=ptx4
;;
2562 i
[3456]86-sequent-sysv*) gdb_host
=ptx ;;
2563 i
[3456]86-*-aix*) gdb_host
=i386aix
;;
2564 i
[3456]86-*-bsd*) gdb_host
=i386bsd
;;
2565 i
[3456]86-*-dgux*) gdb_host
=i386dgux
;;
2566 i
[3456]86-*-freebsd*) gdb_host
=fbsd
;;
2567 i
[3456]86-*-netbsd*) gdb_host
=nbsd
;;
2568 i
[3456]86-*-go32*) gdb_host
=go32
;;
2569 i
[3456]86-*-linux*) gdb_host
=linux
;;
2570 i
[3456]86-*-lynxos*) gdb_host
=i386lynx
;;
2571 i
[3456]86-*-mach3*) gdb_host
=i386m3
;;
2572 i
[3456]86-*-mach*) gdb_host
=i386mach
;;
2573 i
[3456]86-*-gnu*) gdb_host
=i386gnu
;;
2574 i
[3456]86-*-osf1mk*) gdb_host
=osf1mk
;;
2575 i
[3456]86-*-sco3.2v5
*) gdb_host
=i386sco5
;;
2576 i
[3456]86-*-sco3.2v4
*) gdb_host
=i386sco4
;;
2577 i
[3456]86-*-sco*) gdb_host
=i386sco
;;
2578 i
[3456]86-*-solaris*) gdb_host
=i386sol2
;;
2579 i
[3456]86-*-sunos*) gdb_host
=sun386
;;
2580 i
[3456]86-*-sysv3.2
*) gdb_host
=i386v32
;;
2581 i
[3456]86-*-sysv32*) gdb_host
=i386v32
;;
2582 i
[3456]86-*-sysv4*) gdb_host
=i386v4
;;
2583 i
[3456]86-*-unixware) gdb_host
=i386v4
;;
2584 i
[3456]86-*-sysv*) gdb_host
=i386v
;;
2585 i
[3456]86-*-isc*) gdb_host
=i386v32
;;
2586 i
[3456]86-*-os9k) gdb_host
=i386os9k
;;
2587 i
[3456]86-*-cygwin32) gdb_host
=cygwin32
;;
2588 m680
[01]0-sun-sunos3*) gdb_host
=sun2os3
;;
2589 m680
[01]0-sun-sunos4*) gdb_host
=sun2os4
;;
2590 m68030-sony-
*) gdb_host
=news1000
;;
2592 m68
*-altos-*) gdb_host
=altos
;;
2593 m68
*-apollo*-sysv*) gdb_host
=apollo68v
;;
2594 m68
*-apollo*-bsd*) gdb_host
=apollo68b
;;
2595 m68
*-att-*) gdb_host
=3b1
;;
2596 m68
*-bull*-sysv*) gdb_host
=dpx2
;;
2597 m68
*-hp-bsd*) gdb_host
=hp300bsd
;;
2598 m68
*-hp-hpux*) gdb_host
=hp300hpux
;;
2599 m68
*-isi-*) gdb_host
=isi
;;
2600 m68
*-*-lynxos*) gdb_host
=m68klynx
;;
2601 m68
*-*-netbsd*) gdb_host
=nbsd
;;
2602 m68
*-*-sysv4*) gdb_host
=m68kv4
;;
2603 m68
*-motorola-*) gdb_host
=delta68
;;
2604 m68
*-sony-*) gdb_host
=news
;;
2605 m68
*-sun-sunos3*) gdb_host
=sun3os3
;;
2606 m68
*-sun-sunos4*) gdb_host
=sun3os4
;;
2607 m68
*-sun-*) gdb_host
=sun3os4
;;
2609 m88
*-harris-cxux*) gdb_host
=cxux
;;
2610 m88
*-motorola-sysv4*) gdb_host
=delta88v4
;;
2611 m88
*-motorola-sysv*) gdb_host
=delta88
;;
2612 m88
*-*-mach3*) gdb_host
=mach3
;;
2613 m88
*-*-*) gdb_host
=m88k
;;
2615 mips-dec-mach3
*) gdb_host
=mach3
;;
2616 mips-dec-
*) gdb_host
=decstation
;;
2617 mips-little-
*) gdb_host
=littlemips
;;
2618 mips-sgi-irix3
*) gdb_host
=irix3
;;
2619 mips-sgi-irix4
*) gdb_host
=irix4
;;
2620 mips-sgi-irix5
*) gdb_host
=irix5
;;
2621 mips-sony-
*) gdb_host
=news-mips
;;
2622 mips-
*-mach3*) gdb_host
=mach3
;;
2623 mips-
*-sysv4*) gdb_host
=mipsv4
;;
2624 mips-
*-sysv*) gdb_host
=riscos
;;
2625 mips-
*-riscos*) gdb_host
=riscos
;;
2627 none-
*-*) gdb_host
=none
;;
2629 np1-
*-*) gdb_host
=np1
;;
2631 ns32k-
*-mach3*) gdb_host
=mach3
;;
2632 ns32k-
*-netbsd*) gdb_host
=nbsd
;;
2633 ns32k-umax-
*) gdb_host
=umax
;;
2634 ns32k-utek-sysv
*) gdb_host
=merlin
;;
2636 powerpc-
*-aix*) gdb_host
=aix
;;
2637 powerpcle-
*-cygwin32) gdb_host
=cygwin32
;;
2638 powerpcle-
*-solaris*) gdb_host
=solaris
;;
2639 powerpc-
*-linux*) gdb_host
=linux
;;
2640 pn-
*-*) gdb_host
=pn
;;
2642 pyramid-
*-*) gdb_host
=pyramid
;;
2644 romp-
*-*) gdb_host
=rtbsd
;;
2646 rs6000-
*-lynxos*) gdb_host
=rs6000lynx
;;
2647 rs6000-
*-aix4*) gdb_host
=aix4
;;
2648 rs6000-
*-*) gdb_host
=rs6000
;;
2650 sparc-
*-lynxos*) gdb_host
=sparclynx
;;
2651 sparc-
*-netbsd*) gdb_host
=nbsd
;;
2652 sparc-
*-solaris2*) gdb_host
=sun4sol2
;;
2653 sparc-
*-sunos4*) gdb_host
=sun4os4
;;
2654 sparc-
*-sunos5*) gdb_host
=sun4sol2
;;
2655 sparc-
*-*) gdb_host
=sun4os4
;;
2656 sparc64-
*-*) gdb_host
=sun4sol2
;;
2658 tahoe-
*-*) gdb_host
=tahoe
;;
2660 vax-
*-bsd*) gdb_host
=vaxbsd
;;
2661 vax-
*-ultrix2*) gdb_host
=vaxult2
;;
2662 vax-
*-ultrix*) gdb_host
=vaxult
;;
2664 w65-
*-*) gdb_host
=w65
;;
2669 # Map target cpu into the config cpu subdirectory name.
2670 # The default is $target_cpu.
2672 case "${target_cpu}" in
2674 alpha
) gdb_target_cpu
=alpha
;;
2675 c
[12]) gdb_target_cpu
=convex
;;
2676 hppa
*) gdb_target_cpu
=pa
;;
2677 i
[3456]86) gdb_target_cpu
=i386
;;
2678 m68
*) gdb_target_cpu
=m68k
;;
2679 m88
*) gdb_target_cpu
=m88k
;;
2680 mips
*) gdb_target_cpu
=mips
;;
2681 np1
) gdb_target_cpu
=gould
;;
2682 powerpc
*) gdb_target_cpu
=powerpc
;;
2683 pn
) gdb_target_cpu
=gould
;;
2684 pyramid
) gdb_target_cpu
=pyr
;;
2685 sparc
*) gdb_target_cpu
=sparc
;;
2686 *) gdb_target_cpu
=$target_cpu ;;
2690 # map target info into gdb names.
2694 a29k-
*-aout*) gdb_target
=a29k
;;
2695 a29k-
*-coff*) gdb_target
=a29k
;;
2696 a29k-
*-elf*) gdb_target
=a29k
;;
2697 a29k-
*-ebmon*) gdb_target
=a29k
;;
2698 a29k-
*-kern*) gdb_target
=a29k-kern
;;
2699 a29k-
*-none*) gdb_target
=a29k
;;
2700 a29k-
*-sym1*) gdb_target
=ultra3
;;
2701 a29k-
*-udi*) gdb_target
=a29k-udi
;;
2702 a29k-
*-vxworks*) gdb_target
=vx29k
;;
2704 alpha-
*-osf*) gdb_target
=alpha-osf1
;;
2705 alpha-
*-linux*) gdb_target
=alpha-linux
;;
2707 # start-sanitize-arc
2708 arc-
*-*) gdb_target
=arc
;;
2711 arm-
*-*) gdb_target
=arm
;;
2713 c1-
*-*) gdb_target
=convex
;;
2714 c2-
*-*) gdb_target
=convex
;;
2716 h8300-
*-*) gdb_target
=h8300
;;
2717 h8500-
*-*) gdb_target
=h8500
;;
2719 sh-
*-*) gdb_target
=sh
;;
2721 hppa
*-*-bsd*) gdb_target
=hppabsd
;;
2722 hppa
*-*-pro*) gdb_target
=hppapro
;;
2723 hppa
*-*-hpux*) gdb_target
=hppahpux
;;
2724 hppa
*-*-hiux*) gdb_target
=hppahpux
;;
2725 hppa
*-*-osf*) gdb_target
=hppaosf
;;
2727 i
[3456]86-sequent-bsd*) gdb_target
=symmetry
;;
2728 i
[3456]86-sequent-sysv4*) gdb_target
=ptx4
;;
2729 i
[3456]86-sequent-sysv*) gdb_target
=ptx ;;
2730 i
[3456]86-ncr-*) gdb_target
=ncr3000
;;
2731 i
[3456]86-*-aout*) gdb_target
=i386aout
;;
2732 i
[3456]86-*-coff*) gdb_target
=i386v
;;
2733 i
[3456]86-*-elf*) gdb_target
=i386v
;;
2734 i
[3456]86-*-aix*) gdb_target
=i386aix
;;
2735 i
[3456]86-*-bsd*) gdb_target
=i386bsd
;;
2736 i
[3456]86-*-freebsd*) gdb_target
=fbsd
;;
2737 i
[3456]86-*-netbsd*) gdb_target
=nbsd
;;
2738 i
[3456]86-*-os9k) gdb_target
=i386os9k
;;
2739 i
[3456]86-*-go32*) gdb_target
=i386aout
;;
2740 i
[3456]86-*-lynxos*) gdb_target
=i386lynx
2741 configdirs
="${configdirs} gdbserver" ;;
2742 i
[3456]86-*-solaris*) gdb_target
=i386sol2
;;
2743 i
[3456]86-*-sunos*) gdb_target
=sun386
;;
2744 i
[3456]86-*-sysv4*) gdb_target
=i386v4
;;
2745 i
[3456]86-*-sco*) gdb_target
=i386v
;;
2746 i
[3456]86-*-sysv*) gdb_target
=i386v
;;
2747 i
[3456]86-*-linux*) gdb_target
=linux
2748 configdirs
="${configdirs} gdbserver" ;;
2749 i
[3456]86-*-isc*) gdb_target
=i386v
;;
2750 i
[3456]86-*-mach3*) gdb_target
=i386m3
;;
2751 i
[3456]86-*-mach*) gdb_target
=i386mach
;;
2752 i
[3456]86-*-gnu*) gdb_target
=i386gnu
;;
2753 i
[3456]86-*-netware*) gdb_target
=i386nw
2754 configdirs
="${configdirs} nlm" ;;
2755 i
[3456]86-*-osf1mk*) gdb_target
=i386mk
;;
2756 i
[3456]86-*-cygwin32) gdb_target
=cygwin32
;;
2757 i960-
*-bout*) gdb_target
=vxworks960
;;
2758 i960-nindy-coff
*) gdb_target
=nindy960
;;
2759 i960-
*-coff*) gdb_target
=mon960
;;
2760 i960-nindy-elf
*) gdb_target
=nindy960
;;
2761 i960-
*-elf*) gdb_target
=mon960
;;
2763 i960-
*-nindy*) gdb_target
=nindy960
;;
2764 i960-
*-vxworks*) gdb_target
=vxworks960
;;
2766 m68000-
*-sunos3*) gdb_target
=sun2os3
;;
2767 m68000-
*-sunos4*) gdb_target
=sun2os4
;;
2769 m68
*-apollo*-bsd*) gdb_target
=apollo68b
;;
2770 m68
*-bull-sysv*) gdb_target
=dpx2
;;
2771 m68
*-hp-bsd*) gdb_target
=hp300bsd
;;
2772 m68
*-hp-hpux*) gdb_target
=hp300hpux
;;
2773 m68
*-altos-*) gdb_target
=altos
;;
2774 m68
*-att-*) gdb_target
=3b1
;;
2775 m68
*-cisco*-*) gdb_target
=cisco
;;
2776 m68
*-ericsson-*) gdb_target
=es1800
;;
2777 m68
*-isi-*) gdb_target
=isi
;;
2778 m68
*-motorola-*) gdb_target
=delta68
;;
2779 m68
*-netx-*) gdb_target
=vxworks68
;;
2780 m68
*-sony-*) gdb_target
=news
;;
2781 m68
*-tandem-*) gdb_target
=st2000
;;
2782 m68
*-rom68k-*) gdb_target
=monitor
;;
2783 m68
*-*bug-
*) gdb_target
=monitor
;;
2784 m68
*-monitor-*) gdb_target
=monitor
;;
2785 m68
*-est-*) gdb_target
=monitor
;;
2786 m68
*-*-aout*) gdb_target
=monitor
;;
2787 m68
*-*-coff*) gdb_target
=monitor
;;
2788 m68
*-*-elf*) gdb_target
=monitor
;;
2789 m68
*-*-lynxos*) gdb_target
=m68klynx
2790 configdirs
="${configdirs} gdbserver" ;;
2791 m68
*-*-netbsd*) gdb_target
=nbsd
;;
2792 m68
*-*-os68k*) gdb_target
=os68k
;;
2793 m68
*-*-sunos3*) gdb_target
=sun3os3
;;
2794 m68
*-*-sunos4*) gdb_target
=sun3os4
;;
2795 m68
*-*-sysv4*) gdb_target
=m68kv4
;;
2796 m68
*-*-vxworks*) gdb_target
=vxworks68
;;
2798 m88
*-harris-cxux*) gdb_target
=cxux
;;
2799 m88
*-motorola-sysv4*) gdb_target
=delta88v4
;;
2800 m88
*-*-mach3*) gdb_target
=mach3
;;
2801 m88
*-motorola-*) gdb_target
=delta88
;;
2802 m88
*-*-*) gdb_target
=m88k
;;
2804 mips64
*-big-*) gdb_target
=bigmips64
;;
2805 mips
*-big-*) gdb_target
=bigmips
;;
2806 mips
*-dec-mach3*) gdb_target
=mach3
;;
2807 mips
*-dec-*) gdb_target
=decstation
;;
2808 mips64
*el-
*-ecoff*) gdb_target
=embedl64
;;
2809 mips64
*-*-ecoff*) gdb_target
=embed64
;;
2810 mips64
*vr4300
*el-
*-elf*) gdb_target
=vr4300el
;;
2811 mips64
*vr4300
*-*-elf*) gdb_target
=vr4300
;;
2812 mips64
*vr4100
*el-
*-elf*) gdb_target
=vr4300el
;;
2813 mips64
*vr4100
*-*-elf*) gdb_target
=vr4300
;;
2814 mips64
*el-
*-elf*) gdb_target
=embedl64
;;
2815 mips64
*-*-elf*) gdb_target
=embed64
;;
2816 mips
*el-
*-ecoff*) gdb_target
=embedl
;;
2817 mips
*-*-ecoff*) gdb_target
=embed
;;
2819 mips
*-*-magic*) gdb_target
=embed
;;
2821 mips
*el-
*-elf*) gdb_target
=embedl
;;
2822 mips
*-*-elf*) gdb_target
=embed
;;
2823 mips
*-little-*) gdb_target
=littlemips
;;
2824 mips
*-sgi-irix5*) gdb_target
=irix5
;;
2825 mips
*-sgi-*) gdb_target
=irix3
;;
2826 mips
*-sony-*) gdb_target
=bigmips
;;
2827 mips
*-*-mach3*) gdb_target
=mach3
;;
2828 mips
*-*-sysv4*) gdb_target
=mipsv4
;;
2829 mips
*-*-sysv*) gdb_target
=bigmips
;;
2830 mips
*-*-riscos*) gdb_target
=bigmips
;;
2831 mips
*-*-vxworks*) gdb_target
=vxmips
;;
2833 none-
*-*) gdb_target
=none
;;
2835 np1-
*-*) gdb_target
=np1
;;
2837 ns32k-
*-mach3*) gdb_target
=mach3
;;
2838 ns32k-
*-netbsd*) gdb_target
=nbsd
;;
2839 ns32k-utek-sysv
*) gdb_target
=merlin
;;
2840 ns32k-utek-
*) gdb_target
=umax
;;
2842 pn-
*-*) gdb_target
=pn
;;
2843 powerpc-
*-macos*) gdb_target
=macos
;;
2844 powerpc-
*-netware*) gdb_target
=ppc-nw
2845 configdirs
="${configdirs} nlm" ;;
2847 powerpc-
*-aix4*) gdb_target
=aix4
;;
2848 powerpc-
*-aix*) gdb_target
=aix
;;
2849 powerpcle-
*-cygwin32) gdb_target
=cygwin32
;;
2850 powerpcle-
*-solaris*) gdb_target
=solaris
;;
2851 powerpc-
*-eabi* | powerpc-
*-linux* | powerpc-
*-sysv* | powerpc-
*-elf*)
2852 if test x
"$powerpc_sim" = x
"yes"; then
2857 powerpcle-
*-eabi* | powerpcle-
*-sysv* | powerpcle-
*-elf*)
2858 if test x
"$powerpc_sim" = x
"yes"; then
2859 gdb_target
=ppcle-sim
2861 gdb_target
=ppcle-eabi
2864 pyramid-
*-*) gdb_target
=pyramid
;;
2866 rs6000-
*-lynxos*) gdb_target
=rs6000lynx
;;
2867 rs6000-
*-aix4*) gdb_target
=aix4
;;
2868 rs6000-
*-*) gdb_target
=rs6000
;;
2870 sparc-
*-aout*) gdb_target
=sparc-em
;;
2871 sparc-
*-coff*) gdb_target
=sparc-em
;;
2872 sparc-
*-elf*) gdb_target
=sparc-em
;;
2873 sparc-
*-lynxos*) gdb_target
=sparclynx
2874 configdirs
="${configdirs} gdbserver" ;;
2875 sparc-
*-netbsd*) gdb_target
=nbsd
;;
2876 sparc-
*-solaris2*) gdb_target
=sun4sol2
;;
2877 sparc-
*-sunos4*) gdb_target
=sun4os4
;;
2878 sparc-
*-sunos5*) gdb_target
=sun4sol2
;;
2879 sparc-
*-vxworks*) gdb_target
=vxsparc
;;
2880 sparc-
*-*) gdb_target
=sun4os4
;;
2881 sparclet-
*-*) gdb_target
=sparclet
;;
2882 sparclite
*-*-*) gdb_target
=sparclite
;;
2883 # It's not clear what the right solution for "v8plus" systems is yet.
2884 # For now, stick with sparc-sun-solaris2 since that's what config.guess
2885 # should return. Work is still needed to get gdb to print the 64 bit
2886 # regs (some of which are usable in v8plus) so sp64sol.mt hasn't been
2887 # deleted though presumably it should be eventually.
2888 #sparc64-*-solaris2*) gdb_target=sp64sol2 ;;
2889 sparc64-
*-*) gdb_target
=sp64
;;
2891 tahoe-
*-*) gdb_target
=tahoe
;;
2893 vax-
*-*) gdb_target
=vax
;;
2895 w65-
*-*) gdb_target
=w65
;;
2897 z8k-
*-coff*) gdb_target
=z8k
;;
2903 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
2904 if test ! -f ${host_makefile_frag}; then
2905 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
2907 frags
="$frags $host_makefile_frag"
2909 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
2910 if test ! -f ${target_makefile_frag}; then
2911 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
2913 frags
="$frags $target_makefile_frag"
2920 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2921 ' ${host_makefile_frag}`
2923 targetfile
=`sed -n '
2924 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2925 ' ${target_makefile_frag}`
2927 # these really aren't orthogonal true/false values of the same condition,
2928 # but shells are slow enough that I like to reuse the test conditions
2930 if test "${target}" = "${host}"; then
2931 nativefile
=`sed -n '
2932 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2933 ' ${host_makefile_frag}`
2935 # GDBserver is only useful in a "native" enviroment
2936 configdirs
=`echo $configdirs | sed 's/gdbserver//'`
2940 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
2941 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
2942 # corresponding links. But we have to remove the xm.h files and tm.h
2943 # files anyway, e.g. when switching from "configure host" to
2949 if test "${hostfile}" != ""; then
2950 files
="${files} config/${gdb_host_cpu}/${hostfile}"
2951 links
="${links} xm.h"
2954 if test "${targetfile}" != ""; then
2955 files
="${files} config/${gdb_target_cpu}/${targetfile}"
2956 links
="${links} tm.h"
2959 if test "${nativefile}" != ""; then
2960 files
="${files} config/${gdb_host_cpu}/${nativefile}"
2961 links
="${links} nm.h"
2963 # A cross-only configuration.
2964 files
="${files} config/nm-empty.h"
2965 links
="${links} nm.h"
2967 # start-sanitize-gdbtk
2969 # Make it possible to use the GUI without doing a full install
2970 if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl
; then
2971 files
="${files} gdbtk.tcl"
2972 links
="${links} gdbtk.tcl"
2974 # end-sanitize-gdbtk
2978 subdirs
="$configdirs"
2981 cat > confcache
<<\EOF
2982 # This file is a shell script that caches the results of configure
2983 # tests run on this system so they can be shared between configure
2984 # scripts and configure runs. It is not useful on other systems.
2985 # If it contains results you don't want to keep, you may remove or edit it.
2987 # By default, configure uses ./config.cache as the cache file,
2988 # creating it if it does not exist already. You can give configure
2989 # the --cache-file=FILE option to use a different cache file; that is
2990 # what configure does when it calls configure scripts in
2991 # subdirectories, so they share the cache.
2992 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2993 # config.status only pays attention to the cache file if you give it the
2994 # --recheck option to rerun configure.
2997 # Ultrix sh set writes to stderr and can't be redirected directly,
2998 # and sets the high bit in the cache file unless we assign to the vars.
3000 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
3002 if cmp -s $cache_file confcache
; then
3005 if test -w $cache_file; then
3006 echo "updating cache $cache_file"
3007 cat confcache
> $cache_file
3009 echo "not updating unwritable cache $cache_file"
3014 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3016 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3017 # Let make expand exec_prefix.
3018 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3020 # Any assignment to VPATH causes Sun make to only execute
3021 # the first set of double-colon rules, so remove it if not needed.
3022 # If there is a colon in the path, we need to keep it.
3023 if test "x$srcdir" = x.
; then
3024 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3027 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3029 DEFS
=-DHAVE_CONFIG_H
3031 # Without the "./", some shells look in PATH for config.status.
3032 : ${CONFIG_STATUS=./config.status}
3034 echo creating
$CONFIG_STATUS
3035 rm -f $CONFIG_STATUS
3036 cat > $CONFIG_STATUS <<EOF
3038 # Generated automatically by configure.
3039 # Run this file to recreate the current configuration.
3040 # This directory was configured as follows,
3041 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3043 # $0 $ac_configure_args
3045 # Compiler output produced by configure, useful for debugging
3046 # configure, is in ./config.log if it exists.
3048 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3051 case "\$ac_option" in
3052 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3053 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3054 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3055 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3056 echo "$CONFIG_STATUS generated by autoconf version 2.10"
3058 -help | --help | --hel | --he | --h)
3059 echo "\$ac_cs_usage"; exit 0 ;;
3060 *) echo "\$ac_cs_usage"; exit 1 ;;
3064 ac_given_srcdir=$srcdir
3065 ac_given_INSTALL="$INSTALL"
3067 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3069 cat >> $CONFIG_STATUS <<EOF
3071 # Protect against being on the right side of a sed subst in config.status.
3072 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3073 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3076 s%@CFLAGS@%$CFLAGS%g
3077 s%@CPPFLAGS@%$CPPFLAGS%g
3078 s%@CXXFLAGS@%$CXXFLAGS%g
3080 s%@LDFLAGS@%$LDFLAGS%g
3082 s%@exec_prefix@%$exec_prefix%g
3083 s%@prefix@%$prefix%g
3084 s%@program_transform_name@%$program_transform_name%g
3085 s%@bindir@%$bindir%g
3086 s%@sbindir@%$sbindir%g
3087 s%@libexecdir@%$libexecdir%g
3088 s%@datadir@%$datadir%g
3089 s%@sysconfdir@%$sysconfdir%g
3090 s%@sharedstatedir@%$sharedstatedir%g
3091 s%@localstatedir@%$localstatedir%g
3092 s%@libdir@%$libdir%g
3093 s%@includedir@%$includedir%g
3094 s%@oldincludedir@%$oldincludedir%g
3095 s%@infodir@%$infodir%g
3096 s%@mandir@%$mandir%g
3099 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3100 s%@INSTALL_DATA@%$INSTALL_DATA%g
3102 s%@host_alias@%$host_alias%g
3103 s%@host_cpu@%$host_cpu%g
3104 s%@host_vendor@%$host_vendor%g
3105 s%@host_os@%$host_os%g
3107 s%@build_alias@%$build_alias%g
3108 s%@build_cpu@%$build_cpu%g
3109 s%@build_vendor@%$build_vendor%g
3110 s%@build_os@%$build_os%g
3112 s%@RANLIB@%$RANLIB%g
3115 s%@target@%$target%g
3116 s%@target_alias@%$target_alias%g
3117 s%@target_cpu@%$target_cpu%g
3118 s%@target_vendor@%$target_vendor%g
3119 s%@target_os@%$target_os%g
3120 s%@THREAD_DB_OBS@%$THREAD_DB_OBS%g
3121 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
3122 s%@TCL_VERSION@%$TCL_VERSION%g
3123 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
3124 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
3125 s%@TCL_CC@%$TCL_CC%g
3126 s%@TCL_DEFS@%$TCL_DEFS%g
3127 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
3128 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
3129 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
3130 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
3131 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
3132 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
3133 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
3134 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
3135 s%@TCL_RANLIB@%$TCL_RANLIB%g
3136 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
3137 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
3138 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
3139 s%@TK_VERSION@%$TK_VERSION%g
3140 s%@TK_DEFS@%$TK_DEFS%g
3141 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
3142 s%@TK_XLIBSW@%$TK_XLIBSW%g
3143 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
3144 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
3145 s%@TCLHDIR@%$TCLHDIR%g
3146 s%@TKHDIR@%$TKHDIR%g
3147 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
3148 s%@X_CFLAGS@%$X_CFLAGS%g
3149 s%@X_LDFLAGS@%$X_LDFLAGS%g
3150 s%@X_LIBS@%$X_LIBS%g
3151 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
3152 s%@ENABLE_CLIBS@%$ENABLE_CLIBS%g
3153 s%@ENABLE_OBS@%$ENABLE_OBS%g
3154 s%@target_subdir@%$target_subdir%g
3155 /@host_makefile_frag@/r $host_makefile_frag
3156 s%@host_makefile_frag@%%g
3157 /@target_makefile_frag@/r $target_makefile_frag
3158 s%@target_makefile_frag@%%g
3160 s%@subdirs@%$subdirs%g
3164 cat >> $CONFIG_STATUS <<EOF
3166 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3168 cat >> $CONFIG_STATUS <<\EOF
3169 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3170 # Support "outfile[:infile]", defaulting infile="outfile.in".
3172 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
3173 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3174 *) ac_file_in
="${ac_file}.in" ;;
3177 # Adjust relative srcdir, etc. for subdirectories.
3179 # Remove last slash and all that follows it. Not all systems have dirname.
3180 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3181 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3182 # The file is in a subdirectory.
3183 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3184 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3185 # A "../" for each directory in $ac_dir_suffix.
3186 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3188 ac_dir_suffix
= ac_dots
=
3191 case "$ac_given_srcdir" in
3193 if test -z "$ac_dots"; then top_srcdir
=.
3194 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3195 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3197 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3198 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3201 case "$ac_given_INSTALL" in
3202 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3203 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3205 echo creating
"$ac_file"
3207 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3209 *Makefile
*) ac_comsub
="1i\\
3210 # $configure_input" ;;
3214 s%@configure_input@%$configure_input%g
3215 s%@srcdir@%$srcdir%g
3216 s%@top_srcdir@%$top_srcdir%g
3217 s%@INSTALL@%$INSTALL%g
3218 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
3222 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3223 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3225 # ac_d sets the value in "#define NAME VALUE" lines.
3226 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3227 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3230 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3231 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3232 ac_uB
='\([ ]\)%\1#\2define\3'
3235 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3236 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3237 ac_eB
='$%\1#\2define\3'
3241 CONFIG_HEADERS
=${CONFIG_HEADERS-"config.h:config.in"}
3242 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3243 # Support "outfile[:infile]", defaulting infile="outfile.in".
3245 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
3246 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3247 *) ac_file_in
="${ac_file}.in" ;;
3250 echo creating
$ac_file
3252 rm -f conftest.frag conftest.
in conftest.out
3253 cp $ac_given_srcdir/$ac_file_in conftest.
in
3257 # Transform confdefs.h into a sed script conftest.vals that substitutes
3258 # the proper values into config.h.in to produce config.h. And first:
3259 # Protect against being on the right side of a sed subst in config.status.
3260 # Protect against being in an unquoted here document in config.status.
3262 cat > conftest.hdr
<<\EOF
3265 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3269 sed -n -f conftest.hdr confdefs.h > conftest.vals
3272 # This sed command replaces #undef with comments. This is necessary, for
3273 # example, in the case of _POSIX_SOURCE, which is predefined and required
3274 # on some systems where configure will not decide to define it.
3275 cat >> conftest.vals <<\EOF
3276 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3279 # Break up conftest.vals because some shells have a limit on
3280 # the size of here documents, and old seds have small limits too.
3281 # Maximum number of lines to put in a single here document.
3282 ac_max_here_lines=12
3287 ac_lines=`grep -c . conftest.vals
`
3288 # grep -c gives empty output for an empty file on some AIX systems.
3289 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3290 # Write a limited-size here document to conftest.frag.
3291 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3292 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3294 sed -f conftest.frag conftest.in > conftest.out
3296 mv conftest.out conftest.in
3298 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3300 mv conftest.tail conftest.vals
3304 cat >> $CONFIG_STATUS <<\EOF
3305 rm -f conftest.frag conftest.h
3306 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3307 cat conftest.in >> conftest.h
3309 if cmp -s $ac_file conftest.h 2>/dev/null; then
3310 echo "$ac_file is unchanged"
3313 # Remove last slash and all that follows it. Not all systems have dirname.
3314 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3315 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3316 # The file is in a subdirectory.
3317 test ! -d "$ac_dir" && mkdir "$ac_dir"
3320 mv conftest.h $ac_file
3326 cat >> $CONFIG_STATUS <<EOF
3331 cat >> $CONFIG_STATUS <<\EOF
3332 srcdir=$ac_given_srcdir
3333 while test -n "$ac_sources"; do
3334 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3335 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3337 echo "linking $srcdir/$ac_source to $ac_dest"
3339 if test ! -r $srcdir/$ac_source; then
3340 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3344 # Make relative symlinks.
3345 # Remove last slash and all that follows it. Not all systems have dirname.
3346 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
3347 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3348 # The dest file is in a subdirectory.
3349 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3350 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
3351 # A "../" for each directory in $ac_dest_dir_suffix.
3352 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
3354 ac_dest_dir_suffix= ac_dots=
3358 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3359 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3362 # Make a symlink if possible; otherwise try a hard link.
3363 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3364 ln $srcdir/$ac_source $ac_dest; then :
3366 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3370 cat >> $CONFIG_STATUS <<EOF
3372 gdb_host_cpu=$gdb_host_cpu
3373 gdb_target_cpu=$gdb_target_cpu
3374 nativefile=$nativefile
3377 cat >> $CONFIG_STATUS <<\EOF
3379 if test "${nativefile}" = ""; then
3380 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
3381 < Makefile > Makefile.tem
3382 mv -f Makefile.tem Makefile
3385 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
3386 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
3387 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
3388 mv -f Makefile.tmp Makefile
3394 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
3395 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3398 case x$CONFIG_HEADERS in
3399 xconfig.h:config.in)
3405 chmod +x $CONFIG_STATUS
3406 rm -fr confdefs* $ac_clean_files
3407 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3409 if test "$no_recursion" != yes; then
3411 # Remove --cache-file and --srcdir arguments so they do not pile up.
3412 ac_sub_configure_args=
3414 for ac_arg in $ac_configure_args; do
3415 if test -n "$ac_prev"; then
3420 -cache-file | --cache-file | --cache-fil | --cache-fi \
3421 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3422 ac_prev=cache_file ;;
3423 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3424 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3426 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3428 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3430 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3434 for ac_config_dir in $configdirs; do
3436 # Do not complain, so a configure script can configure whichever
3437 # parts of a large source tree are present.
3438 if test ! -d $srcdir/$ac_config_dir; then
3442 echo configuring in $ac_config_dir
3447 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3449 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3458 .) # No --srcdir option. We are building in place.
3459 ac_sub_srcdir=$srcdir ;;
3460 /*) # Absolute path.
3461 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3463 ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
3466 # Check for guested configure; otherwise get Cygnus style configure.
3467 if test -f $ac_sub_srcdir/configure; then
3468 ac_sub_configure=$ac_sub_srcdir/configure
3469 elif test -f $ac_sub_srcdir/configure.in; then
3470 ac_sub_configure=$ac_configure
3472 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3476 # The recursion is here.
3477 if test -n "$ac_sub_configure"; then
3479 # Make the cache file name correct relative to the subdirectory.
3480 # A "../" for each directory in /$ac_config_dir.
3481 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3482 case "$cache_file" in
3483 /*) ac_sub_cache_file=$cache_file ;;
3485 ac_sub_cache_file="$ac_dots$cache_file" ;;
3487 case "$ac_given_INSTALL" in
3488 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3489 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3492 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3493 # The eval makes quoting arguments work.
3494 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3497 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }