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-x use the X Window System"
25 --with-tclinclude directory where tcl private headers are"
27 --with-tcllib directory where the tcl library is"
29 --with-tkinclude directory where the tk private headers are"
31 --with-tklib directory where the tk library is"
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file
=.
/config.cache
46 program_transform_name
=s
,x
,x
,
54 bindir
='${exec_prefix}/bin'
55 sbindir
='${exec_prefix}/sbin'
56 libexecdir
='${exec_prefix}/libexec'
57 datadir
='${prefix}/share'
58 sysconfdir
='${prefix}/etc'
59 sharedstatedir
='${prefix}/com'
60 localstatedir
='${prefix}/var'
61 libdir
='${exec_prefix}/lib'
62 includedir
='${prefix}/include'
63 oldincludedir
='/usr/include'
64 infodir
='${prefix}/info'
65 mandir
='${prefix}/man'
67 # Initialize some other variables.
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
93 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
94 bindir
="$ac_optarg" ;;
96 -build |
--build |
--buil |
--bui |
--bu)
98 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
101 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
102 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
103 ac_prev
=cache_file
;;
104 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
105 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
106 cache_file
="$ac_optarg" ;;
108 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
110 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
112 datadir
="$ac_optarg" ;;
114 -disable-* |
--disable-*)
115 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* |
--enable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
137 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
138 |
--exec |
--exe |
--ex)
139 ac_prev
=exec_prefix
;;
140 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
141 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
142 |
--exec=* |
--exe=* |
--ex=*)
143 exec_prefix
="$ac_optarg" ;;
145 -gas |
--gas |
--ga |
--g)
146 # Obsolete; use --with-gas.
149 -help |
--help |
--hel |
--he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host |
--host |
--hos |
--ho)
206 -host=* |
--host=* |
--hos=* |
--ho=*)
209 -includedir |
--includedir |
--includedi |
--included |
--include \
210 |
--includ |
--inclu |
--incl |
--inc)
211 ac_prev
=includedir
;;
212 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
213 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
214 includedir
="$ac_optarg" ;;
216 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
218 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
219 infodir
="$ac_optarg" ;;
221 -libdir |
--libdir |
--libdi |
--libd)
223 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
224 libdir
="$ac_optarg" ;;
226 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
227 |
--libexe |
--libex |
--libe)
228 ac_prev
=libexecdir
;;
229 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
230 |
--libexe=* |
--libex=* |
--libe=*)
231 libexecdir
="$ac_optarg" ;;
233 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
234 |
--localstate |
--localstat |
--localsta |
--localst \
235 |
--locals |
--local |
--loca |
--loc |
--lo)
236 ac_prev
=localstatedir
;;
237 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
238 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
239 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
240 localstatedir
="$ac_optarg" ;;
242 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
244 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
245 mandir
="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
255 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
256 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
259 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
260 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
261 |
--oldin |
--oldi |
--old |
--ol |
--o)
262 ac_prev
=oldincludedir
;;
263 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
264 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
265 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
266 oldincludedir
="$ac_optarg" ;;
268 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
270 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
271 prefix
="$ac_optarg" ;;
273 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
274 |
--program-pre |
--program-pr |
--program-p)
275 ac_prev
=program_prefix
;;
276 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
277 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
278 program_prefix
="$ac_optarg" ;;
280 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
281 |
--program-suf |
--program-su |
--program-s)
282 ac_prev
=program_suffix
;;
283 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
284 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
285 program_suffix
="$ac_optarg" ;;
287 -program-transform-name |
--program-transform-name \
288 |
--program-transform-nam |
--program-transform-na \
289 |
--program-transform-n |
--program-transform- \
290 |
--program-transform |
--program-transfor \
291 |
--program-transfo |
--program-transf \
292 |
--program-trans |
--program-tran \
293 |
--progr-tra |
--program-tr |
--program-t)
294 ac_prev
=program_transform_name
;;
295 -program-transform-name=* |
--program-transform-name=* \
296 |
--program-transform-nam=* |
--program-transform-na=* \
297 |
--program-transform-n=* |
--program-transform-=* \
298 |
--program-transform=* |
--program-transfor=* \
299 |
--program-transfo=* |
--program-transf=* \
300 |
--program-trans=* |
--program-tran=* \
301 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
302 program_transform_name
="$ac_optarg" ;;
304 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
305 |
-silent |
--silent |
--silen |
--sile |
--sil)
308 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
310 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
312 sbindir
="$ac_optarg" ;;
314 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
315 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
316 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
318 ac_prev
=sharedstatedir
;;
319 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
320 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
321 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
323 sharedstatedir
="$ac_optarg" ;;
325 -site |
--site |
--sit)
327 -site=* |
--site=* |
--sit=*)
330 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
332 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
333 srcdir
="$ac_optarg" ;;
335 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
336 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
337 ac_prev
=sysconfdir
;;
338 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
339 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
340 sysconfdir
="$ac_optarg" ;;
342 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
344 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
345 target
="$ac_optarg" ;;
347 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
350 -version |
--version |
--versio |
--versi |
--vers)
351 echo "configure generated by autoconf version 2.10"
355 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package
=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* |
--without-*)
368 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package
=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
381 |
--x-incl |
--x-inc |
--x-in |
--x-i)
382 ac_prev
=x_includes
;;
383 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
384 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
385 x_includes
="$ac_optarg" ;;
387 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
388 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
389 ac_prev
=x_libraries
;;
390 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
391 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
392 x_libraries
="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE
; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
443 |
--no-cr |
--no-c) ;;
444 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
445 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
446 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
453 # Only set LANG and LC_ALL to C if already set.
454 # These must not be set unconditionally because not all systems understand
455 # e.g. LANG=C (notably SCO).
456 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
457 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest
* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file
=main.c
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470 ac_srcdir_defaulted
=yes
471 # Try the directory containing this script, then its parent.
473 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
476 if test ! -r $srcdir/$ac_unique_file; then
480 ac_srcdir_defaulted
=no
482 if test ! -r $srcdir/$ac_unique_file; then
483 if test "$ac_srcdir_defaulted" = yes; then
484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493 if test "x$prefix" != xNONE
; then
494 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
496 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 for ac_site_file
in $CONFIG_SITE; do
500 if test -r "$ac_site_file"; then
501 echo "loading site script $ac_site_file"
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
510 echo "creating cache $cache_file"
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp
='$CPP $CPPFLAGS'
517 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
521 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
529 ac_n
= ac_c
='\c' ac_t
=
535 # Extract the first word of "gcc", so it can be a program name with args.
536 set dummy gcc
; ac_word
=$2
537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
538 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
539 echo $ac_n "(cached) $ac_c" 1>&6
541 if test -n "$CC"; then
542 ac_cv_prog_CC
="$CC" # Let the user override the test.
544 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
545 for ac_dir
in $PATH; do
546 test -z "$ac_dir" && ac_dir
=.
547 if test -f $ac_dir/$ac_word; then
556 if test -n "$CC"; then
557 echo "$ac_t""$CC" 1>&6
559 echo "$ac_t""no" 1>&6
562 if test -z "$CC"; then
563 # Extract the first word of "cc", so it can be a program name with args.
564 set dummy cc
; ac_word
=$2
565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
566 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
567 echo $ac_n "(cached) $ac_c" 1>&6
569 if test -n "$CC"; then
570 ac_cv_prog_CC
="$CC" # Let the user override the test.
572 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
574 for ac_dir
in $PATH; do
575 test -z "$ac_dir" && ac_dir
=.
576 if test -f $ac_dir/$ac_word; then
577 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
586 if test $ac_prog_rejected = yes; then
587 # We found a bogon in the path, so make sure we never use it.
588 set dummy
$ac_cv_prog_CC
590 if test $# -gt 0; then
591 # We chose a different compiler from the bogus one.
592 # However, it has the same basename, so the bogon will be chosen
593 # first if we set CC to just the basename; use the full file name.
595 set dummy
"$ac_dir/$ac_word" "$@"
603 if test -n "$CC"; then
604 echo "$ac_t""$CC" 1>&6
606 echo "$ac_t""no" 1>&6
609 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
612 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
613 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
616 cat > conftest.c
<<EOF
621 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
628 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
629 if test $ac_cv_prog_gcc = yes; then
631 if test "${CFLAGS+set}" != set; then
632 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
633 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
634 echo $ac_n "(cached) $ac_c" 1>&6
636 echo 'void f(){}' > conftest.c
637 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
646 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
647 if test $ac_cv_prog_gcc_g = yes; then
655 test "${CFLAGS+set}" = set || CFLAGS
="-g"
658 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
659 # On Suns, sometimes $CPP names a directory.
660 if test -n "$CPP" && test -d "$CPP"; then
663 if test -z "$CPP"; then
664 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
665 echo $ac_n "(cached) $ac_c" 1>&6
667 # This must be in double quotes, not single quotes, because CPP may get
668 # substituted into the Makefile and "${CC-cc}" will confuse make.
670 # On the NeXT, cc -E runs the code through the compiler's parser,
671 # not just through cpp.
672 cat > conftest.
$ac_ext <<EOF
673 #line 674 "configure"
674 #include "confdefs.h"
678 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
679 { (eval echo configure
:680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
680 ac_err
=`grep -v '^ *+' conftest.out`
681 if test -z "$ac_err"; then
686 CPP
="${CC-cc} -E -traditional-cpp"
687 cat > conftest.
$ac_ext <<EOF
688 #line 689 "configure"
689 #include "confdefs.h"
693 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
694 { (eval echo configure
:695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
695 ac_err
=`grep -v '^ *+' conftest.out`
696 if test -z "$ac_err"; then
706 ac_cv_prog_CPP
="$CPP"
708 CPP
="$ac_cv_prog_CPP"
710 ac_cv_prog_CPP
="$CPP"
712 echo "$ac_t""$CPP" 1>&6
714 echo $ac_n "checking for AIX""... $ac_c" 1>&6
715 cat > conftest.
$ac_ext <<EOF
716 #line 717 "configure"
717 #include "confdefs.h"
723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
724 egrep "yes" >/dev
/null
2>&1; then
726 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
727 #define _ALL_SOURCE 1
732 echo "$ac_t""no" 1>&6
737 ac_safe
=`echo "minix/config.h" | tr './\055' '___'`
738 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
742 cat > conftest.
$ac_ext <<EOF
743 #line 744 "configure"
744 #include "confdefs.h"
745 #include <minix/config.h>
747 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
748 { (eval echo configure
:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
749 ac_err
=`grep -v '^ *+' conftest.out`
750 if test -z "$ac_err"; then
752 eval "ac_cv_header_$ac_safe=yes"
756 eval "ac_cv_header_$ac_safe=no"
760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
761 echo "$ac_t""yes" 1>&6
764 echo "$ac_t""no" 1>&6
768 if test "$MINIX" = yes; then
769 cat >> confdefs.h
<<\EOF
770 #define _POSIX_SOURCE 1
773 cat >> confdefs.h
<<\EOF
774 #define _POSIX_1_SOURCE 2
777 cat >> confdefs.h
<<\EOF
783 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
784 if test -d /etc
/conf
/kconfig.d
&&
785 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
787 echo "$ac_t""yes" 1>&6
788 ISC
=yes # If later tests want to check for ISC.
789 cat >> confdefs.h
<<\EOF
790 #define _POSIX_SOURCE 1
793 if test "$GCC" = yes; then
799 echo "$ac_t""no" 1>&6
805 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
806 if test -f $ac_dir/install-sh
; then
808 ac_install_sh
="$ac_aux_dir/install-sh -c"
810 elif test -f $ac_dir/install.sh
; then
812 ac_install_sh
="$ac_aux_dir/install.sh -c"
816 if test -z "$ac_aux_dir"; then
817 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
819 ac_config_guess
=$ac_aux_dir/config.guess
820 ac_config_sub
=$ac_aux_dir/config.sub
821 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
823 # Find a good install program. We prefer a C program (faster),
824 # so one script is as good as another. But avoid the broken or
825 # incompatible versions:
826 # SysV /etc/install, /usr/sbin/install
827 # SunOS /usr/etc/install
830 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
831 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
832 # ./install, which can be erroneously created by make from ./install.sh.
833 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
834 if test -z "$INSTALL"; then
835 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
839 for ac_dir
in $PATH; do
840 # Account for people who put trailing slashes in PATH elements.
842 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
844 # OSF1 and SCO ODT 3.0 have their own names for install.
845 for ac_prog
in ginstall installbsd scoinst
install; do
846 if test -f $ac_dir/$ac_prog; then
847 if test $ac_prog = install &&
848 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
849 # AIX install. It has an incompatible calling convention.
850 # OSF/1 installbsd also uses dspmsg, but is usable.
853 ac_cv_path_install
="$ac_dir/$ac_prog -c"
864 if test "${ac_cv_path_install+set}" = set; then
865 INSTALL
="$ac_cv_path_install"
867 # As a last resort, use the slow shell script. We don't cache a
868 # path for INSTALL within a source directory, because that will
869 # break other packages using the cache if that directory is
870 # removed, or if the path is relative.
871 INSTALL
="$ac_install_sh"
874 echo "$ac_t""$INSTALL" 1>&6
876 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
877 # It thinks the first close brace ends the variable substitution.
878 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
880 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
883 # Make sure we can run config.sub.
884 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
885 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
888 echo $ac_n "checking host system type""... $ac_c" 1>&6
891 case "$host_alias" in
895 if host_alias
=`$ac_config_guess`; then :
896 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
898 *) host_alias
=$nonopt ;;
902 host=`$ac_config_sub $host_alias`
903 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
904 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
905 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
906 echo "$ac_t""$host" 1>&6
908 echo $ac_n "checking build system type""... $ac_c" 1>&6
911 case "$build_alias" in
914 NONE
) build_alias
=$host_alias ;;
915 *) build_alias
=$nonopt ;;
919 build
=`$ac_config_sub $build_alias`
920 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
921 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
922 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
923 echo "$ac_t""$build" 1>&6
925 if test $host != $build; then
926 ac_tool_prefix
=${host_alias}-
931 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
932 set dummy
${ac_tool_prefix}ar; ac_word
=$2
933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
934 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
937 if test -n "$AR"; then
938 ac_cv_prog_AR
="$AR" # Let the user override the test.
940 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
941 for ac_dir
in $PATH; do
942 test -z "$ac_dir" && ac_dir
=.
943 if test -f $ac_dir/$ac_word; then
944 ac_cv_prog_AR
="${ac_tool_prefix}ar"
949 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
953 if test -n "$AR"; then
954 echo "$ac_t""$AR" 1>&6
956 echo "$ac_t""no" 1>&6
961 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
962 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
964 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 if test -n "$RANLIB"; then
968 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
970 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
971 for ac_dir
in $PATH; do
972 test -z "$ac_dir" && ac_dir
=.
973 if test -f $ac_dir/$ac_word; then
974 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
981 RANLIB
="$ac_cv_prog_RANLIB"
982 if test -n "$RANLIB"; then
983 echo "$ac_t""$RANLIB" 1>&6
985 echo "$ac_t""no" 1>&6
989 if test -z "$ac_cv_prog_RANLIB"; then
990 if test -n "$ac_tool_prefix"; then
991 # Extract the first word of "ranlib", so it can be a program name with args.
992 set dummy ranlib
; ac_word
=$2
993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
994 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 if test -n "$RANLIB"; then
998 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1000 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1001 for ac_dir
in $PATH; do
1002 test -z "$ac_dir" && ac_dir
=.
1003 if test -f $ac_dir/$ac_word; then
1004 ac_cv_prog_RANLIB
="ranlib"
1009 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1012 RANLIB
="$ac_cv_prog_RANLIB"
1013 if test -n "$RANLIB"; then
1014 echo "$ac_t""$RANLIB" 1>&6
1016 echo "$ac_t""no" 1>&6
1024 for ac_prog
in 'bison -y' byacc
1026 # Extract the first word of "$ac_prog", so it can be a program name with args.
1027 set dummy
$ac_prog; ac_word
=$2
1028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1029 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 if test -n "$YACC"; then
1033 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1035 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1036 for ac_dir
in $PATH; do
1037 test -z "$ac_dir" && ac_dir
=.
1038 if test -f $ac_dir/$ac_word; then
1039 ac_cv_prog_YACC
="$ac_prog"
1046 YACC
="$ac_cv_prog_YACC"
1047 if test -n "$YACC"; then
1048 echo "$ac_t""$YACC" 1>&6
1050 echo "$ac_t""no" 1>&6
1053 test -n "$YACC" && break
1055 test -n "$YACC" || YACC
="yacc"
1057 for ac_prog
in mawk gawk nawk
awk
1059 # Extract the first word of "$ac_prog", so it can be a program name with args.
1060 set dummy
$ac_prog; ac_word
=$2
1061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1062 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 if test -n "$AWK"; then
1066 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1068 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1069 for ac_dir
in $PATH; do
1070 test -z "$ac_dir" && ac_dir
=.
1071 if test -f $ac_dir/$ac_word; then
1072 ac_cv_prog_AWK
="$ac_prog"
1079 AWK
="$ac_cv_prog_AWK"
1080 if test -n "$AWK"; then
1081 echo "$ac_t""$AWK" 1>&6
1083 echo "$ac_t""no" 1>&6
1086 test -n "$AWK" && break
1091 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1092 if test -f $ac_dir/install-sh
; then
1094 ac_install_sh
="$ac_aux_dir/install-sh -c"
1096 elif test -f $ac_dir/install.sh
; then
1098 ac_install_sh
="$ac_aux_dir/install.sh -c"
1102 if test -z "$ac_aux_dir"; then
1103 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1105 ac_config_guess
=$ac_aux_dir/config.guess
1106 ac_config_sub
=$ac_aux_dir/config.sub
1107 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1110 # Do some error checking and defaulting for the host and target type.
1112 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1115 # 1. You are not allowed to specify --host, --target, and nonopt at the
1117 # 2. Host defaults to nonopt.
1118 # 3. If nonopt is not specified, then host defaults to the current host,
1119 # as determined by config.guess.
1120 # 4. Target and build default to nonopt.
1121 # 5. If nonopt is not specified, then target and build default to host.
1123 # The aliases save the names the user supplied, while $host etc.
1124 # will get canonicalized.
1125 case $host---$target---$nonopt in
1126 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1127 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1131 # Make sure we can run config.sub.
1132 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1133 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1136 echo $ac_n "checking host system type""... $ac_c" 1>&6
1139 case "$host_alias" in
1143 if host_alias
=`$ac_config_guess`; then :
1144 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1146 *) host_alias
=$nonopt ;;
1150 host=`$ac_config_sub $host_alias`
1151 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1152 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1153 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1154 echo "$ac_t""$host" 1>&6
1156 echo $ac_n "checking target system type""... $ac_c" 1>&6
1158 target_alias
=$target
1159 case "$target_alias" in
1162 NONE
) target_alias
=$host_alias ;;
1163 *) target_alias
=$nonopt ;;
1167 target
=`$ac_config_sub $target_alias`
1168 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1169 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1170 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1171 echo "$ac_t""$target" 1>&6
1173 echo $ac_n "checking build system type""... $ac_c" 1>&6
1176 case "$build_alias" in
1179 NONE
) build_alias
=$host_alias ;;
1180 *) build_alias
=$nonopt ;;
1184 build
=`$ac_config_sub $build_alias`
1185 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1186 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1187 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1188 echo "$ac_t""$build" 1>&6
1190 test "$host_alias" != "$target_alias" &&
1191 test "$program_prefix$program_suffix$program_transform_name" = \
1193 program_prefix
=${target_alias}-
1195 if test "$program_transform_name" = s
,x
,x
,; then
1196 program_transform_name
=
1198 # Double any \ or $. echo might interpret backslashes.
1199 cat <<\EOF_SED
> conftestsed
1200 s
,\\,\\\\,g
; s
,\$
,$$
,g
1202 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1205 test "$program_prefix" != NONE
&&
1206 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1207 # Use a double $ so make ignores it.
1208 test "$program_suffix" != NONE
&&
1209 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1211 # sed with no file args requires a program.
1212 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1215 # If we cannot run a trivial program, we must be cross compiling.
1216 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1217 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1220 if test "$cross_compiling" = yes; then
1223 cat > conftest.
$ac_ext <<EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1228 { (eval echo configure
:1229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1229 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1238 echo "$ac_t""$ac_cv_c_cross" 1>&6
1239 cross_compiling
=$ac_cv_c_cross
1241 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1242 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 cat > conftest.
$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1253 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1254 { (eval echo configure
:1255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1255 ac_err
=`grep -v '^ *+' conftest.out`
1256 if test -z "$ac_err"; then
1258 ac_cv_header_stdc
=yes
1262 ac_cv_header_stdc
=no
1266 if test $ac_cv_header_stdc = yes; then
1267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1268 cat > conftest.
$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1274 egrep "memchr" >/dev
/null
2>&1; then
1278 ac_cv_header_stdc
=no
1284 if test $ac_cv_header_stdc = yes; then
1285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1286 cat > conftest.
$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1292 egrep "free" >/dev
/null
2>&1; then
1296 ac_cv_header_stdc
=no
1302 if test $ac_cv_header_stdc = yes; then
1303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1304 if test "$cross_compiling" = yes; then
1307 cat > conftest.
$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1311 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1312 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1314 int main () { int i; for (i = 0; i < 256; i++)
1315 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1319 { (eval echo configure
:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1320 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1323 ac_cv_header_stdc
=no
1330 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1331 if test $ac_cv_header_stdc = yes; then
1332 cat >> confdefs.h
<<\EOF
1333 #define STDC_HEADERS 1
1338 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
1340 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1342 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 cat > conftest.
$ac_ext <<EOF
1346 #line 1347 "configure"
1347 #include "confdefs.h"
1350 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1351 { (eval echo configure
:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1352 ac_err
=`grep -v '^ *+' conftest.out`
1353 if test -z "$ac_err"; then
1355 eval "ac_cv_header_$ac_safe=yes"
1359 eval "ac_cv_header_$ac_safe=no"
1363 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1364 echo "$ac_t""yes" 1>&6
1365 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1366 cat >> confdefs.h
<<EOF
1367 #define $ac_tr_hdr 1
1371 echo "$ac_t""no" 1>&6
1375 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1376 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1379 cat > conftest.
$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1382 #include <sys/types.h>
1383 #include <sys/stat.h>
1385 #if defined(S_ISBLK) && defined(S_IFDIR)
1386 # if S_ISBLK (S_IFDIR)
1391 #if defined(S_ISBLK) && defined(S_IFCHR)
1392 # if S_ISBLK (S_IFCHR)
1397 #if defined(S_ISLNK) && defined(S_IFREG)
1398 # if S_ISLNK (S_IFREG)
1403 #if defined(S_ISSOCK) && defined(S_IFREG)
1404 # if S_ISSOCK (S_IFREG)
1410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1411 egrep "You lose" >/dev
/null
2>&1; then
1413 ac_cv_header_stat_broken
=yes
1416 ac_cv_header_stat_broken
=no
1422 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1423 if test $ac_cv_header_stat_broken = yes; then
1424 cat >> confdefs.h
<<\EOF
1425 #define STAT_MACROS_BROKEN 1
1431 for ac_func
in setpgid sbrk
1433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1437 cat > conftest.
$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1440 /* System header to define __stub macros and hopefully few prototypes,
1441 which can conflict with char $ac_func(); below. */
1443 /* Override any gcc2 internal prototype to avoid an error. */
1444 /* We use char because int might match the return type of a gcc2
1445 builtin and then its argument prototype would still apply. */
1448 int main() { return 0; }
1451 /* The GNU C library defines this for functions which it implements
1452 to always fail with ENOSYS. Some functions are actually named
1453 something starting with __ and the normal name is an alias. */
1454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1462 if { (eval echo configure
:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1464 eval "ac_cv_func_$ac_func=yes"
1467 eval "ac_cv_func_$ac_func=no"
1472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1473 echo "$ac_t""yes" 1>&6
1474 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1475 cat >> confdefs.h
<<EOF
1476 #define $ac_tr_func 1
1480 echo "$ac_t""no" 1>&6
1485 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
1486 if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 cat > conftest.
$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1492 #include <sys/procfs.h>
1493 int main() { return 0; }
1495 gregset_t *gregsetp = 0
1498 if { (eval echo configure
:1499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1500 gdb_cv_have_gregset_t
=yes
1503 gdb_cv_have_gregset_t
=no
1509 echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6
1510 if test $gdb_cv_have_gregset_t = yes; then
1511 cat >> confdefs.h
<<\EOF
1512 #define HAVE_GREGSET_T 1
1517 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
1518 if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 cat > conftest.
$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1524 #include <sys/procfs.h>
1525 int main() { return 0; }
1527 fpregset_t *fpregsetp = 0
1530 if { (eval echo configure
:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1532 gdb_cv_have_fpregset_t
=yes
1535 gdb_cv_have_fpregset_t
=no
1541 echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6
1542 if test $gdb_cv_have_fpregset_t = yes; then
1543 cat >> confdefs.h
<<\EOF
1544 #define HAVE_FPREGSET_T 1
1550 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
1551 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 cat > conftest.
$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1558 int main() { return 0; }
1563 if { (eval echo configure
:1564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1565 ac_cv_c_long_double
=yes
1568 ac_cv_c_long_double
=no
1574 echo "$ac_t""$ac_cv_c_long_double" 1>&6
1575 if test $ac_cv_c_long_double = yes; then
1576 cat >> confdefs.h
<<\EOF
1577 #define HAVE_LONG_DOUBLE 1
1583 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
1584 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 if test "$cross_compiling" = yes; then
1588 gdb_cv_printf_has_long_double
=no
1590 cat > conftest.
$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1596 long double f = 3.141592653;
1597 sprintf (buf, "%Lg", f);
1598 return (strncmp ("3.14159", buf, 7));
1601 { (eval echo configure
:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1602 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1603 gdb_cv_printf_has_long_double
=yes
1605 gdb_cv_printf_has_long_double
=no
1611 if test $gdb_cv_printf_has_long_double = yes; then
1612 cat >> confdefs.h
<<\EOF
1613 #define PRINTF_HAS_LONG_DOUBLE 1
1617 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
1619 for ac_func
in valloc getpagesize
1621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1625 cat > conftest.
$ac_ext <<EOF
1626 #line 1627 "configure"
1627 #include "confdefs.h"
1628 /* System header to define __stub macros and hopefully few prototypes,
1629 which can conflict with char $ac_func(); below. */
1631 /* Override any gcc2 internal prototype to avoid an error. */
1632 /* We use char because int might match the return type of a gcc2
1633 builtin and then its argument prototype would still apply. */
1636 int main() { return 0; }
1639 /* The GNU C library defines this for functions which it implements
1640 to always fail with ENOSYS. Some functions are actually named
1641 something starting with __ and the normal name is an alias. */
1642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1650 if { (eval echo configure
:1651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1652 eval "ac_cv_func_$ac_func=yes"
1655 eval "ac_cv_func_$ac_func=no"
1660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1661 echo "$ac_t""yes" 1>&6
1662 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1663 cat >> confdefs.h
<<EOF
1664 #define $ac_tr_func 1
1668 echo "$ac_t""no" 1>&6
1672 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1673 if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1676 if test "$cross_compiling" = yes; then
1679 cat > conftest.
$ac_ext <<EOF
1680 #line 1681 "configure"
1681 #include "confdefs.h"
1683 /* Thanks to Mike Haertel and Jim Avera for this test. */
1684 #include <sys/types.h>
1686 #include <sys/mman.h>
1688 #ifndef HAVE_GETPAGESIZE
1689 # include <sys/param.h>
1690 # ifdef EXEC_PAGESIZE
1691 # define getpagesize() EXEC_PAGESIZE
1694 # define getpagesize() NBPG * CLSIZE
1700 # define getpagesize() NBPC
1702 # define getpagesize() PAGESIZE /* SVR4 */
1709 # define valloc malloc
1713 extern "C" { void *valloc(unsigned), *malloc(unsigned); }
1715 char *valloc(), *malloc();
1721 char *buf1, *buf2, *buf3;
1722 int i = getpagesize(), j;
1726 buf1 = (char *)valloc(i2);
1727 buf2 = (char *)valloc(i);
1728 buf3 = (char *)malloc(i2);
1729 for (j = 0; j < i2; ++j)
1730 *(buf1 + j) = rand();
1731 fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
1732 write(fd, buf1, i2);
1733 mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
1734 for (j = 0; j < i; ++j)
1735 if (*(buf1 + j) != *(buf2 + j))
1737 lseek(fd, (long)i, 0);
1738 read(fd, buf2, i); /* read into mapped memory -- file should not change */
1739 /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
1740 lseek(fd, (long)0, 0);
1742 for (j = 0; j < i2; ++j)
1743 if (*(buf1 + j) != *(buf3 + j))
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
1759 echo "$ac_t""$ac_cv_func_mmap" 1>&6
1760 if test $ac_cv_func_mmap = yes; then
1761 cat >> confdefs.h
<<\EOF
1769 case ${build}:${host}:${target} in
1770 *-*-solaris2*:*-*-solaris2*:*-*-solaris2*)
1771 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
1772 if test -f /usr
/lib
/libthread_db.so
.1 ; then
1773 echo "$ac_t""yes" 1>&6
1774 THREAD_DB_OBS
=sol-thread.o
1775 cat >> confdefs.h
<<\EOF
1776 #define HAVE_THREAD_DB_LIB 1
1779 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Xlinker -export-dynamic"
1781 echo "$ac_t""no" 1>&6
1791 # Check whether --enable-netrom or --disable-netrom was given.
1792 if test "${enable_netrom+set}" = set; then
1793 enableval
="$enable_netrom"
1794 case "${enableval}" in
1795 yes) enable_netrom
=yes ;;
1796 no
) enable_netrom
=no
;;
1797 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
1802 if test "${enable_netrom}" = "yes"; then
1803 ENABLE_OBS
="${ENABLE_OBS} remote-nrom.o"
1809 # Check whether --enable-gm or --disable-gm was given.
1810 if test "${enable_gm+set}" = set; then
1811 enableval
="$enable_gm"
1812 case "${enableval}" in
1813 yes) ENABLE_OBS
="${ENABLE_OBS} gmagic.o"
1814 ENABLE_CFLAGS
=-DGENERAL_MAGIC
1817 *) { echo "configure: error: bad value ${enableval} given for gm option" 1>&2; exit 1; } ;;
1824 # Check whether --enable-sim-powerpc or --disable-sim-powerpc was given.
1825 if test "${enable_sim_powerpc+set}" = set; then
1826 enableval
="$enable_sim_powerpc"
1827 case "${enableval}" in
1828 yes) powerpc_sim
=yes ;;
1829 no
) powerpc_sim
=no
;;
1830 *) { echo "configure: error: bad value ${enableval} given for sim-powerpc option" 1>&2; exit 1; } ;;
1833 if test x
"$GCC" != x
""; then powerpc_sim
=yes; else powerpc_sim
=no
; fi
1837 # start-sanitize-gdbtk
1840 # Check whether --enable-gdbtk or --disable-gdbtk was given.
1841 if test "${enable_gdbtk+set}" = set; then
1842 enableval
="$enable_gdbtk"
1843 case "${enableval}" in
1847 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
1850 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
1858 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
1862 # Default is on for everything but go32 and cygwin32
1875 if test "${enable_gdbtk}" = "yes"; then
1877 # If we find X, set shell vars x_includes and x_libraries to the
1878 # paths, otherwise set no_x=yes.
1879 # Uses ac_ vars as temps to allow command line to override cache and checks.
1880 # --without-x overrides everything else, but does not touch the cache.
1881 echo $ac_n "checking for X""... $ac_c" 1>&6
1883 # Check whether --with-x or --without-x was given.
1884 if test "${with_x+set}" = set; then
1889 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1890 if test "x$with_x" = xno
; then
1891 # The user explicitly disabled X.
1894 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1895 # Both variables are already set.
1898 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1901 # One or both of the vars are not set, and there is no cached value.
1902 ac_x_includes
=NO ac_x_libraries
=NO
1904 if mkdir conftestdir
; then
1906 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1907 cat > Imakefile
<<'EOF'
1909 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1911 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1912 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1913 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1914 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1915 for ac_extension
in a so sl
; do
1916 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1917 test -f $ac_im_libdir/libX11.
$ac_extension; then
1918 ac_im_usrlibdir
=$ac_im_libdir; break
1921 # Screen out bogus values from the imake configuration.
1922 case "$ac_im_incroot" in
1924 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1926 case "$ac_im_usrlibdir" in
1928 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1935 if test "$ac_x_includes" = NO
; then
1936 # Guess where to find include files, by looking for this one X11 .h file.
1937 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1939 # First, try using that file with no special directory specified.
1940 cat > conftest.
$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1943 #include <$x_direct_test_include>
1945 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1946 { (eval echo configure
:1947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1947 ac_err
=`grep -v '^ *+' conftest.out`
1948 if test -z "$ac_err"; then
1950 # We can compile using X headers with no special include directory.
1955 # Look for the header file in a standard set of common directories.
1957 /usr
/X11R
6/include \
1958 /usr
/X11R
5/include \
1959 /usr
/X11R
4/include \
1961 /usr
/include
/X11R6 \
1962 /usr
/include
/X11R5 \
1963 /usr
/include
/X11R4 \
1965 /usr
/local
/X11R
6/include \
1966 /usr
/local
/X11R
5/include \
1967 /usr
/local
/X11R
4/include \
1969 /usr
/local
/include
/X11R6 \
1970 /usr
/local
/include
/X11R5 \
1971 /usr
/local
/include
/X11R4 \
1975 /usr
/local
/X11
/include \
1976 /usr
/local
/include
/X11 \
1980 /usr
/XFree86
/include
/X11 \
1983 /usr
/local
/include \
1984 /usr
/unsupported
/include \
1985 /usr
/athena
/include \
1986 /usr
/local
/x11r
5/include \
1987 /usr
/lpp
/Xamples
/include \
1989 /usr
/openwin
/include \
1990 /usr
/openwin
/share
/include \
1993 if test -r "$ac_dir/$x_direct_test_include"; then
1994 ac_x_includes
=$ac_dir
2000 fi # $ac_x_includes = NO
2002 if test "$ac_x_libraries" = NO
; then
2003 # Check for the libraries.
2005 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
2006 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
2008 # See if we find them without any special options.
2009 # Don't add to $LIBS permanently.
2010 ac_save_LIBS
="$LIBS"
2011 LIBS
="-l$x_direct_test_library $LIBS"
2012 cat > conftest.
$ac_ext <<EOF
2013 #line 2014 "configure"
2014 #include "confdefs.h"
2016 int main() { return 0; }
2018 ${x_direct_test_function}()
2021 if { (eval echo configure
:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2023 LIBS
="$ac_save_LIBS"
2024 # We can link X programs with no special library path.
2028 LIBS
="$ac_save_LIBS"
2029 # First see if replacing the include by lib works.
2030 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
2039 /usr
/local
/X11R
6/lib \
2040 /usr
/local
/X11R
5/lib \
2041 /usr
/local
/X11R
4/lib \
2043 /usr
/local
/lib
/X11R6 \
2044 /usr
/local
/lib
/X11R5 \
2045 /usr
/local
/lib
/X11R4 \
2049 /usr
/local
/X11
/lib \
2050 /usr
/local
/lib
/X11 \
2054 /usr
/XFree86
/lib
/X11 \
2058 /usr
/unsupported
/lib \
2060 /usr
/local
/x11r
5/lib \
2061 /usr
/lpp
/Xamples
/lib \
2064 /usr
/openwin
/share
/lib \
2067 for ac_extension
in a so sl
; do
2068 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
2069 ac_x_libraries
=$ac_dir
2077 fi # $ac_x_libraries = NO
2079 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
2080 # Didn't find X anywhere. Cache the known absence of X.
2081 ac_cv_have_x
="have_x=no"
2083 # Record where we found X for the cache.
2084 ac_cv_have_x
="have_x=yes \
2085 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2089 eval "$ac_cv_have_x"
2092 if test "$have_x" != yes; then
2093 echo "$ac_t""$have_x" 1>&6
2096 # If each of the values was on the command line, it overrides each guess.
2097 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
2098 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
2099 # Update the cache value to reflect the command line values.
2100 ac_cv_have_x
="have_x=yes \
2101 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2102 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2105 if test "$no_x" = yes; then
2106 # Not all programs may use this symbol, but it does not hurt to define it.
2107 X_CFLAGS
="$X_CFLAGS -DX_DISPLAY_MISSING"
2109 if test -n "$x_includes"; then
2110 X_CFLAGS
="$X_CFLAGS -I$x_includes"
2113 # It would be nice to have a more robust check for the -R ld option than
2114 # just checking for Solaris.
2115 # It would also be nice to do this for all -L options, not just this one.
2116 if test -n "$x_libraries"; then
2117 X_LIBS
="$X_LIBS -L$x_libraries"
2118 if test "`(uname) 2>/dev/null`" = SunOS
&&
2119 uname
-r |
grep '^5' >/dev
/null
; then
2120 X_LIBS
="$X_LIBS -R $x_libraries"
2124 # Check for libraries that X11R6 Xt/Xaw programs need.
2126 ac_save_LDFLAGS
="$LDFLAGS"
2127 LDFLAGS
="$LDFLAGS -L$x_libraries"
2128 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2129 # check for ICE first), but we must link in the order -lSM -lICE or
2130 # we get undefined symbols. So assume we have SM if we have ICE.
2131 # These have to be linked with before -lX11, unlike the other
2132 # libraries we check for below, so use a different variable.
2133 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2134 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
2135 ac_lib_var
=`echo ICE'_'IceConnectionNumber | tr './+\055' '__p_'`
2136 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2139 ac_save_LIBS
="$LIBS"
2141 cat > conftest.
$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2144 /* Override any gcc2 internal prototype to avoid an error. */
2145 /* We use char because int might match the return type of a gcc2
2146 builtin and then its argument prototype would still apply. */
2147 char IceConnectionNumber();
2149 int main() { return 0; }
2151 IceConnectionNumber()
2154 if { (eval echo configure
:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2156 eval "ac_cv_lib_$ac_lib_var=yes"
2159 eval "ac_cv_lib_$ac_lib_var=no"
2162 LIBS
="$ac_save_LIBS"
2165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2167 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2169 echo "$ac_t""no" 1>&6
2172 LDFLAGS
="$ac_save_LDFLAGS"
2174 # Check for system-dependent libraries X programs must link with.
2176 if test "$ISC" = yes; then
2177 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
2179 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2180 # libraries were built with DECnet support. And karl@cs.umb.edu says
2181 # the Alpha needs dnet_stub (dnet does not exist).
2182 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
2183 ac_lib_var
=`echo dnet'_'dnet_ntoa | tr './+\055' '__p_'`
2184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 ac_save_LIBS
="$LIBS"
2189 cat > conftest.
$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2192 /* Override any gcc2 internal prototype to avoid an error. */
2193 /* We use char because int might match the return type of a gcc2
2194 builtin and then its argument prototype would still apply. */
2197 int main() { return 0; }
2202 if { (eval echo configure
:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2204 eval "ac_cv_lib_$ac_lib_var=yes"
2207 eval "ac_cv_lib_$ac_lib_var=no"
2210 LIBS
="$ac_save_LIBS"
2213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2215 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
2217 echo "$ac_t""no" 1>&6
2220 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
2221 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
2222 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | tr './+\055' '__p_'`
2223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 ac_save_LIBS
="$LIBS"
2227 LIBS
="-ldnet_stub $LIBS"
2228 cat > conftest.
$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 /* Override any gcc2 internal prototype to avoid an error. */
2232 /* We use char because int might match the return type of a gcc2
2233 builtin and then its argument prototype would still apply. */
2236 int main() { return 0; }
2241 if { (eval echo configure
:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2243 eval "ac_cv_lib_$ac_lib_var=yes"
2246 eval "ac_cv_lib_$ac_lib_var=no"
2249 LIBS
="$ac_save_LIBS"
2252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2254 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
2256 echo "$ac_t""no" 1>&6
2261 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2262 # to get the SysV transport functions.
2263 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
2265 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
2266 ac_lib_var
=`echo nsl'_'t_accept | tr './+\055' '__p_'`
2267 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 ac_save_LIBS
="$LIBS"
2272 cat > conftest.
$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2275 /* Override any gcc2 internal prototype to avoid an error. */
2276 /* We use char because int might match the return type of a gcc2
2277 builtin and then its argument prototype would still apply. */
2280 int main() { return 0; }
2285 if { (eval echo configure
:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2287 eval "ac_cv_lib_$ac_lib_var=yes"
2290 eval "ac_cv_lib_$ac_lib_var=no"
2293 LIBS
="$ac_save_LIBS"
2296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2297 echo "$ac_t""yes" 1>&6
2298 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2300 echo "$ac_t""no" 1>&6
2304 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2305 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
2306 # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
2307 if test "`(uname) 2>/dev/null`" != IRIX
; then
2308 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
2309 ac_lib_var
=`echo socket'_'socket | tr './+\055' '__p_'`
2310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2313 ac_save_LIBS
="$LIBS"
2314 LIBS
="-lsocket $LIBS"
2315 cat > conftest.
$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2318 /* Override any gcc2 internal prototype to avoid an error. */
2319 /* We use char because int might match the return type of a gcc2
2320 builtin and then its argument prototype would still apply. */
2323 int main() { return 0; }
2328 if { (eval echo configure
:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2330 eval "ac_cv_lib_$ac_lib_var=yes"
2333 eval "ac_cv_lib_$ac_lib_var=no"
2336 LIBS
="$ac_save_LIBS"
2339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2341 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lsocket"
2343 echo "$ac_t""no" 1>&6
2354 # Ok, lets find the tcl source trees so we can use the headers
2355 # Warning: transition of version 9 to 10 will break this algorithm
2356 # because 10 sorts before 9. We also look for just tcl. We have to
2357 # be careful that we don't match stuff like tclX by accident.
2358 # the alternative search directory is involked by --with-tclinclude
2361 echo $ac_n "checking for Tcl private headers""... $ac_c" 1>&6
2362 # Check whether --with-tclinclude or --without-tclinclude was given.
2363 if test "${with_tclinclude+set}" = set; then
2364 withval
="$with_tclinclude"
2365 with_tclinclude
=${withval}
2368 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2372 # first check to see if --with-tclinclude was specified
2373 if test x
"${with_tclinclude}" != x
; then
2374 if test -f ${with_tclinclude}/tclInt.h
; then
2375 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
2377 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
2380 # next check in private source directory
2382 # since ls returns lowest version numbers first, reverse its output
2383 if test x
"${ac_cv_c_tclh}" = x
; then
2386 `ls -dr ${srcdir}/../tcl[0-9]* 2>/dev/null` \
2387 ${srcdir}/..
/..
/tcl \
2388 `ls -dr ${srcdir}/../../tcl[0-9]* 2>/dev/null` \
2389 ${srcdir}/..
/..
/..
/tcl \
2390 `ls -dr ${srcdir}/../../../tcl[0-9]* 2>/dev/null ` ; do
2391 if test -f $i/tclInt.h
; then
2392 ac_cv_c_tclh
=`(cd $i; pwd)`
2395 # Tcl 7.5 and greater puts headers in subdirectory.
2396 if test -f $i/generic
/tclInt.h
; then
2397 ac_cv_c_tclh
=`(cd $i; pwd)`/generic
2402 # finally check in a few common install locations
2404 # since ls returns lowest version numbers first, reverse its output
2405 if test x
"${ac_cv_c_tclh}" = x
; then
2407 `ls -dr /usr/local/src/tcl[0-9]* 2>/dev/null` \
2408 `ls -dr /usr/local/lib/tcl[0-9]* 2>/dev/null` \
2409 /usr
/local
/src
/tcl \
2410 /usr
/local
/lib
/tcl \
2411 ${prefix}/include
; do
2412 if test -f $i/tclInt.h
; then
2413 ac_cv_c_tclh
=`(cd $i; pwd)`
2418 # see if one is installed
2419 if test x
"${ac_cv_c_tclh}" = x
; then
2420 ac_safe
=`echo "tclInt.h" | tr './\055' '___'`
2421 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
2422 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2425 cat > conftest.
$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2430 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2431 { (eval echo configure
:2432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2432 ac_err
=`grep -v '^ *+' conftest.out`
2433 if test -z "$ac_err"; then
2435 eval "ac_cv_header_$ac_safe=yes"
2439 eval "ac_cv_header_$ac_safe=no"
2443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2444 echo "$ac_t""yes" 1>&6
2445 ac_cv_c_tclh
=installed
2447 echo "$ac_t""no" 1>&6
2455 if test x
"${ac_cv_c_tclh}" = x
; then
2456 TCLHDIR
="# no Tcl private headers found"
2457 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
2459 if test x
"${ac_cv_c_tclh}" != x
; then
2461 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
2462 echo "$ac_t""is installed" 1>&6
2465 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
2466 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
2467 TCLHDIR
="-I${ac_cv_c_tclh}"
2471 echo $ac_n "checking Tcl version""... $ac_c" 1>&6
2472 orig_includes
="$CPPFLAGS"
2474 if test x
"${TCLHDIR}" != x
; then
2475 CPPFLAGS
="$CPPFLAGS $TCLHDIR"
2478 # Get major and minor versions of Tcl. Use funny names to avoid
2479 # clashes with eg SunOS.
2480 cat > conftest.c
<<'EOF'
2482 MaJor = TCL_MAJOR_VERSION
2483 MiNor = TCL_MINOR_VERSION
2488 if (eval "$CPP $CPPFLAGS conftest.c") 2>/dev
/null
>conftest.out
; then
2490 tclmajor
=`egrep '^MaJor = ' conftest.out | sed -e 's/^MaJor = *//' -e 's/ *$//'`
2491 tclminor
=`egrep '^MiNor = ' conftest.out | sed -e 's/^MiNor = *//' -e 's/ *$//'`
2493 rm -f conftest.c conftest.out
2495 if test -z "$tclmajor" ||
test -z "$tclminor"; then
2496 echo "$ac_t""fatal error: could not find major or minor version number of Tcl" 1>&6
2499 echo "$ac_t""${tclmajor}.${tclminor}" 1>&6
2501 CPPFLAGS
="${orig_includes}"
2508 # Ok, lets find the tcl library
2509 # First, look for one uninstalled.
2510 # the alternative search directory is invoked by --with-tcllib
2513 if test $tclmajor -ge 7 -a $tclminor -ge 4 ; then
2514 installedtcllibroot
=tcl
$tclversion
2516 installedtcllibroot
=tcl
2519 if test x
"${no_tcl}" = x
; then
2520 # we reset no_tcl incase something fails here
2522 # Check whether --with-tcllib or --without-tcllib was given.
2523 if test "${with_tcllib+set}" = set; then
2524 withval
="$with_tcllib"
2525 with_tcllib
=${withval}
2528 echo $ac_n "checking for Tcl library""... $ac_c" 1>&6
2529 if eval "test \"`echo '$''{'ac_cv_c_tcllib'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2533 # First check to see if --with-tcllib was specified.
2534 # This requires checking for both the installed and uninstalled name-styles
2535 # since we have no idea if it's installed or not.
2536 if test x
"${with_tcllib}" != x
; then
2537 if test -f "${with_tcllib}/lib$installedtcllibroot.so" ; then
2538 ac_cv_c_tcllib
=`(cd ${with_tcllib}; pwd)`/lib
$installedtcllibroot.so
2539 elif test -f "${with_tcllib}/libtcl.so" ; then
2540 ac_cv_c_tcllib
=`(cd ${with_tcllib}; pwd)`/libtcl.so
2541 # then look for a freshly built statically linked library
2542 # if Makefile exists we assume its configured and libtcl will be built first.
2543 elif test -f "${with_tcllib}/lib$installedtcllibroot.a" ; then
2544 ac_cv_c_tcllib
=`(cd ${with_tcllib}; pwd)`/lib
$installedtcllibroot.a
2545 elif test -f "${with_tcllib}/libtcl.a" ; then
2546 ac_cv_c_tcllib
=`(cd ${with_tcllib}; pwd)`/libtcl.a
2548 { echo "configure: error: ${with_tcllib} directory doesn't contain libraries" 1>&2; exit 1; }
2551 # then check for a private Tcl library
2552 # Since these are uninstalled, use the simple lib name root.
2553 if test x
"${ac_cv_c_tcllib}" = x
; then
2556 `ls -dr ../tcl[0-9]* 2>/dev/null` \
2558 `ls -dr ../../tcl[0-9]* 2>/dev/null` \
2560 `ls -dr ../../../tcl[0-9]* 2>/dev/null` ; do
2561 # Tcl 7.5 and greater puts library in subdir. Look there first.
2562 if test -f "$i/unix/libtcl.so" ; then
2563 ac_cv_c_tcllib
=`(cd $i; pwd)`/unix
/libtcl.so
2565 elif test -f "$i/unix/libtcl.a" -o -f "$i/unix/Makefile"; then
2566 ac_cv_c_tcllib
=`(cd $i; pwd)`/unix
/libtcl.a
2568 # look for a freshly built dynamically linked library
2569 elif test -f "$i/libtcl.so" ; then
2570 ac_cv_c_tcllib
=`(cd $i; pwd)`/libtcl.so
2573 # then look for a freshly built statically linked library
2574 # if Makefile exists we assume its configured and libtcl will be
2576 elif test -f "$i/libtcl.a" -o -f "$i/Makefile" ; then
2577 ac_cv_c_tcllib
=`(cd $i; pwd)`/libtcl.a
2582 # check in a few common install locations
2583 if test x
"${ac_cv_c_tcllib}" = x
; then
2584 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
2585 # first look for a freshly built dynamically linked library
2586 if test -f "$i/lib$installedtcllibroot.so" ; then
2587 ac_cv_c_tcllib
=`(cd $i; pwd)`/lib
$installedtcllibroot.so
2589 # then look for a freshly built statically linked library
2590 # if Makefile exists we assume its configured and libtcl will be built first.
2591 elif test -f "$i/lib$installedtcllibroot.a" -o -f "$i/Makefile" ; then
2592 ac_cv_c_tcllib
=`(cd $i; pwd)`/lib
$installedtcllibroot.a
2597 # check in a few other private locations
2598 if test x
"${ac_cv_c_tcllib}" = x
; then
2601 `ls -dr ${srcdir}/../tcl[0-9]* 2>/dev/null` ; do
2602 # Tcl 7.5 and greater puts library in subdir. Look there first.
2603 if test -f "$i/unix/libtcl.so" ; then
2604 ac_cv_c_tcllib
=`(cd $i; pwd)`/unix
/libtcl.so
2606 elif test -f "$i/unix/libtcl.a" -o -f "$i/unix/Makefile"; then
2607 ac_cv_c_tcllib
=`(cd $i; pwd)`/unix
/libtcl.a
2609 # look for a freshly built dynamically linked library
2610 elif test -f "$i/libtcl.so" ; then
2611 ac_cv_c_tcllib
=`(cd $i; pwd)`/libtcl.so
2614 # then look for a freshly built statically linked library
2615 # if Makefile exists we assume its configured and libtcl will be
2617 elif test -f "$i/libtcl.a" -o -f "$i/Makefile" ; then
2618 ac_cv_c_tcllib
=`(cd $i; pwd)`/libtcl.a
2624 # see if one is conveniently installed with the compiler
2625 if test x
"${ac_cv_c_tcllib}" = x
; then
2627 LIBS
="$LIBS -l$installedtcllibroot -lm"
2628 if test "$cross_compiling" = yes; then
2629 ac_cv_c_tclib
="-l$installedtcllibroot"
2631 cat > conftest.
$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2638 { (eval echo configure
:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2639 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
2640 ac_cv_c_tcllib
="-l$installedtcllibroot"
2652 if test x
"${ac_cv_c_tcllib}" = x
; then
2653 TCLLIB
="# no Tcl library found"
2654 echo "configure: warning: Can't find Tcl library" 1>&2
2656 TCLLIB
=${ac_cv_c_tcllib}
2657 echo "$ac_t""found $TCLLIB" 1>&6
2669 # Ok, lets find the tk source trees so we can use the headers
2670 # If the directory (presumably symlink) named "tk" exists, use that one
2671 # in preference to any others. Same logic is used when choosing library
2672 # and again with Tcl. The search order is the best place to look first, then in
2673 # decreasing significance. The loop breaks if the trigger file is found.
2674 # Note the gross little conversion here of srcdir by cd'ing to the found
2675 # directory. This converts the path from a relative to an absolute, so
2676 # recursive cache variables for the path will work right. We check all
2677 # the possible paths in one loop rather than many seperate loops to speed
2679 # the alternative search directory is invoked by --with-tkinclude
2681 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
2682 # Check whether --with-tkinclude or --without-tkinclude was given.
2683 if test "${with_tkinclude+set}" = set; then
2684 withval
="$with_tkinclude"
2685 with_tkinclude
=${withval}
2689 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2693 # first check to see if --with-tkinclude was specified
2694 if test x
"${with_tkinclude}" != x
; then
2695 if test -f ${with_tkinclude}/tk.h
; then
2696 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
2698 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
2701 # next check in private source directory
2703 # since ls returns lowest version numbers first, reverse the entire list
2704 # and search for the worst fit, overwriting it with better fits as we find them
2705 if test x
"${ac_cv_c_tkh}" = x
; then
2708 `ls -dr ${srcdir}/../tk[0-9]* 2>/dev/null` \
2709 ${srcdir}/..
/..
/tk \
2710 `ls -dr ${srcdir}/../../tk[0-9]* 2>/dev/null` \
2711 ${srcdir}/..
/..
/..
/tk \
2712 `ls -dr ${srcdir}/../../../tk[0-9]* 2>/dev/null ` ; do
2713 if test -f $i/tk.h
; then
2714 ac_cv_c_tkh
=`(cd $i; pwd)`
2717 # Tk 4.1 and greater puts this in a subdir.
2718 if test -f $i/generic
/tk.h
; then
2719 ac_cv_c_tkh
=`(cd $i; pwd)`/generic
2723 # finally check in a few common install locations
2725 # since ls returns lowest version numbers first, reverse the entire list
2726 # and search for the worst fit, overwriting it with better fits as we find them
2727 if test x
"${ac_cv_c_tkh}" = x
; then
2729 `ls -dr /usr/local/src/tk[0-9]* 2>/dev/null` \
2730 `ls -dr /usr/local/lib/tk[0-9]* 2>/dev/null` \
2733 ${prefix}/include
; do
2734 if test -f $i/tk.h
; then
2735 ac_cv_c_tkh
=`(cd $i; pwd)`
2740 # see if one is installed
2741 if test x
"${ac_cv_c_tkh}" = x
; then
2742 ac_safe
=`echo "tk.h" | tr './\055' '___'`
2743 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
2744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2747 cat > conftest.
$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2752 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2753 { (eval echo configure
:2754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2754 ac_err
=`grep -v '^ *+' conftest.out`
2755 if test -z "$ac_err"; then
2757 eval "ac_cv_header_$ac_safe=yes"
2761 eval "ac_cv_header_$ac_safe=no"
2765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2766 echo "$ac_t""yes" 1>&6
2767 ac_cv_c_tkh
=installed
2769 echo "$ac_t""no" 1>&6
2776 if test x
"${ac_cv_c_tkh}" != x
; then
2778 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
2779 echo "$ac_t""is installed" 1>&6
2782 echo "$ac_t""found in $ac_cv_c_tkh" 1>&6
2783 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
2784 TKHDIR
="-I${ac_cv_c_tkh}"
2787 TKHDIR
="# no Tk directory found"
2788 echo "configure: warning: Can't find Tk private headers" 1>&2
2792 # if Tk is installed, extract the major/minor version
2793 if test x
"${no_tk}" = x
; then
2794 echo $ac_n "checking Tk version""... $ac_c" 1>&6
2795 orig_includes
="$CPPFLAGS"
2797 if test x
"${TCLHDIR}" != x
; then
2798 CPPFLAGS
="$CPPFLAGS $TCLHDIR"
2800 if test x
"${TKHDIR}" != x
; then
2801 CPPFLAGS
="$CPPFLAGS $TKHDIR"
2803 if test x
"${x_includes}" != x
-a x
"${x_includes}" != xNONE
; then
2804 CPPFLAGS
="$CPPFLAGS -I$x_includes"
2807 # Get major and minor versions of Tk. Use funny names to avoid
2808 # clashes with eg SunOS.
2809 cat > conftest.c
<<'EOF'
2811 MaJor = TK_MAJOR_VERSION
2812 MiNor = TK_MINOR_VERSION
2817 if (eval "$CPP $CPPFLAGS conftest.c") 2>/dev
/null
>conftest.out
; then
2819 tkmajor
=`egrep '^MaJor = ' conftest.out | sed -e 's/^MaJor = *//' -e 's/ *$//'`
2820 tkminor
=`egrep '^MiNor = ' conftest.out | sed -e 's/^MiNor = *//' -e 's/ *$//'`
2822 rm -f conftest.c conftest.out
2824 if test -z "$tkmajor" ||
test -z "$tkminor"; then
2825 echo "$ac_t""fatal error: could not find major or minor version number of Tk" 1>&6
2828 echo "$ac_t""${tkmajor}.${tkminor}" 1>&6
2830 CPPFLAGS
="${orig_includes}"
2839 # Ok, lets find the tk library
2840 # First, look for the latest private (uninstalled) copy
2841 # Notice that the destinations in backwards priority since the tests have
2843 # Then we look for either .a, .so, or Makefile. A Makefile is acceptable
2844 # is it indicates the target has been configured and will (probably)
2845 # soon be built. This allows an entire tree of Tcl software to be
2846 # configured at once and then built.
2847 # the alternative search directory is invoked by --with-tklib
2850 if test x
"${no_tk}" = x
; then
2851 # reset no_tk incase something fails here
2854 if test $tkmajor -ge 4 ; then
2855 installedtklibroot
=tk
$tkversion
2857 installedtkllibroot
=tk
2860 # Check whether --with-tklib or --without-tklib was given.
2861 if test "${with_tklib+set}" = set; then
2862 withval
="$with_tklib"
2863 with_tklib
=${withval}
2866 echo $ac_n "checking for Tk library""... $ac_c" 1>&6
2867 if eval "test \"`echo '$''{'ac_cv_c_tklib'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2871 # first check to see if --with-tklib was specified
2872 # This requires checking for both the installed and uninstalled name-styles
2873 # since we have no idea if it's installed or not.
2874 if test x
"${with_tklib}" != x
; then
2875 if test -f "${with_tklib}/lib$installedtklibroot.so" ; then
2876 ac_cv_c_tklib
=`(cd ${with_tklib}; pwd)`/lib
$installedtklibroot.so
2878 elif test -f "${with_tklib}/libtk.so" ; then
2879 ac_cv_c_tklib
=`(cd ${with_tklib}; pwd)`/libtk.so
2881 # then look for a freshly built statically linked library
2882 # if Makefile exists we assume its configured and libtk will be built
2883 elif test -f "${with_tklib}/lib$installedtklibroot.a" ; then
2884 ac_cv_c_tklib
=`(cd ${with_tklib}; pwd)`/lib
$installedtklibroot.a
2886 elif test -f "${with_tklib}/libtk.a" ; then
2887 ac_cv_c_tklib
=`(cd ${with_tklib}; pwd)`/libtk.a
2890 { echo "configure: error: ${with_tklib} directory doesn't contain libraries" 1>&2; exit 1; }
2893 # then check for a private Tk library
2894 # Since these are uninstalled, use the simple lib name root.
2895 if test x
"${ac_cv_c_tklib}" = x
; then
2898 `ls -dr ../tk[0-9]* 2>/dev/null` \
2900 `ls -dr ../../tk[0-9]* 2>/dev/null` \
2902 `ls -dr ../../../tk[0-9]* 2>/dev/null` ; do
2903 # Tk 4.1 and greater puts things in subdirs. Check these first.
2904 if test -f "$i/unix/libtk.so" ; then
2905 ac_cv_c_tklib
=`(cd $i; pwd)`/unix
/libtk.so
2908 elif test -f "$i/unix/libtk.a" -o -f "$i/unix/Makefile"; then
2909 ac_cv_c_tklib
=`(cd $i; pwd)`/unix
/libtk.a
2912 # look for a freshly built dynamically linked library
2913 elif test -f "$i/libtk.so" ; then
2914 ac_cv_c_tklib
=`(cd $i; pwd)`/libtk.so
2917 # then look for a freshly built statically linked library
2918 # if Makefile exists we assume its configured and libtk will be built
2919 elif test -f "$i/libtk.a" -o -f "$i/Makefile" ; then
2920 ac_cv_c_tklib
=`(cd $i; pwd)`/libtk.a
2926 # finally check in a few common install locations
2927 if test x
"${ac_cv_c_tklib}" = x
; then
2928 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
2929 # first look for a freshly built dynamically linked library
2930 if test -f "$i/lib$installedtklibroot.so" ; then
2931 ac_cv_c_tklib
=`(cd $i; pwd)`/lib
$installedtklibroot.so
2934 # then look for a freshly built statically linked library
2935 # if Makefile exists, we assume it's configured and libtcl will be built
2936 elif test -f "$i/lib$installedtklibroot.a" -o -f "$i/Makefile" ; then
2937 ac_cv_c_tklib
=`(cd $i; pwd)`/lib
$installedtklibroot.a
2943 # check in a few other private locations
2944 if test x
"${ac_cv_c_tklib}" = x
; then
2947 `ls -dr ${srcdir}/../tk[0-9]* 2>/dev/null` ; do
2948 # Tk 4.1 and greater puts things in subdirs. Check these first.
2949 if test -f "$i/unix/libtk.so" ; then
2950 ac_cv_c_tklib
=`(cd $i; pwd)`/unix
/libtk.so
2953 elif test -f "$i/unix/libtk.a" -o -f "$i/unix/Makefile"; then
2954 ac_cv_c_tcllib
=`(cd $i; pwd)`/unix
/libtk.a
2957 # look for a freshly built dynamically linked library
2958 elif test -f "$i/libtk.so" ; then
2959 ac_cv_c_tklib
=`(cd $i; pwd)`/libtk.so
2962 # then look for a freshly built statically linked library
2963 # if Makefile exists, we assume it's configured and libtcl will be built
2964 elif test -f "$i/libtk.a" -o -f "$i/Makefile" ; then
2965 ac_cv_c_tklib
=`(cd $i; pwd)`/libtk.a
2971 # see if one is conveniently installed with the compiler
2972 if test x
"${ac_cv_c_tklib}" = x
; then
2975 LIBS
="$LIBS -l$installedtklibroot $x_libraries $ac_cv_c_tcllib -lm"
2976 if test "$cross_compiling" = yes; then
2977 ac_cv_c_tklib
="-l$installedtklibroot"
2979 cat > conftest.
$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2986 { (eval echo configure
:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2987 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
2988 ac_cv_c_tklib
="-l$installedtklibroot"
3000 if test x
"${ac_cv_c_tklib}" = x
; then
3001 TKLIB
="# no Tk library found"
3002 echo "configure: warning: Can't find Tk library" 1>&2
3004 TKLIB
=$ac_cv_c_tklib
3005 echo "$ac_t""found $TKLIB" 1>&6
3014 # Look for dynamic linking libraries that Tcl might need. This is
3015 # only done for Tcl 7.5 and greater. It would be good to look for and
3016 # use the "configInfo" file that Tcl generates, but for now that is
3018 if test $tclmajor -ge 7 -a $tclminor -ge 5 ; then
3019 echo $ac_n "checking for -ldl""... $ac_c" 1>&6
3020 ac_lib_var
=`echo dl'_'main | tr './+\055' '__p_'`
3021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3024 ac_save_LIBS
="$LIBS"
3026 cat > conftest.
$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3030 int main() { return 0; }
3035 if { (eval echo configure
:3036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3037 eval "ac_cv_lib_$ac_lib_var=yes"
3040 eval "ac_cv_lib_$ac_lib_var=no"
3043 LIBS
="$ac_save_LIBS"
3046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3047 echo "$ac_t""yes" 1>&6
3048 ac_tr_lib
=HAVE_LIB
`echo dl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3049 cat >> confdefs.h
<<EOF
3050 #define $ac_tr_lib 1
3056 echo "$ac_t""no" 1>&6
3057 echo $ac_n "checking for -ldld""... $ac_c" 1>&6
3058 ac_lib_var
=`echo dld'_'main | tr './+\055' '__p_'`
3059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 ac_save_LIBS
="$LIBS"
3064 cat > conftest.
$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3068 int main() { return 0; }
3073 if { (eval echo configure
:3074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3075 eval "ac_cv_lib_$ac_lib_var=yes"
3078 eval "ac_cv_lib_$ac_lib_var=no"
3081 LIBS
="$ac_save_LIBS"
3084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3085 echo "$ac_t""yes" 1>&6
3086 ac_tr_lib
=HAVE_LIB
`echo dld | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3087 cat >> confdefs.h
<<EOF
3088 #define $ac_tr_lib 1
3094 echo "$ac_t""no" 1>&6
3103 if test "x$no_x" != "xyes"; then
3104 if test "x$x_includes" != "x" ;
3106 X_CFLAGS
="-I$x_includes"
3111 if test "x$x_libraries" != "x" ;
3113 X_LDFLAGS
="-L$x_libraries"
3120 # gdb linked statically w/ Solaris iff GCC is used, otherwise dynamic
3122 sparc
*-sun-solaris2*)
3123 if test "x$GCC" = "xyes";
3125 X_LIBS
="-Wl,-Bstatic -lX11 -lXext -lX11 -Wl,-Bdynamic -ldl -lw"
3127 if test "x$x_libraries" != "x" ;
3129 X_LDFLAGS
="$X_LDFLAGS -R$x_libraries"
3131 X_LIBS
="-lX11 -lXext -lX11"
3134 # gdb linked statically w/ SunOS or HPUX
3136 m68k-hp-hpux
*|hppa
*-hp-hpux*|sparc-sun-sunos
*)
3137 if test "x$x_libraries" != "x" ;
3139 X_LIBS
="$x_libraries/libX11.a"
3141 X_LIBS
="/usr/lib/libX11.a"
3144 # default is to link dynamically
3153 echo "configure: warning: No X based programs will be built" 1>&2
3156 TCL_LIBS
='$(TCL) $(TK) $(X11_LDFLAGS) $(X11_LIBS)'
3157 ENABLE_CLIBS
="${ENABLE_CLIBS} ${TCL_LIBS} -lm"
3158 ENABLE_OBS
="${ENABLE_OBS} gdbtk.o"
3165 # end-sanitize-gdbtk
3171 # target_subdir is used by the testsuite to find the target libraries.
3173 if test "${host}" != "${target}"; then
3174 target_subdir
="${target_alias}/"
3178 configdirs
="doc testsuite"
3181 # Map host cpu into the config cpu subdirectory name.
3182 # The default is $host_cpu.
3184 case "${host_cpu}" in
3186 c
[12]) gdb_host_cpu
=convex
;;
3187 hppa
*) gdb_host_cpu
=pa
;;
3188 i
[3456]86) gdb_host_cpu
=i386
;;
3189 m68
*) gdb_host_cpu
=m68k
;;
3190 m88
*) gdb_host_cpu
=m88k
;;
3191 np1
) gdb_host_cpu
=gould
;;
3192 pyramid
) gdb_host_cpu
=pyr
;;
3193 powerpc
*) gdb_host_cpu
=powerpc
;;
3194 sparc64
) gdb_host_cpu
=sparc
;;
3195 *) gdb_host_cpu
=$host_cpu ;;
3199 # map host info into gdb names.
3203 a29k-
*-*) gdb_host
=ultra3
;;
3205 alpha-
*-osf1*) gdb_host
=alpha-osf1
;;
3206 alpha-
*-osf2*) gdb_host
=alpha-osf2
;;
3207 alpha-
*-osf[3456789]*) gdb_host
=alpha-osf3
;;
3208 alpha-
*-linux*) gdb_host
=alpha-linux
;;
3210 arm-
*-*) gdb_host
=arm
;;
3212 c
[12]-*-*) gdb_host
=convex
;;
3214 hppa
*-*-bsd*) gdb_host
=hppabsd
;;
3215 hppa
*-*-hiux*) gdb_host
=hppahpux
;;
3216 hppa
*-*-hpux*) gdb_host
=hppahpux
;;
3217 hppa
*-*-osf*) gdb_host
=hppaosf
;;
3219 i
[3456]86-ncr-*) gdb_host
=ncr3000
;;
3220 i
[3456]86-sequent-bsd*) gdb_host
=symmetry
;; # dynix
3221 i
[3456]86-sequent-sysv4*) gdb_host
=ptx4
;;
3222 i
[3456]86-sequent-sysv*) gdb_host
=ptx ;;
3223 i
[3456]86-*-aix*) gdb_host
=i386aix
;;
3224 i
[3456]86-*-bsd*) gdb_host
=i386bsd
;;
3225 i
[3456]86-*-dgux*) gdb_host
=i386dgux
;;
3226 i
[3456]86-*-freebsd*) gdb_host
=fbsd
;;
3227 i
[3456]86-*-netbsd*) gdb_host
=nbsd
;;
3228 i
[3456]86-*-go32*) gdb_host
=go32
;;
3229 i
[3456]86-*-linux*) gdb_host
=linux
;;
3230 i
[3456]86-*-lynxos*) gdb_host
=i386lynx
;;
3231 i
[3456]86-*-mach3*) gdb_host
=i386m3
;;
3232 i
[3456]86-*-mach*) gdb_host
=i386mach
;;
3233 i
[3456]86-*-gnu*) gdb_host
=i386gnu
;;
3234 i
[3456]86-*-osf1mk*) gdb_host
=osf1mk
;;
3235 i
[3456]86-*-sco3.2v5
*) gdb_host
=i386sco5
;;
3236 i
[3456]86-*-sco3.2v4
*) gdb_host
=i386sco4
;;
3237 i
[3456]86-*-sco*) gdb_host
=i386sco
;;
3238 i
[3456]86-*-solaris*) gdb_host
=i386sol2
;;
3239 i
[3456]86-*-sunos*) gdb_host
=sun386
;;
3240 i
[3456]86-*-sysv3.2
*) gdb_host
=i386v32
;;
3241 i
[3456]86-*-sysv32*) gdb_host
=i386v32
;;
3242 i
[3456]86-*-sysv4*) gdb_host
=i386v4
;;
3243 i
[3456]86-*-unixware) gdb_host
=i386v4
;;
3244 i
[3456]86-*-sysv*) gdb_host
=i386v
;;
3245 i
[3456]86-*-isc*) gdb_host
=i386v32
;;
3246 i
[3456]86-*-os9k) gdb_host
=i386os9k
;;
3247 i
[3456]86-*-cygwin32) gdb_host
=cygwin32
;;
3248 m680
[01]0-sun-sunos3*) gdb_host
=sun2os3
;;
3249 m680
[01]0-sun-sunos4*) gdb_host
=sun2os4
;;
3250 m68030-sony-
*) gdb_host
=news1000
;;
3252 m68
*-altos-*) gdb_host
=altos
;;
3253 m68
*-apollo*-sysv*) gdb_host
=apollo68v
;;
3254 m68
*-apollo*-bsd*) gdb_host
=apollo68b
;;
3255 m68
*-att-*) gdb_host
=3b1
;;
3256 m68
*-bull*-sysv*) gdb_host
=dpx2
;;
3257 m68
*-hp-bsd*) gdb_host
=hp300bsd
;;
3258 m68
*-hp-hpux*) gdb_host
=hp300hpux
;;
3259 m68
*-isi-*) gdb_host
=isi
;;
3260 m68
*-*-lynxos*) gdb_host
=m68klynx
;;
3261 m68
*-*-netbsd*) gdb_host
=nbsd
;;
3262 m68
*-*-sysv4*) gdb_host
=m68kv4
;;
3263 m68
*-motorola-*) gdb_host
=delta68
;;
3264 m68
*-sony-*) gdb_host
=news
;;
3265 m68
*-sun-sunos3*) gdb_host
=sun3os3
;;
3266 m68
*-sun-sunos4*) gdb_host
=sun3os4
;;
3267 m68
*-sun-*) gdb_host
=sun3os4
;;
3269 m88
*-harris-cxux*) gdb_host
=cxux
;;
3270 m88
*-motorola-sysv4*) gdb_host
=delta88v4
;;
3271 m88
*-motorola-sysv*) gdb_host
=delta88
;;
3272 m88
*-*-mach3*) gdb_host
=mach3
;;
3273 m88
*-*-*) gdb_host
=m88k
;;
3275 mips-dec-mach3
*) gdb_host
=mach3
;;
3276 mips-dec-
*) gdb_host
=decstation
;;
3277 mips-little-
*) gdb_host
=littlemips
;;
3278 mips-sgi-irix3
*) gdb_host
=irix3
;;
3279 mips-sgi-irix4
*) gdb_host
=irix4
;;
3280 mips-sgi-irix5
*) gdb_host
=irix5
;;
3281 mips-sony-
*) gdb_host
=news-mips
;;
3282 mips-
*-mach3*) gdb_host
=mach3
;;
3283 mips-
*-sysv4*) gdb_host
=mipsv4
;;
3284 mips-
*-sysv*) gdb_host
=riscos
;;
3285 mips-
*-riscos*) gdb_host
=riscos
;;
3287 none-
*-*) gdb_host
=none
;;
3289 np1-
*-*) gdb_host
=np1
;;
3291 ns32k-
*-mach3*) gdb_host
=mach3
;;
3292 ns32k-
*-netbsd*) gdb_host
=nbsd
;;
3293 ns32k-umax-
*) gdb_host
=umax
;;
3294 ns32k-utek-sysv
*) gdb_host
=merlin
;;
3296 powerpc-
*-aix*) gdb_host
=aix
;;
3297 powerpcle-
*-cygwin32) gdb_host
=cygwin32
;;
3298 powerpcle-
*-solaris*) gdb_host
=solaris
;;
3299 pn-
*-*) gdb_host
=pn
;;
3301 pyramid-
*-*) gdb_host
=pyramid
;;
3303 romp-
*-*) gdb_host
=rtbsd
;;
3305 rs6000-
*-lynxos*) gdb_host
=rs6000lynx
;;
3306 rs6000-
*-aix4*) gdb_host
=aix4
;;
3307 rs6000-
*-*) gdb_host
=rs6000
;;
3309 sparc-
*-lynxos*) gdb_host
=sparclynx
;;
3310 sparc-
*-netbsd*) gdb_host
=nbsd
;;
3311 sparc-
*-solaris2*) gdb_host
=sun4sol2
;;
3312 sparc-
*-sunos4*) gdb_host
=sun4os4
;;
3313 sparc-
*-sunos5*) gdb_host
=sun4sol2
;;
3314 sparc-
*-*) gdb_host
=sun4os4
;;
3315 sparc64-
*-*) gdb_host
=sun4sol2
;;
3317 tahoe-
*-*) gdb_host
=tahoe
;;
3319 vax-
*-bsd*) gdb_host
=vaxbsd
;;
3320 vax-
*-ultrix2*) gdb_host
=vaxult2
;;
3321 vax-
*-ultrix*) gdb_host
=vaxult
;;
3323 w65-
*-*) gdb_host
=w65
;;
3328 # Map target cpu into the config cpu subdirectory name.
3329 # The default is $target_cpu.
3331 case "${target_cpu}" in
3333 alpha
) gdb_target_cpu
=alpha
;;
3334 c
[12]) gdb_target_cpu
=convex
;;
3335 hppa
*) gdb_target_cpu
=pa
;;
3336 i
[3456]86) gdb_target_cpu
=i386
;;
3337 m68
*) gdb_target_cpu
=m68k
;;
3338 m88
*) gdb_target_cpu
=m88k
;;
3339 mips
*) gdb_target_cpu
=mips
;;
3340 np1
) gdb_target_cpu
=gould
;;
3341 powerpc
*) gdb_target_cpu
=powerpc
;;
3342 pn
) gdb_target_cpu
=gould
;;
3343 pyramid
) gdb_target_cpu
=pyr
;;
3344 sparc
*) gdb_target_cpu
=sparc
;;
3345 *) gdb_target_cpu
=$target_cpu ;;
3349 # map target info into gdb names.
3353 a29k-
*-aout*) gdb_target
=a29k
;;
3354 a29k-
*-coff*) gdb_target
=a29k
;;
3355 a29k-
*-elf*) gdb_target
=a29k
;;
3356 a29k-
*-ebmon*) gdb_target
=a29k
;;
3357 a29k-
*-kern*) gdb_target
=a29k-kern
;;
3358 a29k-
*-none*) gdb_target
=a29k
;;
3359 a29k-
*-sym1*) gdb_target
=ultra3
;;
3360 a29k-
*-udi*) gdb_target
=a29k-udi
;;
3361 a29k-
*-vxworks*) gdb_target
=vx29k
;;
3363 alpha-
*-osf*) gdb_target
=alpha-osf1
;;
3364 alpha-
*-linux*) gdb_target
=alpha-linux
;;
3366 # start-sanitize-arc
3367 arc-
*-*) gdb_target
=arc
;;
3370 arm-
*-*) gdb_target
=arm
;;
3372 c1-
*-*) gdb_target
=convex
;;
3373 c2-
*-*) gdb_target
=convex
;;
3375 h8300-
*-*) gdb_target
=h8300
;;
3376 h8500-
*-*) gdb_target
=h8500
;;
3378 sh-
*-*) gdb_target
=sh
;;
3380 hppa
*-*-bsd*) gdb_target
=hppabsd
;;
3381 hppa
*-*-pro*) gdb_target
=hppapro
;;
3382 hppa
*-*-hpux*) gdb_target
=hppahpux
;;
3383 hppa
*-*-hiux*) gdb_target
=hppahpux
;;
3384 hppa
*-*-osf*) gdb_target
=hppaosf
;;
3386 i
[3456]86-sequent-bsd*) gdb_target
=symmetry
;;
3387 i
[3456]86-sequent-sysv4*) gdb_target
=ptx4
;;
3388 i
[3456]86-sequent-sysv*) gdb_target
=ptx ;;
3389 i
[3456]86-ncr-*) gdb_target
=ncr3000
;;
3390 i
[3456]86-*-aout*) gdb_target
=i386aout
;;
3391 i
[3456]86-*-coff*) gdb_target
=i386v
;;
3392 i
[3456]86-*-elf*) gdb_target
=i386v
;;
3393 i
[3456]86-*-aix*) gdb_target
=i386aix
;;
3394 i
[3456]86-*-bsd*) gdb_target
=i386bsd
;;
3395 i
[3456]86-*-freebsd*) gdb_target
=fbsd
;;
3396 i
[3456]86-*-netbsd*) gdb_target
=nbsd
;;
3397 i
[3456]86-*-os9k) gdb_target
=i386os9k
;;
3398 i
[3456]86-*-go32*) gdb_target
=i386aout
;;
3399 i
[3456]86-*-lynxos*) gdb_target
=i386lynx
3400 configdirs
="${configdirs} gdbserver" ;;
3401 i
[3456]86-*-solaris*) gdb_target
=i386sol2
;;
3402 i
[3456]86-*-sunos*) gdb_target
=sun386
;;
3403 i
[3456]86-*-sysv4*) gdb_target
=i386v4
;;
3404 i
[3456]86-*-sco*) gdb_target
=i386v
;;
3405 i
[3456]86-*-sysv*) gdb_target
=i386v
;;
3406 i
[3456]86-*-linux*) gdb_target
=linux
3407 configdirs
="${configdirs} gdbserver" ;;
3408 i
[3456]86-*-isc*) gdb_target
=i386v
;;
3409 i
[3456]86-*-mach3*) gdb_target
=i386m3
;;
3410 i
[3456]86-*-mach*) gdb_target
=i386mach
;;
3411 i
[3456]86-*-gnu*) gdb_target
=i386gnu
;;
3412 i
[3456]86-*-netware*) gdb_target
=i386nw
3413 configdirs
="${configdirs} nlm" ;;
3414 i
[3456]86-*-osf1mk*) gdb_target
=i386mk
;;
3415 i
[3456]86-*-cygwin32) gdb_target
=cygwin32
;;
3416 i960-
*-bout*) gdb_target
=vxworks960
;;
3417 i960-nindy-coff
*) gdb_target
=nindy960
;;
3418 i960-
*-coff*) gdb_target
=mon960
;;
3419 i960-nindy-elf
*) gdb_target
=nindy960
;;
3420 i960-
*-elf*) gdb_target
=mon960
;;
3422 i960-
*-nindy*) gdb_target
=nindy960
;;
3423 i960-
*-vxworks*) gdb_target
=vxworks960
;;
3425 m68000-
*-sunos3*) gdb_target
=sun2os3
;;
3426 m68000-
*-sunos4*) gdb_target
=sun2os4
;;
3428 m68
*-apollo*-bsd*) gdb_target
=apollo68b
;;
3429 m68
*-bull-sysv*) gdb_target
=dpx2
;;
3430 m68
*-hp-bsd*) gdb_target
=hp300bsd
;;
3431 m68
*-hp-hpux*) gdb_target
=hp300hpux
;;
3432 m68
*-altos-*) gdb_target
=altos
;;
3433 m68
*-att-*) gdb_target
=3b1
;;
3434 m68
*-cisco*-*) gdb_target
=cisco
;;
3435 m68
*-ericsson-*) gdb_target
=es1800
;;
3436 m68
*-isi-*) gdb_target
=isi
;;
3437 m68
*-motorola-*) gdb_target
=delta68
;;
3438 m68
*-netx-*) gdb_target
=vxworks68
;;
3439 m68
*-sony-*) gdb_target
=news
;;
3440 m68
*-tandem-*) gdb_target
=st2000
;;
3441 m68
*-rom68k-*) gdb_target
=monitor
;;
3442 m68
*-*bug-
*) gdb_target
=monitor
;;
3443 m68
*-monitor-*) gdb_target
=monitor
;;
3444 m68
*-est-*) gdb_target
=monitor
;;
3445 m68
*-*-aout*) gdb_target
=monitor
;;
3446 m68
*-*-coff*) gdb_target
=monitor
;;
3447 m68
*-*-elf*) gdb_target
=monitor
;;
3448 m68
*-*-lynxos*) gdb_target
=m68klynx
3449 configdirs
="${configdirs} gdbserver" ;;
3450 m68
*-*-netbsd*) gdb_target
=nbsd
;;
3451 m68
*-*-os68k*) gdb_target
=os68k
;;
3452 m68
*-*-sunos3*) gdb_target
=sun3os3
;;
3453 m68
*-*-sunos4*) gdb_target
=sun3os4
;;
3454 m68
*-*-sysv4*) gdb_target
=m68kv4
;;
3455 m68
*-*-vxworks*) gdb_target
=vxworks68
;;
3457 m88
*-harris-cxux*) gdb_target
=cxux
;;
3458 m88
*-motorola-sysv4*) gdb_target
=delta88v4
;;
3459 m88
*-*-mach3*) gdb_target
=mach3
;;
3460 m88
*-motorola-*) gdb_target
=delta88
;;
3461 m88
*-*-*) gdb_target
=m88k
;;
3463 mips64
*-big-*) gdb_target
=bigmips64
;;
3464 mips
*-big-*) gdb_target
=bigmips
;;
3465 mips
*-dec-mach3*) gdb_target
=mach3
;;
3466 mips
*-dec-*) gdb_target
=decstation
;;
3467 mips64
*el-
*-ecoff*) gdb_target
=embedl64
;;
3468 mips64
*-*-ecoff*) gdb_target
=embed64
;;
3469 mips64
*vr4300
*el-
*-elf*) gdb_target
=vr4300el
;;
3470 mips64
*vr4300
*-*-elf*) gdb_target
=vr4300
;;
3471 mips64
*vr4100
*el-
*-elf*) gdb_target
=vr4300el
;;
3472 mips64
*vr4100
*-*-elf*) gdb_target
=vr4300
;;
3473 mips64
*el-
*-elf*) gdb_target
=embedl64
;;
3474 mips64
*-*-elf*) gdb_target
=embed64
;;
3475 mips
*el-
*-ecoff*) gdb_target
=embedl
;;
3476 mips
*-*-ecoff*) gdb_target
=embed
;;
3478 mips
*-*-magic*) gdb_target
=embed
;;
3480 mips
*el-
*-elf*) gdb_target
=embedl
;;
3481 mips
*-*-elf*) gdb_target
=embed
;;
3482 mips
*-little-*) gdb_target
=littlemips
;;
3483 mips
*-sgi-irix5*) gdb_target
=irix5
;;
3484 mips
*-sgi-*) gdb_target
=irix3
;;
3485 mips
*-sony-*) gdb_target
=bigmips
;;
3486 mips
*-*-mach3*) gdb_target
=mach3
;;
3487 mips
*-*-sysv4*) gdb_target
=mipsv4
;;
3488 mips
*-*-sysv*) gdb_target
=bigmips
;;
3489 mips
*-*-riscos*) gdb_target
=bigmips
;;
3490 mips
*-*-vxworks*) gdb_target
=vxmips
;;
3492 none-
*-*) gdb_target
=none
;;
3494 np1-
*-*) gdb_target
=np1
;;
3496 ns32k-
*-mach3*) gdb_target
=mach3
;;
3497 ns32k-
*-netbsd*) gdb_target
=nbsd
;;
3498 ns32k-utek-sysv
*) gdb_target
=merlin
;;
3499 ns32k-utek-
*) gdb_target
=umax
;;
3501 pn-
*-*) gdb_target
=pn
;;
3502 powerpc-
*-macos*) gdb_target
=macos
;;
3503 powerpc-
*-netware*) gdb_target
=ppc-nw
3504 configdirs
="${configdirs} nlm" ;;
3506 powerpc-
*-aix4*) gdb_target
=aix4
;;
3507 powerpc-
*-aix*) gdb_target
=aix
;;
3508 powerpcle-
*-cygwin32) gdb_target
=cygwin32
;;
3509 powerpcle-
*-solaris*) gdb_target
=solaris
;;
3510 powerpc-
*-eabi*) if test x
"$powerpc_sim" = x
"yes"; then
3515 powerpcle-
*-eabi*) if test x
"$powerpc_sim" = x
"yes"; then
3516 gdb_target
=ppcle-sim
3518 gdb_target
=ppcle-eabi
3521 pyramid-
*-*) gdb_target
=pyramid
;;
3523 rs6000-
*-lynxos*) gdb_target
=rs6000lynx
;;
3524 rs6000-
*-aix4*) gdb_target
=aix4
;;
3525 rs6000-
*-*) gdb_target
=rs6000
;;
3527 sparc-
*-aout*) gdb_target
=sparc-em
;;
3528 sparc-
*-coff*) gdb_target
=sparc-em
;;
3529 sparc-
*-elf*) gdb_target
=sparc-em
;;
3530 sparc-
*-lynxos*) gdb_target
=sparclynx
3531 configdirs
="${configdirs} gdbserver" ;;
3532 sparc-
*-netbsd*) gdb_target
=nbsd
;;
3533 sparc-
*-solaris2*) gdb_target
=sun4sol2
;;
3534 sparc-
*-sunos4*) gdb_target
=sun4os4
;;
3535 sparc-
*-sunos5*) gdb_target
=sun4sol2
;;
3536 sparc-
*-vxworks*) gdb_target
=vxsparc
;;
3537 sparc-
*-*) gdb_target
=sun4os4
;;
3538 sparclet-
*-*) gdb_target
=sparclet
;;
3539 sparclite
*-*-*) gdb_target
=sparclite
;;
3540 # It's not clear what the right solution for "v8plus" systems is yet.
3541 # For now, stick with sparc-sun-solaris2 since that's what config.guess
3542 # should return. Work is still needed to get gdb to print the 64 bit
3543 # regs (some of which are usable in v8plus) so sp64sol.mt hasn't been
3544 # deleted though presumably it should be eventually.
3545 #sparc64-*-solaris2*) gdb_target=sp64sol2 ;;
3546 sparc64-
*-*) gdb_target
=sp64
;;
3548 tahoe-
*-*) gdb_target
=tahoe
;;
3550 vax-
*-*) gdb_target
=vax
;;
3552 w65-
*-*) gdb_target
=w65
;;
3554 z8k-
*-coff*) gdb_target
=z8k
;;
3560 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
3561 if test ! -f ${host_makefile_frag}; then
3562 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
3564 frags
="$frags $host_makefile_frag"
3566 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
3567 if test ! -f ${target_makefile_frag}; then
3568 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
3570 frags
="$frags $target_makefile_frag"
3577 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
3578 ' ${host_makefile_frag}`
3580 targetfile
=`sed -n '
3581 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
3582 ' ${target_makefile_frag}`
3584 # these really aren't orthogonal true/false values of the same condition,
3585 # but shells are slow enough that I like to reuse the test conditions
3587 if test "${target}" = "${host}"; then
3588 nativefile
=`sed -n '
3589 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
3590 ' ${host_makefile_frag}`
3592 # GDBserver is only useful in a "native" enviroment
3593 configdirs
=`echo $configdirs | sed 's/gdbserver//'`
3597 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
3598 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
3599 # corresponding links. But we have to remove the xm.h files and tm.h
3600 # files anyway, e.g. when switching from "configure host" to
3606 if test "${hostfile}" != ""; then
3607 files
="${files} config/${gdb_host_cpu}/${hostfile}"
3608 links
="${links} xm.h"
3611 if test "${targetfile}" != ""; then
3612 files
="${files} config/${gdb_target_cpu}/${targetfile}"
3613 links
="${links} tm.h"
3616 if test "${nativefile}" != ""; then
3617 files
="${files} config/${gdb_host_cpu}/${nativefile}"
3618 links
="${links} nm.h"
3620 # A cross-only configuration.
3621 files
="${files} config/nm-empty.h"
3622 links
="${links} nm.h"
3624 # start-sanitize-gdbtk
3626 # Make it possible to use the GUI without doing a full install
3627 if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl
; then
3628 files
="${files} gdbtk.tcl"
3629 links
="${links} gdbtk.tcl"
3631 # end-sanitize-gdbtk
3635 subdirs
="$configdirs"
3638 cat > confcache
<<\EOF
3639 # This file is a shell script that caches the results of configure
3640 # tests run on this system so they can be shared between configure
3641 # scripts and configure runs. It is not useful on other systems.
3642 # If it contains results you don't want to keep, you may remove or edit it.
3644 # By default, configure uses ./config.cache as the cache file,
3645 # creating it if it does not exist already. You can give configure
3646 # the --cache-file=FILE option to use a different cache file; that is
3647 # what configure does when it calls configure scripts in
3648 # subdirectories, so they share the cache.
3649 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3650 # config.status only pays attention to the cache file if you give it the
3651 # --recheck option to rerun configure.
3654 # Ultrix sh set writes to stderr and can't be redirected directly,
3655 # and sets the high bit in the cache file unless we assign to the vars.
3657 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
3659 if cmp -s $cache_file confcache
; then
3662 if test -w $cache_file; then
3663 echo "updating cache $cache_file"
3664 cat confcache
> $cache_file
3666 echo "not updating unwritable cache $cache_file"
3671 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3673 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3674 # Let make expand exec_prefix.
3675 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3677 # Any assignment to VPATH causes Sun make to only execute
3678 # the first set of double-colon rules, so remove it if not needed.
3679 # If there is a colon in the path, we need to keep it.
3680 if test "x$srcdir" = x.
; then
3681 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3684 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3686 DEFS
=-DHAVE_CONFIG_H
3688 # Without the "./", some shells look in PATH for config.status.
3689 : ${CONFIG_STATUS=./config.status}
3691 echo creating
$CONFIG_STATUS
3692 rm -f $CONFIG_STATUS
3693 cat > $CONFIG_STATUS <<EOF
3695 # Generated automatically by configure.
3696 # Run this file to recreate the current configuration.
3697 # This directory was configured as follows,
3698 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3700 # $0 $ac_configure_args
3702 # Compiler output produced by configure, useful for debugging
3703 # configure, is in ./config.log if it exists.
3705 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3708 case "\$ac_option" in
3709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3710 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3711 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3712 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3713 echo "$CONFIG_STATUS generated by autoconf version 2.10"
3715 -help | --help | --hel | --he | --h)
3716 echo "\$ac_cs_usage"; exit 0 ;;
3717 *) echo "\$ac_cs_usage"; exit 1 ;;
3721 ac_given_srcdir=$srcdir
3722 ac_given_INSTALL="$INSTALL"
3724 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3726 cat >> $CONFIG_STATUS <<EOF
3728 # Protect against being on the right side of a sed subst in config.status.
3729 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3730 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3733 s%@CFLAGS@%$CFLAGS%g
3734 s%@CPPFLAGS@%$CPPFLAGS%g
3735 s%@CXXFLAGS@%$CXXFLAGS%g
3737 s%@LDFLAGS@%$LDFLAGS%g
3739 s%@exec_prefix@%$exec_prefix%g
3740 s%@prefix@%$prefix%g
3741 s%@program_transform_name@%$program_transform_name%g
3742 s%@bindir@%$bindir%g
3743 s%@sbindir@%$sbindir%g
3744 s%@libexecdir@%$libexecdir%g
3745 s%@datadir@%$datadir%g
3746 s%@sysconfdir@%$sysconfdir%g
3747 s%@sharedstatedir@%$sharedstatedir%g
3748 s%@localstatedir@%$localstatedir%g
3749 s%@libdir@%$libdir%g
3750 s%@includedir@%$includedir%g
3751 s%@oldincludedir@%$oldincludedir%g
3752 s%@infodir@%$infodir%g
3753 s%@mandir@%$mandir%g
3756 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3757 s%@INSTALL_DATA@%$INSTALL_DATA%g
3759 s%@host_alias@%$host_alias%g
3760 s%@host_cpu@%$host_cpu%g
3761 s%@host_vendor@%$host_vendor%g
3762 s%@host_os@%$host_os%g
3764 s%@build_alias@%$build_alias%g
3765 s%@build_cpu@%$build_cpu%g
3766 s%@build_vendor@%$build_vendor%g
3767 s%@build_os@%$build_os%g
3769 s%@RANLIB@%$RANLIB%g
3772 s%@target@%$target%g
3773 s%@target_alias@%$target_alias%g
3774 s%@target_cpu@%$target_cpu%g
3775 s%@target_vendor@%$target_vendor%g
3776 s%@target_os@%$target_os%g
3777 s%@THREAD_DB_OBS@%$THREAD_DB_OBS%g
3778 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
3779 s%@X_CFLAGS@%$X_CFLAGS%g
3780 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3781 s%@X_LIBS@%$X_LIBS%g
3782 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3783 s%@TCLHDIR@%$TCLHDIR%g
3784 s%@TCLLIB@%$TCLLIB%g
3785 s%@TKHDIR@%$TKHDIR%g
3787 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
3788 s%@X_LDFLAGS@%$X_LDFLAGS%g
3789 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
3790 s%@ENABLE_CLIBS@%$ENABLE_CLIBS%g
3791 s%@ENABLE_OBS@%$ENABLE_OBS%g
3792 s%@target_subdir@%$target_subdir%g
3793 /@host_makefile_frag@/r $host_makefile_frag
3794 s%@host_makefile_frag@%%g
3795 /@target_makefile_frag@/r $target_makefile_frag
3796 s%@target_makefile_frag@%%g
3798 s%@subdirs@%$subdirs%g
3802 cat >> $CONFIG_STATUS <<EOF
3804 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3806 cat >> $CONFIG_STATUS <<\EOF
3807 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3808 # Support "outfile[:infile]", defaulting infile="outfile.in".
3810 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
3811 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3812 *) ac_file_in
="${ac_file}.in" ;;
3815 # Adjust relative srcdir, etc. for subdirectories.
3817 # Remove last slash and all that follows it. Not all systems have dirname.
3818 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3819 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3820 # The file is in a subdirectory.
3821 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3822 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3823 # A "../" for each directory in $ac_dir_suffix.
3824 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3826 ac_dir_suffix
= ac_dots
=
3829 case "$ac_given_srcdir" in
3831 if test -z "$ac_dots"; then top_srcdir
=.
3832 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3833 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3835 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3836 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3839 case "$ac_given_INSTALL" in
3840 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3841 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3843 echo creating
"$ac_file"
3845 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3847 *Makefile
*) ac_comsub
="1i\\
3848 # $configure_input" ;;
3852 s%@configure_input@%$configure_input%g
3853 s%@srcdir@%$srcdir%g
3854 s%@top_srcdir@%$top_srcdir%g
3855 s%@INSTALL@%$INSTALL%g
3856 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
3860 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3861 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3863 # ac_d sets the value in "#define NAME VALUE" lines.
3864 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3865 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3868 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3869 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3870 ac_uB
='\([ ]\)%\1#\2define\3'
3873 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3874 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3875 ac_eB
='$%\1#\2define\3'
3879 CONFIG_HEADERS
=${CONFIG_HEADERS-"config.h:config.in"}
3880 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3881 # Support "outfile[:infile]", defaulting infile="outfile.in".
3883 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
3884 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3885 *) ac_file_in
="${ac_file}.in" ;;
3888 echo creating
$ac_file
3890 rm -f conftest.frag conftest.
in conftest.out
3891 cp $ac_given_srcdir/$ac_file_in conftest.
in
3895 # Transform confdefs.h into a sed script conftest.vals that substitutes
3896 # the proper values into config.h.in to produce config.h. And first:
3897 # Protect against being on the right side of a sed subst in config.status.
3898 # Protect against being in an unquoted here document in config.status.
3900 cat > conftest.hdr
<<\EOF
3903 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3907 sed -n -f conftest.hdr confdefs.h > conftest.vals
3910 # This sed command replaces #undef with comments. This is necessary, for
3911 # example, in the case of _POSIX_SOURCE, which is predefined and required
3912 # on some systems where configure will not decide to define it.
3913 cat >> conftest.vals <<\EOF
3914 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3917 # Break up conftest.vals because some shells have a limit on
3918 # the size of here documents, and old seds have small limits too.
3919 # Maximum number of lines to put in a single here document.
3920 ac_max_here_lines=12
3925 ac_lines=`grep -c . conftest.vals
`
3926 # grep -c gives empty output for an empty file on some AIX systems.
3927 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3928 # Write a limited-size here document to conftest.frag.
3929 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3930 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3932 sed -f conftest.frag conftest.in > conftest.out
3934 mv conftest.out conftest.in
3936 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3938 mv conftest.tail conftest.vals
3942 cat >> $CONFIG_STATUS <<\EOF
3943 rm -f conftest.frag conftest.h
3944 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3945 cat conftest.in >> conftest.h
3947 if cmp -s $ac_file conftest.h 2>/dev/null; then
3948 echo "$ac_file is unchanged"
3951 # Remove last slash and all that follows it. Not all systems have dirname.
3952 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3953 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3954 # The file is in a subdirectory.
3955 test ! -d "$ac_dir" && mkdir "$ac_dir"
3958 mv conftest.h $ac_file
3964 cat >> $CONFIG_STATUS <<EOF
3969 cat >> $CONFIG_STATUS <<\EOF
3970 srcdir=$ac_given_srcdir
3971 while test -n "$ac_sources"; do
3972 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3973 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3975 echo "linking $srcdir/$ac_source to $ac_dest"
3977 if test ! -r $srcdir/$ac_source; then
3978 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3982 # Make relative symlinks.
3983 # Remove last slash and all that follows it. Not all systems have dirname.
3984 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
3985 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3986 # The dest file is in a subdirectory.
3987 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3988 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
3989 # A "../" for each directory in $ac_dest_dir_suffix.
3990 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
3992 ac_dest_dir_suffix= ac_dots=
3996 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3997 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4000 # Make a symlink if possible; otherwise try a hard link.
4001 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4002 ln $srcdir/$ac_source $ac_dest; then :
4004 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4008 cat >> $CONFIG_STATUS <<EOF
4010 gdb_host_cpu=$gdb_host_cpu
4011 gdb_target_cpu=$gdb_target_cpu
4012 nativefile=$nativefile
4015 cat >> $CONFIG_STATUS <<\EOF
4017 if test "${nativefile}" = ""; then
4018 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
4019 < Makefile > Makefile.tem
4020 mv -f Makefile.tem Makefile
4023 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
4024 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
4025 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
4026 mv -f Makefile.tmp Makefile
4032 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
4033 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4036 case x$CONFIG_HEADERS in
4037 xconfig.h:config.in)
4043 chmod +x $CONFIG_STATUS
4044 rm -fr confdefs* $ac_clean_files
4045 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4047 if test "$no_recursion" != yes; then
4049 # Remove --cache-file and --srcdir arguments so they do not pile up.
4050 ac_sub_configure_args=
4052 for ac_arg in $ac_configure_args; do
4053 if test -n "$ac_prev"; then
4058 -cache-file | --cache-file | --cache-fil | --cache-fi \
4059 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4060 ac_prev=cache_file ;;
4061 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4062 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4068 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4072 for ac_config_dir in $configdirs; do
4074 # Do not complain, so a configure script can configure whichever
4075 # parts of a large source tree are present.
4076 if test ! -d $srcdir/$ac_config_dir; then
4080 echo configuring in $ac_config_dir
4085 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4087 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4096 .) # No --srcdir option. We are building in place.
4097 ac_sub_srcdir=$srcdir ;;
4098 /*) # Absolute path.
4099 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4101 ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
4104 # Check for guested configure; otherwise get Cygnus style configure.
4105 if test -f $ac_sub_srcdir/configure; then
4106 ac_sub_configure=$ac_sub_srcdir/configure
4107 elif test -f $ac_sub_srcdir/configure.in; then
4108 ac_sub_configure=$ac_configure
4110 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4114 # The recursion is here.
4115 if test -n "$ac_sub_configure"; then
4117 # Make the cache file name correct relative to the subdirectory.
4118 # A "../" for each directory in /$ac_config_dir.
4119 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4120 case "$cache_file" in
4121 /*) ac_sub_cache_file=$cache_file ;;
4123 ac_sub_cache_file="$ac_dots$cache_file" ;;
4125 case "$ac_given_INSTALL" in
4126 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4127 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4130 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4131 # The eval makes quoting arguments work.
4132 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4135 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }