3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.4
5 # Copyright (C) 1992, 1993, 1994 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 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file
=.
/config.cache
38 program_transform_name
=s
,x
,x
,
47 # Initialize some other variables.
54 # If the previous option needs an argument, assign it.
55 if test -n "$ac_prev"; then
56 eval "$ac_prev=\$ac_option"
62 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
66 # Accept the important Cygnus configure options, so we can diagnose typos.
70 -build |
--build |
--buil |
--bui |
--bu |
--b)
72 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=* |
--b=*)
75 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
76 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
78 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
79 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
80 cache_file
="$ac_optarg" ;;
82 -disable-* |
--disable-*)
83 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
84 # Reject names that are not valid shell variable names.
85 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
86 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
88 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
89 eval "enable_${ac_feature}=no" ;;
91 -enable-* |
--enable-*)
92 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
93 # Reject names that are not valid shell variable names.
94 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
95 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
97 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
102 eval "enable_${ac_feature}='$ac_optarg'" ;;
104 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
105 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
106 |
--exec |
--exe |
--ex)
107 ac_prev
=exec_prefix
;;
108 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
109 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
110 |
--exec=* |
--exe=* |
--ex=*)
111 exec_prefix
="$ac_optarg" ;;
113 -gas |
--gas |
--ga |
--g)
114 # Obsolete; use --with-gas.
117 -help |
--help |
--hel |
--he)
118 # Omit some internal or obsolete options to make the list less imposing.
119 # This message is too long to be a string in the A/UX 3.1 sh.
121 Usage: configure [options] [host]
122 Options: [defaults in brackets after descriptions]
124 --cache-file=FILE cache test results in FILE
125 --help print this message
126 --no-create do not create output files
127 --quiet, --silent do not print \`checking...' messages
128 --version print the version of autoconf that created configure
129 Directory and file names:
130 --prefix=PREFIX install architecture-independent files in PREFIX
132 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
134 --srcdir=DIR find the sources in DIR [configure dir or ..]
135 --program-prefix=PREFIX prepend PREFIX to installed program names
136 --program-suffix=SUFFIX append SUFFIX to installed program names
137 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
139 --build=BUILD configure for building on BUILD [BUILD=HOST]
140 --host=HOST configure for HOST [guessed]
141 --target=TARGET configure for TARGET [TARGET=HOST]
142 Features and packages:
143 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
144 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
145 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
146 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
147 --x-includes=DIR X include files are in DIR
148 --x-libraries=DIR X library files are in DIR
149 --enable and --with options recognized:$ac_help
153 -host |
--host |
--hos |
--ho)
155 -host=* |
--host=* |
--hos=* |
--ho=*)
159 # Obsolete; use --without-fp.
162 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
166 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
167 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
170 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
172 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
173 prefix
="$ac_optarg" ;;
175 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
176 |
--program-pre |
--program-pr |
--program-p)
177 ac_prev
=program_prefix
;;
178 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
179 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
180 program_prefix
="$ac_optarg" ;;
182 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
183 |
--program-suf |
--program-su |
--program-s)
184 ac_prev
=program_suffix
;;
185 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
186 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
187 program_suffix
="$ac_optarg" ;;
189 -program-transform-name |
--program-transform-name \
190 |
--program-transform-nam |
--program-transform-na \
191 |
--program-transform-n |
--program-transform- \
192 |
--program-transform |
--program-transfor \
193 |
--program-transfo |
--program-transf \
194 |
--program-trans |
--program-tran \
195 |
--progr-tra |
--program-tr |
--program-t)
196 ac_prev
=program_transform_name
;;
197 -program-transform-name=* |
--program-transform-name=* \
198 |
--program-transform-nam=* |
--program-transform-na=* \
199 |
--program-transform-n=* |
--program-transform-=* \
200 |
--program-transform=* |
--program-transfor=* \
201 |
--program-transfo=* |
--program-transf=* \
202 |
--program-trans=* |
--program-tran=* \
203 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
204 program_transform_name
="$ac_optarg" ;;
206 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
207 |
-silent |
--silent |
--silen |
--sile |
--sil)
210 -site |
--site |
--sit)
212 -site=* |
--site=* |
--sit=*)
215 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
217 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
218 srcdir
="$ac_optarg" ;;
220 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
222 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
223 target
="$ac_optarg" ;;
225 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
228 -version |
--version |
--versio |
--versi |
--vers)
229 echo "configure generated by autoconf version 2.4"
233 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
234 # Reject names that are not valid shell variable names.
235 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
236 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
238 ac_package
=`echo $ac_package| sed 's/-/_/g'`
243 eval "with_${ac_package}='$ac_optarg'" ;;
245 -without-* |
--without-*)
246 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
247 # Reject names that are not valid shell variable names.
248 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
249 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
251 ac_package
=`echo $ac_package| sed 's/-/_/g'`
252 eval "with_${ac_package}=no" ;;
255 # Obsolete; use --with-x.
258 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
259 |
--x-incl |
--x-inc |
--x-in |
--x-i)
260 ac_prev
=x_includes
;;
261 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
262 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
263 x_includes
="$ac_optarg" ;;
265 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
266 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
267 ac_prev
=x_libraries
;;
268 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
269 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
270 x_libraries
="$ac_optarg" ;;
272 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
276 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
277 echo "configure: warning: $ac_option: invalid host type" 1>&2
279 if test "x$nonopt" != xNONE
; then
280 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
288 if test -n "$ac_prev"; then
289 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
292 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
294 # File descriptor usage:
297 # 2 errors and warnings
298 # 3 some systems may open it to /dev/tty
299 # 4 used on the Kubota Titan
300 # 6 checking for... messages and results
301 # 5 compiler messages saved in config.log
302 if test "$silent" = yes; then
310 This file contains any messages produced by compilers while
311 running configure, to aid debugging if configure makes a mistake.
314 # Strip out --no-create and --no-recursion so they do not pile up.
315 # Also quote any args containing shell metacharacters.
320 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
321 |
--no-cr |
--no-c) ;;
322 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
323 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
324 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
325 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
326 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
331 # Only set LANG and LC_ALL to C if already set.
332 # These must not be set unconditionally because not all systems understand
333 # e.g. LANG=C (notably SCO).
334 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
335 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
338 rm -rf conftest
* confdefs.h
339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
342 # A filename unique to this package, relative to the directory that
343 # configure is in, which we can look for to find out if srcdir is correct.
344 ac_unique_file
=main.c
346 # Find the source files, if location was not specified.
347 if test -z "$srcdir"; then
348 ac_srcdir_defaulted
=yes
349 # Try the directory containing this script, then its parent.
351 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
352 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
354 if test ! -r $srcdir/$ac_unique_file; then
358 ac_srcdir_defaulted
=no
360 if test ! -r $srcdir/$ac_unique_file; then
361 if test "$ac_srcdir_defaulted" = yes; then
362 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
364 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
367 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
369 # Prefer explicitly selected file to automatically selected ones.
370 if test -z "$CONFIG_SITE"; then
371 if test "x$prefix" != xNONE
; then
372 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
374 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
377 for ac_site_file
in $CONFIG_SITE; do
378 if test -r "$ac_site_file"; then
379 echo "loading site script $ac_site_file"
384 if test -r "$cache_file"; then
385 echo "loading cache $cache_file"
388 echo "creating cache $cache_file"
393 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
394 ac_cpp
='$CPP $CPPFLAGS'
395 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
396 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
398 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
399 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
400 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
407 ac_n
= ac_c
='\c' ac_t
=
413 # Extract the first word of "gcc", so it can be a program name with args.
414 set dummy gcc
; ac_word
=$2
415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
416 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
417 echo $ac_n "(cached) $ac_c" 1>&6
419 if test -n "$CC"; then
420 ac_cv_prog_CC
="$CC" # Let the user override the test.
422 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
423 for ac_dir
in $PATH; do
424 test -z "$ac_dir" && ac_dir
=.
425 if test -f $ac_dir/$ac_word; then
431 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="cc"
435 if test -n "$CC"; then
436 echo "$ac_t""$CC" 1>&6
438 echo "$ac_t""no" 1>&6
442 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
443 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
444 echo $ac_n "(cached) $ac_c" 1>&6
446 cat > conftest.c
<<EOF
451 if ${CC-cc} -E conftest.c
2>&5 |
egrep yes >/dev
/null
2>&1; then
457 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
458 if test $ac_cv_prog_gcc = yes; then
460 if test "${CFLAGS+set}" != set; then
461 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
462 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
463 echo $ac_n "(cached) $ac_c" 1>&6
465 echo 'void f(){}' > conftest.c
466 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
474 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
475 if test $ac_cv_prog_gcc_g = yes; then
483 test "${CFLAGS+set}" = set || CFLAGS
="-g"
486 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
487 # On Suns, sometimes $CPP names a directory.
488 if test -n "$CPP" && test -d "$CPP"; then
491 if test -z "$CPP"; then
492 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
493 echo $ac_n "(cached) $ac_c" 1>&6
495 # This must be in double quotes, not single quotes, because CPP may get
496 # substituted into the Makefile and "${CC-cc}" will confuse make.
498 # On the NeXT, cc -E runs the code through the compiler's parser,
499 # not just through cpp.
500 cat > conftest.
$ac_ext <<EOF
501 #line 502 "configure"
502 #include "confdefs.h"
506 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
507 ac_err
=`grep -v '^ *+' conftest.out`
508 if test -z "$ac_err"; then
513 CPP
="${CC-cc} -E -traditional-cpp"
514 cat > conftest.
$ac_ext <<EOF
515 #line 516 "configure"
516 #include "confdefs.h"
520 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
521 ac_err
=`grep -v '^ *+' conftest.out`
522 if test -z "$ac_err"; then
532 ac_cv_prog_CPP
="$CPP"
534 CPP
="$ac_cv_prog_CPP"
536 ac_cv_prog_CPP
="$CPP"
538 echo "$ac_t""$CPP" 1>&6
540 echo $ac_n "checking for AIX""... $ac_c" 1>&6
541 cat > conftest.
$ac_ext <<EOF
542 #line 543 "configure"
543 #include "confdefs.h"
549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
550 egrep "yes" >/dev
/null
2>&1; then
552 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
553 #define _ALL_SOURCE 1
558 echo "$ac_t""no" 1>&6
563 ac_safe
=`echo "minix/config.h" | tr './\055' '___'`
564 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
568 cat > conftest.
$ac_ext <<EOF
569 #line 570 "configure"
570 #include "confdefs.h"
571 #include <minix/config.h>
573 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
574 ac_err
=`grep -v '^ *+' conftest.out`
575 if test -z "$ac_err"; then
577 eval "ac_cv_header_$ac_safe=yes"
581 eval "ac_cv_header_$ac_safe=no"
585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
586 echo "$ac_t""yes" 1>&6
589 echo "$ac_t""no" 1>&6
593 if test "$MINIX" = yes; then
594 cat >> confdefs.h
<<\EOF
595 #define _POSIX_SOURCE 1
598 cat >> confdefs.h
<<\EOF
599 #define _POSIX_1_SOURCE 2
602 cat >> confdefs.h
<<\EOF
608 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
609 if test -d /etc
/conf
/kconfig.d
&&
610 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
612 echo "$ac_t""yes" 1>&6
613 ISC
=yes # If later tests want to check for ISC.
614 cat >> confdefs.h
<<\EOF
615 #define _POSIX_SOURCE 1
618 if test "$GCC" = yes; then
624 echo "$ac_t""no" 1>&6
630 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
631 if test -f $ac_dir/install-sh
; then
633 ac_install_sh
="$ac_aux_dir/install-sh -c"
635 elif test -f $ac_dir/install.sh
; then
637 ac_install_sh
="$ac_aux_dir/install.sh -c"
641 if test -z "$ac_aux_dir"; then
642 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
644 ac_config_guess
=$ac_aux_dir/config.guess
645 ac_config_sub
=$ac_aux_dir/config.sub
646 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
648 # Find a good install program. We prefer a C program (faster),
649 # so one script is as good as another. But avoid the broken or
650 # incompatible versions:
651 # SysV /etc/install, /usr/sbin/install
652 # SunOS /usr/etc/install
655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
657 # ./install, which can be erroneously created by make from ./install.sh.
658 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
659 if test -z "$INSTALL"; then
660 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
661 echo $ac_n "(cached) $ac_c" 1>&6
663 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
664 for ac_dir
in $PATH; do
665 # Account for people who put trailing slashes in PATH elements.
667 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
669 # OSF1 and SCO ODT 3.0 have their own names for install.
670 for ac_prog
in ginstall installbsd scoinst
install; do
671 if test -f $ac_dir/$ac_prog; then
672 if test $ac_prog = install &&
673 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
674 # AIX install. It has an incompatible calling convention.
675 # OSF/1 installbsd also uses dspmsg, but is usable.
678 ac_cv_path_install
="$ac_dir/$ac_prog -c"
687 # As a last resort, use the slow shell script.
688 test -z "$ac_cv_path_install" && ac_cv_path_install
="$ac_install_sh"
690 INSTALL
="$ac_cv_path_install"
692 echo "$ac_t""$INSTALL" 1>&6
694 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
695 # It thinks the first close brace ends the variable substitution.
696 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
698 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
700 # Extract the first word of "ranlib", so it can be a program name with args.
701 set dummy ranlib
; ac_word
=$2
702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
703 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
706 if test -n "$RANLIB"; then
707 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
709 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
710 for ac_dir
in $PATH; do
711 test -z "$ac_dir" && ac_dir
=.
712 if test -f $ac_dir/$ac_word; then
713 ac_cv_prog_RANLIB
="ranlib"
718 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
721 RANLIB
="$ac_cv_prog_RANLIB"
722 if test -n "$RANLIB"; then
723 echo "$ac_t""$RANLIB" 1>&6
725 echo "$ac_t""no" 1>&6
728 for ac_prog
in 'bison -y' byacc
730 # Extract the first word of "$ac_prog", so it can be a program name with args.
731 set dummy
$ac_prog; ac_word
=$2
732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
733 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
736 if test -n "$YACC"; then
737 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
739 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
740 for ac_dir
in $PATH; do
741 test -z "$ac_dir" && ac_dir
=.
742 if test -f $ac_dir/$ac_word; then
743 ac_cv_prog_YACC
="$ac_prog"
750 YACC
="$ac_cv_prog_YACC"
751 if test -n "$YACC"; then
752 echo "$ac_t""$YACC" 1>&6
754 echo "$ac_t""no" 1>&6
757 test -n "$YACC" && break
759 test -n "$YACC" || YACC
="yacc"
763 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
764 if test -f $ac_dir/install-sh
; then
766 ac_install_sh
="$ac_aux_dir/install-sh -c"
768 elif test -f $ac_dir/install.sh
; then
770 ac_install_sh
="$ac_aux_dir/install.sh -c"
774 if test -z "$ac_aux_dir"; then
775 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
777 ac_config_guess
=$ac_aux_dir/config.guess
778 ac_config_sub
=$ac_aux_dir/config.sub
779 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
782 # Do some error checking and defaulting for the host and target type.
784 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
787 # 1. You are not allowed to specify --host, --target, and nonopt at the
789 # 2. Host defaults to nonopt.
790 # 3. If nonopt is not specified, then host defaults to the current host,
791 # as determined by config.guess.
792 # 4. Target and build default to nonopt.
793 # 5. If nonopt is not specified, then target and build default to host.
795 # The aliases save the names the user supplied, while $host etc.
796 # will get canonicalized.
797 case $host---$target---$nonopt in
798 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
799 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
803 # Make sure we can run config.sub.
804 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
805 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
808 echo $ac_n "checking host system type""... $ac_c" 1>&6
811 case "$host_alias" in
815 if host_alias
=`$ac_config_guess`; then :
816 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
818 *) host_alias
=$nonopt ;;
822 host=`$ac_config_sub $host_alias`
823 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
824 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
825 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
826 echo "$ac_t""$host" 1>&6
828 echo $ac_n "checking target system type""... $ac_c" 1>&6
831 case "$target_alias" in
834 NONE
) target_alias
=$host_alias ;;
835 *) target_alias
=$nonopt ;;
839 target
=`$ac_config_sub $target_alias`
840 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
841 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
842 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
843 echo "$ac_t""$target" 1>&6
845 echo $ac_n "checking build system type""... $ac_c" 1>&6
848 case "$build_alias" in
851 NONE
) build_alias
=$host_alias ;;
852 *) build_alias
=$nonopt ;;
856 build
=`$ac_config_sub $build_alias`
857 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
858 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
859 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
860 echo "$ac_t""$build" 1>&6
862 test "$host_alias" != "$target_alias" &&
863 test "$program_prefix$program_suffix$program_transform_name" = \
865 program_prefix
=${target_alias}-
867 if test "$program_transform_name" = s
,x
,x
,; then
868 program_transform_name
=
871 echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
872 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
875 test "$program_prefix" != NONE
&&
876 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
877 # Use a double $ so make ignores it.
878 test "$program_suffix" != NONE
&&
879 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
881 # sed with no file args requires a program.
882 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
885 # If we cannot run a trivial program, we must be cross compiling.
886 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
887 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
890 if test "$cross_compiling" = yes; then
893 cat > conftest.
$ac_ext <<EOF
894 #line 895 "configure"
895 #include "confdefs.h"
899 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
907 cross_compiling
=$ac_cv_c_cross
908 echo "$ac_t""$ac_cv_c_cross" 1>&6
910 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
911 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
914 cat > conftest.
$ac_ext <<EOF
915 #line 916 "configure"
916 #include "confdefs.h"
922 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
923 ac_err
=`grep -v '^ *+' conftest.out`
924 if test -z "$ac_err"; then
926 ac_cv_header_stdc
=yes
934 if test $ac_cv_header_stdc = yes; then
935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
936 cat > conftest.
$ac_ext <<EOF
937 #line 938 "configure"
938 #include "confdefs.h"
941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
942 egrep "memchr" >/dev
/null
2>&1; then
952 if test $ac_cv_header_stdc = yes; then
953 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
954 cat > conftest.
$ac_ext <<EOF
955 #line 956 "configure"
956 #include "confdefs.h"
959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
960 egrep "free" >/dev
/null
2>&1; then
970 if test $ac_cv_header_stdc = yes; then
971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
972 if test "$cross_compiling" = yes; then
975 cat > conftest.
$ac_ext <<EOF
976 #line 977 "configure"
977 #include "confdefs.h"
979 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
980 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
981 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
982 int main () { int i; for (i = 0; i < 256; i++)
983 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
988 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
997 echo "$ac_t""$ac_cv_header_stdc" 1>&6
998 if test $ac_cv_header_stdc = yes; then
999 cat >> confdefs.h
<<\EOF
1000 #define STDC_HEADERS 1
1005 for ac_hdr
in memory.h string.h
strings.h unistd.h termios.h termio.h sgtty.h stddef.h
1007 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 cat > conftest.
$ac_ext <<EOF
1013 #line 1014 "configure"
1014 #include "confdefs.h"
1017 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1018 ac_err
=`grep -v '^ *+' conftest.out`
1019 if test -z "$ac_err"; then
1021 eval "ac_cv_header_$ac_safe=yes"
1025 eval "ac_cv_header_$ac_safe=no"
1029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1030 echo "$ac_t""yes" 1>&6
1031 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
1032 cat >> confdefs.h
<<EOF
1033 #define $ac_tr_hdr 1
1037 echo "$ac_t""no" 1>&6
1041 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1042 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 cat > conftest.
$ac_ext <<EOF
1046 #line 1047 "configure"
1047 #include "confdefs.h"
1048 #include <sys/types.h>
1049 #include <sys/stat.h>
1051 #if defined(S_ISBLK) && defined(S_IFDIR)
1052 # if S_ISBLK (S_IFDIR)
1057 #if defined(S_ISBLK) && defined(S_IFCHR)
1058 # if S_ISBLK (S_IFCHR)
1063 #if defined(S_ISLNK) && defined(S_IFREG)
1064 # if S_ISLNK (S_IFREG)
1069 #if defined(S_ISSOCK) && defined(S_IFREG)
1070 # if S_ISSOCK (S_IFREG)
1076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1077 egrep "You lose" >/dev
/null
2>&1; then
1079 ac_cv_header_stat_broken
=yes
1082 ac_cv_header_stat_broken
=no
1087 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1088 if test $ac_cv_header_stat_broken = yes; then
1089 cat >> confdefs.h
<<\EOF
1090 #define STAT_MACROS_BROKEN 1
1096 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1097 if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 if test "$cross_compiling" = yes; then
1103 cat > conftest.
$ac_ext <<EOF
1104 #line 1105 "configure"
1105 #include "confdefs.h"
1107 /* Thanks to Mike Haertel and Jim Avera for this test. */
1108 #include <sys/types.h>
1110 #include <sys/mman.h>
1114 # define HAVE_GETPAGESIZE
1118 #ifndef HAVE_GETPAGESIZE
1119 # include <sys/param.h>
1120 # ifdef EXEC_PAGESIZE
1121 # define getpagesize() EXEC_PAGESIZE
1124 # define getpagesize() NBPG * CLSIZE
1130 # define getpagesize() NBPC
1132 # define getpagesize() PAGESIZE /* SVR4 */
1139 # define valloc malloc
1143 extern "C" { void *valloc(unsigned), *malloc(unsigned); }
1145 char *valloc(), *malloc();
1151 char *buf1, *buf2, *buf3;
1152 int i = getpagesize(), j;
1153 int i2 = getpagesize()*2;
1156 buf1 = (char *)valloc(i2);
1157 buf2 = (char *)valloc(i);
1158 buf3 = (char *)malloc(i2);
1159 for (j = 0; j < i2; ++j)
1160 *(buf1 + j) = rand();
1161 fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
1162 write(fd, buf1, i2);
1163 mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
1164 for (j = 0; j < i; ++j)
1165 if (*(buf1 + j) != *(buf2 + j))
1167 lseek(fd, (long)i, 0);
1168 read(fd, buf2, i); /* read into mapped memory -- file should not change */
1169 /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
1170 lseek(fd, (long)0, 0);
1172 for (j = 0; j < i2; ++j)
1173 if (*(buf1 + j) != *(buf3 + j))
1180 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1188 echo "$ac_t""$ac_cv_func_mmap" 1>&6
1189 if test $ac_cv_func_mmap = yes; then
1190 cat >> confdefs.h
<<\EOF
1201 # Check whether --enable-netrom or --disable-netrom was given.
1202 enableval
="$enable_netrom"
1203 if test -n "$enableval"; then
1204 case "${enableval}" in
1205 yes) enable_netrom
=yes ;;
1206 no
) enable_netrom
=no
;;
1207 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
1212 if test "${enable_netrom}" = "yes"; then
1213 ENABLE_OBS
="${ENABLE_OBS} remote-nrom.o"
1219 # Check whether --enable-gm or --disable-gm was given.
1220 enableval
="$enable_gm"
1221 if test -n "$enableval"; then
1222 case "${enableval}" in
1223 yes) ENABLE_OBS
="${ENABLE_OBS} magic.o"
1224 ENABLE_CFLAGS
=-DGENERAL_MAGIC
1227 *) { echo "configure: error: bad value ${enableval} given for gm option" 1>&2; exit 1; } ;;
1234 # Check whether --enable-sim-powerpc or --disable-sim-powerpc was given.
1235 enableval
="$enable_sim_powerpc"
1236 if test -n "$enableval"; then
1237 case "${enableval}" in
1238 yes) powerpc_sim
=yes ;;
1239 no
) powerpc_sim
=no
;;
1240 *) { echo "configure: error: bad value ${enableval} given for sim-powerpc option" 1>&2; exit 1; } ;;
1243 if test x
"$GCC" != x
""; then powerpc_sim
=yes; else powerpc_sim
=no
; fi
1247 # start-sanitize-gdbtk
1250 # Check whether --enable-gdbtk or --disable-gdbtk was given.
1251 enableval
="$enable_gdbtk"
1252 if test -n "$enableval"; then
1253 case "${enableval}" in
1254 yes) enable_gdbtk
=yes ;;
1255 no
) enable_gdbtk
=no
;;
1256 *) { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
1261 if test "${enable_gdbtk}" = "yes"; then
1262 # If we find X, set shell vars x_includes and x_libraries to the
1263 # paths, otherwise set no_x=yes.
1264 # Uses ac_ vars as temps to allow command line to override cache and checks.
1265 # --without-x overrides everything else, but does not touch the cache.
1266 echo $ac_n "checking for X""... $ac_c" 1>&6
1268 # Check whether --with-x or --without-x was given.
1270 if test -n "$withval"; then
1274 if test "x$with_x" = xno
; then
1277 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1280 if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 # One or both of the vars are not set, and there is no cached value.
1286 if mkdir conftestdir
; then
1288 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1289 cat > Imakefile
<<'EOF'
1291 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1293 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1295 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1296 eval `make acfindx 2>/dev/null | grep -v make`
1297 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1298 for ac_extension
in a so sl
; do
1299 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1300 test -f $ac_im_libdir/libX11.
$ac_extension; then
1301 ac_im_usrlibdir
=$ac_im_libdir; break
1304 # Screen out bogus values from the imake configuration.
1305 case "$ac_im_incroot" in
1307 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1309 case "$ac_im_usrlibdir" in
1311 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1318 if test "$no_x" = yes; then
1319 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1320 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1321 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1322 cat > conftest.
$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1325 #include <$x_direct_test_include>
1327 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1328 ac_err
=`grep -v '^ *+' conftest.out`
1329 if test -z "$ac_err"; then
1331 no_x
= ac_x_includes
=
1336 /usr
/X11R
6/include \
1337 /usr
/X11R
5/include \
1338 /usr
/X11R
4/include \
1340 /usr
/include
/X11R6 \
1341 /usr
/include
/X11R5 \
1342 /usr
/include
/X11R4 \
1344 /usr
/local
/X11R
6/include \
1345 /usr
/local
/X11R
5/include \
1346 /usr
/local
/X11R
4/include \
1348 /usr
/local
/include
/X11R6 \
1349 /usr
/local
/include
/X11R5 \
1350 /usr
/local
/include
/X11R4 \
1354 /usr
/local
/X11
/include \
1355 /usr
/local
/include
/X11 \
1359 /usr
/XFree86
/include
/X11 \
1362 /usr
/local
/include \
1363 /usr
/unsupported
/include \
1364 /usr
/athena
/include \
1365 /usr
/local
/x11r
5/include \
1366 /usr
/lpp
/Xamples
/include \
1368 /usr
/openwin
/include \
1369 /usr
/openwin
/share
/include \
1372 if test -r "$ac_dir/$x_direct_test_include"; then
1373 no_x
= ac_x_includes
=$ac_dir
1380 # Check for the libraries.
1381 # See if we find them without any special options.
1382 # Don't add to $LIBS permanently.
1383 ac_save_LIBS
="$LIBS"
1384 LIBS
="-l$x_direct_test_library $LIBS"
1385 cat > conftest.
$ac_ext <<EOF
1386 #line 1387 "configure"
1387 #include "confdefs.h"
1389 int main() { return 0; }
1391 ${x_direct_test_function}()
1394 if eval $ac_link; then
1396 LIBS
="$ac_save_LIBS" no_x
= ac_x_libraries
=
1399 LIBS
="$ac_save_LIBS"
1400 # First see if replacing the include by lib works.
1401 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1410 /usr
/local
/X11R
6/lib \
1411 /usr
/local
/X11R
5/lib \
1412 /usr
/local
/X11R
4/lib \
1414 /usr
/local
/lib
/X11R6 \
1415 /usr
/local
/lib
/X11R5 \
1416 /usr
/local
/lib
/X11R4 \
1420 /usr
/local
/X11
/lib \
1421 /usr
/local
/lib
/X11 \
1425 /usr
/XFree86
/lib
/X11 \
1429 /usr
/unsupported
/lib \
1431 /usr
/local
/x11r
5/lib \
1432 /usr
/lpp
/Xamples
/lib \
1435 /usr
/openwin
/share
/lib \
1438 for ac_extension
in a so sl
; do
1439 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1440 no_x
= ac_x_libraries
=$ac_dir
1449 if test "$no_x" = yes; then
1450 ac_cv_path_x
="no_x=yes"
1452 ac_cv_path_x
="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1456 eval "$ac_cv_path_x"
1459 if test "$no_x" = yes; then
1460 echo "$ac_t""no" 1>&6
1462 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1463 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1464 ac_cv_path_x
="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1465 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1468 if test "$no_x" = yes; then
1469 # Not all programs may use this symbol, but it does not hurt to define it.
1470 X_CFLAGS
="$X_CFLAGS -DX_DISPLAY_MISSING"
1472 if test -n "$x_includes"; then
1473 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1476 # It would be nice to have a more robust check for the -R ld option than
1477 # just checking for Solaris.
1478 # It would also be nice to do this for all -L options, not just this one.
1479 if test -n "$x_libraries"; then
1480 X_LIBS
="$X_LIBS -L$x_libraries"
1481 if test "`(uname) 2>/dev/null`" = SunOS
&&
1482 uname
-r |
grep '^5' >/dev
/null
; then
1483 X_LIBS
="$X_LIBS -R$x_libraries"
1487 # Check for libraries that X11R6 Xt/Xaw programs need.
1489 ac_save_LDFLAGS
="$LDFLAGS"
1490 LDFLAGS
="$LDFLAGS -L$x_libraries"
1491 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1492 # check for ICE first), but we must link in the order -lSM -lICE or
1493 # we get undefined symbols. So assume we have SM if we have ICE.
1494 # These have to be linked with before -lX11, unlike the other
1495 # libraries we check for below, so use a different variable.
1496 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1497 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
1498 if eval "test \"`echo '$''{'ac_cv_lib_ICE'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 ac_save_LIBS
="$LIBS"
1503 cat > conftest.
$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1507 int main() { return 0; }
1509 IceConnectionNumber()
1512 if eval $ac_link; then
1514 eval "ac_cv_lib_ICE=yes"
1517 eval "ac_cv_lib_ICE=no"
1520 LIBS
="$ac_save_LIBS"
1523 if eval "test \"`echo '$ac_cv_lib_'ICE`\" = yes"; then
1524 echo "$ac_t""yes" 1>&6
1525 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1527 echo "$ac_t""no" 1>&6
1530 LDFLAGS
="$ac_save_LDFLAGS"
1532 # Check for system-dependent libraries X programs must link with.
1534 if test "$ISC" = yes; then
1535 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1537 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1538 # libraries were built with DECnet support. And karl@cs.umb.edu says
1539 # the Alpha needs dnet_stub (dnet does not exist).
1540 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
1541 if eval "test \"`echo '$''{'ac_cv_lib_dnet'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 ac_save_LIBS
="$LIBS"
1546 cat > conftest.
$ac_ext <<EOF
1547 #line 1548 "configure"
1548 #include "confdefs.h"
1550 int main() { return 0; }
1555 if eval $ac_link; then
1557 eval "ac_cv_lib_dnet=yes"
1560 eval "ac_cv_lib_dnet=no"
1563 LIBS
="$ac_save_LIBS"
1566 if eval "test \"`echo '$ac_cv_lib_'dnet`\" = yes"; then
1567 echo "$ac_t""yes" 1>&6
1568 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1570 echo "$ac_t""no" 1>&6
1573 if test $ac_cv_lib_dnet = no
; then
1574 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
1575 if eval "test \"`echo '$''{'ac_cv_lib_dnet_stub'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 ac_save_LIBS
="$LIBS"
1579 LIBS
="-ldnet_stub $LIBS"
1580 cat > conftest.
$ac_ext <<EOF
1581 #line 1582 "configure"
1582 #include "confdefs.h"
1584 int main() { return 0; }
1589 if eval $ac_link; then
1591 eval "ac_cv_lib_dnet_stub=yes"
1594 eval "ac_cv_lib_dnet_stub=no"
1597 LIBS
="$ac_save_LIBS"
1600 if eval "test \"`echo '$ac_cv_lib_'dnet_stub`\" = yes"; then
1601 echo "$ac_t""yes" 1>&6
1602 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1604 echo "$ac_t""no" 1>&6
1609 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1610 # to get the SysV transport functions.
1611 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
1613 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
1614 if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 ac_save_LIBS
="$LIBS"
1619 cat > conftest.
$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1623 int main() { return 0; }
1628 if eval $ac_link; then
1630 eval "ac_cv_lib_nsl=yes"
1633 eval "ac_cv_lib_nsl=no"
1636 LIBS
="$ac_save_LIBS"
1639 if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
1640 echo "$ac_t""yes" 1>&6
1641 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1643 echo "$ac_t""no" 1>&6
1647 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1648 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
1649 # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
1650 if test "`(uname) 2>/dev/null`" != IRIX
; then
1651 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1652 if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 ac_save_LIBS
="$LIBS"
1656 LIBS
="-lsocket $LIBS"
1657 cat > conftest.
$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1661 int main() { return 0; }
1666 if eval $ac_link; then
1668 eval "ac_cv_lib_socket=yes"
1671 eval "ac_cv_lib_socket=no"
1674 LIBS
="$ac_save_LIBS"
1677 if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
1678 echo "$ac_t""yes" 1>&6
1679 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lsocket"
1681 echo "$ac_t""no" 1>&6
1691 # Ok, lets find the tk source trees so we can use the headers
1692 # If the directory (presumably symlink) named "tk" exists, use that one
1693 # in preference to any others. Same logic is used when choosing library
1694 # and again with Tcl.
1696 echo "checking for Tk source directory" 1>&6
1698 for i
in `ls -d ${srcdir}/../tk* 2>/dev/null` ${srcdir}/..
/tk
; do
1699 if test -f $i/tk.h
; then
1703 # if we can't find it, see if one is installed
1704 if test x
"$TKHDIR" = x
; then
1706 if test -f $prefix/include
/tk.h
; then
1707 installed
=1 TKHDIR
="-I$prefix/include"
1709 ac_safe
=`echo "tk.h" | tr './\055' '___'`
1710 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
1711 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 cat > conftest.
$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1719 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1720 ac_err
=`grep -v '^ *+' conftest.out`
1721 if test -z "$ac_err"; then
1723 eval "ac_cv_header_$ac_safe=yes"
1727 eval "ac_cv_header_$ac_safe=no"
1731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1732 echo "$ac_t""yes" 1>&6
1735 echo "$ac_t""no" 1>&6
1739 if test $installed -eq 0 ; then
1740 TKHDIR
="# no Tk directory found"
1741 echo "configure: warning: Can't find Tk directory" 1>&2
1744 if test x
"$TKHDIR" != x
; then
1745 echo "$ac_t""Setting TKHDIR to be $i" 1>&6
1749 # Ok, lets find the tk library
1750 # First, look for one uninstalled.
1753 echo "checking for Tk library" 1>&6
1754 for i
in `ls -d ../tk* 2>/dev/null` ..
/tk
; do
1755 if test -f "$i/Makefile" ; then
1759 # If not found, look for installed version
1760 if test x
"$TKLIB" = x
; then
1761 if test -f $prefix/lib
/libtk.a
; then
1766 if test $installed -eq 1 ; then
1771 # If still not found, assume Tk simply hasn't been built yet
1772 if test x
"$TKLIB" = x
; then
1773 for i
in `ls -d ../tk* 2>/dev/null` ..
/tk
; do
1774 if test -f "$i/tk.h" ; then
1780 if test x
"$TKLIB" = x
; then
1781 TKLIB
="# no Tk library found"
1782 echo "configure: warning: Can't find Tk library" 1>&2
1784 echo "$ac_t""setting TKLIB to be $TKLIB" 1>&6
1793 # Ok, lets find the tcl source trees so we can use the headers
1795 # Warning: transition of version 9 to 10 will break this algorithm
1796 # because 10 sorts before 9.
1798 echo "checking for Tcl source directory" 1>&6
1800 for i
in `ls -d ${srcdir}/../tcl* 2>/dev/null` ${srcdir}/..
/tcl
; do
1801 if test -f $i/tclInt.h
; then
1805 # if we can't find it, see if one is installed
1806 if test x
"$TCLHDIR" = x
; then
1808 if test -f $prefix/include
/tclInt.h
; then
1809 installed
=1 TCLHDIR
="-I$prefix/include"
1811 ac_safe
=`echo "tclInt.h" | tr './\055' '___'`
1812 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
1813 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 cat > conftest.
$ac_ext <<EOF
1817 #line 1818 "configure"
1818 #include "confdefs.h"
1821 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1822 ac_err
=`grep -v '^ *+' conftest.out`
1823 if test -z "$ac_err"; then
1825 eval "ac_cv_header_$ac_safe=yes"
1829 eval "ac_cv_header_$ac_safe=no"
1833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1834 echo "$ac_t""yes" 1>&6
1837 echo "$ac_t""no" 1>&6
1841 if test $installed -eq 0 ; then
1842 TCLHDIR
="# no Tcl directory found"
1843 echo "configure: warning: Can't find Tcl directory" 1>&2
1846 echo "$ac_t""setting TCLHDIR to be $i" 1>&6
1850 # Ok, lets find the tcl library
1851 # First, look for the latest uninstalled
1854 echo "checking for Tcl library" 1>&6
1855 for i
in `ls -d ../tcl* 2>/dev/null` ..
/tcl
; do
1856 if test -f "$i/Makefile" ; then
1860 # If not found, look for installed version
1861 if test x
"$TCLLIB" = x
; then
1862 if test -f $prefix/lib
/libtcl.a
; then installed
=1; else installed
=0; fi
1863 if test $installed -eq 1 ; then
1867 # If still not found, assume Tcl simply hasn't been built yet
1868 if test x
"$TCLLIB" = x
; then
1869 for i
in `ls -d ../tcl* 2>/dev/null` ..
/tcl
; do
1870 if test -f "$i/tcl.h" ; then
1876 if test x
"$TCLLIB" = x
; then
1877 TCLLIB
="# no Tcl library found"
1878 echo "configure: warning: Can't find Tcl library" 1>&2
1880 echo "$ac_t""setting TCLLIB to be $TCLLIB" 1>&6
1889 if test "x$no_x" != "xyes"; then
1890 if test "x$x_includes" != "x" ;
1892 X_CFLAGS
="-I$x_includes"
1897 if test "x$x_libraries" != "x" ;
1899 X_LDFLAGS
="-L$x_libraries"
1906 # gdb linked statically w/ Solaris iff GCC is used, otherwise dynamic
1908 sparc-sun-solaris2
*)
1909 if test "x$GCC" = "xyes";
1911 X_LIBS
="-Wl,-Bstatic -lX11 -lXext -lX11 -Wl,-Bdynamic"
1913 if test "x$x_libraries" != "x" ;
1915 X_LDFLAGS
="$X_LDFLAGS -R$x_libraries"
1917 X_LIBS
="-lX11 -lXext -lX11"
1920 # gdb linked statically w/ SunOS or HPUX
1922 m68k-hp-hpux
*|hppa
*-hp-hpux*|sparc-sun-sunos
*)
1923 if test "x$x_libraries" != "x" ;
1925 X_LIBS
="$x_libraries/libX11.a"
1927 X_LIBS
="/usr/lib/libX11.a"
1930 # default is to link dynamically
1939 echo "configure: warning: No X based programs will be built" 1>&2
1942 TCL_LIBS
='$(TCL) $(TK) $(X11_LDFLAGS) $(X11_LIBS)'
1943 ENABLE_CLIBS
="${ENABLE_CLIBS} ${TCL_LIBS} -lm"
1944 ENABLE_OBS
="${ENABLE_OBS} gdbtk.o"
1951 # end-sanitize-gdbtk
1958 configdirs
="doc testsuite"
1961 # Map host cpu into the config cpu subdirectory name.
1962 # The default is $host_cpu.
1964 case "${host_cpu}" in
1966 c
[12]) gdb_host_cpu
=convex
;;
1967 hppa
*) gdb_host_cpu
=pa
;;
1968 i
[345]86) gdb_host_cpu
=i386
;;
1969 m68
*) gdb_host_cpu
=m68k
;;
1970 m88
*) gdb_host_cpu
=m88k
;;
1971 np1
) gdb_host_cpu
=gould
;;
1972 pyramid
) gdb_host_cpu
=pyr
;;
1973 powerpc
*) gdb_host_cpu
=powerpc
;;
1974 *) gdb_host_cpu
=$host_cpu ;;
1978 # map host info into gdb names.
1982 a29k-
*-*) gdb_host
=ultra3
;;
1984 alpha-
*-osf1*) gdb_host
=alpha-osf1
;;
1985 alpha-
*-osf2*) gdb_host
=alpha-osf2
;;
1986 alpha-
*-osf[3456789]*) gdb_host
=alpha-osf3
;;
1988 arm-
*-*) gdb_host
=arm
;;
1990 c
[12]-*-*) gdb_host
=convex
;;
1992 hppa
*-*-bsd*) gdb_host
=hppabsd
;;
1993 hppa
*-*-hiux*) gdb_host
=hppahpux
;;
1994 hppa
*-*-hpux*) gdb_host
=hppahpux
;;
1995 hppa
*-*-osf*) gdb_host
=hppaosf
;;
1997 i
[345]86-ncr-*) gdb_host
=ncr3000
;;
1998 i
[345]86-sequent-bsd*) gdb_host
=symmetry
;; # dynix
1999 i
[345]86-sequent-sysv4*) gdb_host
=ptx4
;;
2000 i
[345]86-sequent-sysv*) gdb_host
=ptx ;;
2001 i
[345]86-*-aix*) gdb_host
=i386aix
;;
2002 i
[345]86-*-bsd*) gdb_host
=i386bsd
;;
2003 i
[345]86-*-freebsd*) gdb_host
=fbsd
;;
2004 i
[345]86-*-netbsd*) gdb_host
=nbsd
;;
2005 i
[345]86-*-go32*) gdb_host
=go32
;;
2006 i
[345]86-*-linux*) gdb_host
=linux
;;
2007 i
[345]86-*-lynxos*) gdb_host
=i386lynx
;;
2008 i
[345]86-*-mach3*) gdb_host
=i386m3
;;
2009 i
[345]86-*-mach*) gdb_host
=i386mach
;;
2010 i
[345]86-*-osf1mk*) gdb_host
=osf1mk
;;
2011 i
[345]86-*-sco3.2v4
*) gdb_host
=i386sco4
;;
2012 i
[345]86-*-sco*) gdb_host
=i386sco
;;
2013 i
[345]86-*-solaris*) gdb_host
=i386sol2
;;
2014 i
[345]86-*-sunos*) gdb_host
=sun386
;;
2015 i
[345]86-*-sysv3.2
*) gdb_host
=i386v32
;;
2016 i
[345]86-*-sysv32*) gdb_host
=i386v32
;;
2017 i
[345]86-*-sysv4*) gdb_host
=i386v4
;;
2018 i
[345]86-*-unixware) gdb_host
=i386v4
;;
2019 i
[345]86-*-sysv*) gdb_host
=i386v
;;
2020 i
[345]86-*-isc*) gdb_host
=i386v32
;;
2021 i
[345]86-*-os9k) gdb_host
=i386os9k
;;
2022 i
[345]86-*-win32*) gdb_host
=win32
;;
2023 m680
[01]0-sun-sunos3*) gdb_host
=sun2os3
;;
2024 m680
[01]0-sun-sunos4*) gdb_host
=sun2os4
;;
2025 m68030-sony-
*) gdb_host
=news1000
;;
2027 m68
*-altos-*) gdb_host
=altos
;;
2028 m68
*-apollo*-sysv*) gdb_host
=apollo68v
;;
2029 m68
*-apollo*-bsd*) gdb_host
=apollo68b
;;
2030 m68
*-att-*) gdb_host
=3b1
;;
2031 m68
*-bull*-sysv*) gdb_host
=dpx2
;;
2032 m68
*-hp-bsd*) gdb_host
=hp300bsd
;;
2033 m68
*-hp-hpux*) gdb_host
=hp300hpux
;;
2034 m68
*-isi-*) gdb_host
=isi
;;
2035 m68
*-*-lynxos*) gdb_host
=m68klynx
;;
2036 m68
*-*-sysv4*) gdb_host
=m68kv4
;;
2037 m68
*-motorola-*) gdb_host
=delta68
;;
2038 m68
*-sony-*) gdb_host
=news
;;
2039 m68
*-sun-sunos3*) gdb_host
=sun3os3
;;
2040 m68
*-sun-sunos4*) gdb_host
=sun3os4
;;
2041 m68
*-sun-*) gdb_host
=sun3os4
;;
2043 m88
*-harris-cxux*) gdb_host
=cxux
;;
2044 m88
*-motorola-sysv4*) gdb_host
=delta88v4
;;
2045 m88
*-motorola-sysv*) gdb_host
=delta88
;;
2046 m88
*-*-mach3*) gdb_host
=mach3
;;
2047 m88
*-*-*) gdb_host
=m88k
;;
2049 mips-dec-mach3
*) gdb_host
=mach3
;;
2050 mips-dec-
*) gdb_host
=decstation
;;
2051 mips-little-
*) gdb_host
=littlemips
;;
2052 mips-sgi-irix3
*) gdb_host
=irix3
;;
2053 mips-sgi-irix4
*) gdb_host
=irix4
;;
2054 mips-sgi-irix5
*) gdb_host
=irix5
;;
2055 mips-sony-
*) gdb_host
=news-mips
;;
2056 mips-
*-mach3*) gdb_host
=mach3
;;
2057 mips-
*-sysv4*) gdb_host
=mipsv4
;;
2058 mips-
*-sysv*) gdb_host
=riscos
;;
2059 mips-
*-riscos*) gdb_host
=riscos
;;
2061 none-
*-*) gdb_host
=none
;;
2063 np1-
*-*) gdb_host
=np1
;;
2065 ns32k-
*-mach3*) gdb_host
=mach3
;;
2066 ns32k-
*-netbsd*) gdb_host
=nbsd
;;
2067 ns32k-umax-
*) gdb_host
=umax
;;
2068 ns32k-utek-sysv
*) gdb_host
=merlin
;;
2070 powerpc-
*-aix*) gdb_host
=aix
;;
2072 pn-
*-*) gdb_host
=pn
;;
2074 pyramid-
*-*) gdb_host
=pyramid
;;
2076 romp-
*-*) gdb_host
=rtbsd
;;
2078 rs6000-
*-lynxos*) gdb_host
=rs6000lynx
;;
2079 rs6000-
*-*) gdb_host
=rs6000
;;
2081 sparc-
*-lynxos*) gdb_host
=sparclynx
;;
2082 sparc-
*-netbsd*) gdb_host
=nbsd
;;
2083 sparc-
*-solaris2*) gdb_host
=sun4sol2
;;
2084 sparc-
*-sunos4*) gdb_host
=sun4os4
;;
2085 sparc-
*-sunos5*) gdb_host
=sun4sol2
;;
2086 sparc-
*-*) gdb_host
=sun4os4
;;
2088 tahoe-
*-*) gdb_host
=tahoe
;;
2090 vax-
*-bsd*) gdb_host
=vaxbsd
;;
2091 vax-
*-ultrix2*) gdb_host
=vaxult2
;;
2092 vax-
*-ultrix*) gdb_host
=vaxult
;;
2094 w65-
*-*) gdb_host
=w65
;;
2099 # Map target cpu into the config cpu subdirectory name.
2100 # The default is $target_cpu.
2102 case "${target_cpu}" in
2104 alpha
) gdb_target_cpu
=alpha
;;
2105 c
[12]) gdb_target_cpu
=convex
;;
2106 hppa
*) gdb_target_cpu
=pa
;;
2107 i
[345]86) gdb_target_cpu
=i386
;;
2108 m68
*) gdb_target_cpu
=m68k
;;
2109 m88
*) gdb_target_cpu
=m88k
;;
2110 mips
*) gdb_target_cpu
=mips
;;
2111 np1
) gdb_target_cpu
=gould
;;
2112 powerpc
*) gdb_target_cpu
=powerpc
;;
2113 pn
) gdb_target_cpu
=gould
;;
2114 pyramid
) gdb_target_cpu
=pyr
;;
2115 sparc
*) gdb_target_cpu
=sparc
;;
2116 *) gdb_target_cpu
=$target_cpu ;;
2120 # map target info into gdb names.
2124 a29k-
*-aout*) gdb_target
=a29k
;;
2125 a29k-
*-coff*) gdb_target
=a29k
;;
2126 a29k-
*-elf*) gdb_target
=a29k
;;
2127 a29k-
*-ebmon*) gdb_target
=a29k
;;
2128 a29k-
*-kern*) gdb_target
=a29k-kern
;;
2129 a29k-
*-none*) gdb_target
=a29k
;;
2130 a29k-
*-sym1*) gdb_target
=ultra3
;;
2131 a29k-
*-udi*) gdb_target
=a29k-udi
;;
2132 a29k-
*-vxworks*) gdb_target
=vx29k
;;
2134 alpha-
*-osf*) gdb_target
=alpha-osf1
;;
2136 # start-sanitize-arc
2137 arc-
*-*) gdb_target
=arc
;;
2140 arm-
*-*) gdb_target
=arm
;;
2142 c1-
*-*) gdb_target
=convex
;;
2143 c2-
*-*) gdb_target
=convex
;;
2145 h8300-
*-*) gdb_target
=h8300
;;
2146 h8500-
*-*) gdb_target
=h8500
;;
2148 sh-
*-*) gdb_target
=sh
;;
2150 # start-sanitize-r16
2151 r16-
*-*) gdb_target
=r16
;;
2154 hppa
*-*-bsd*) gdb_target
=hppabsd
;;
2155 hppa
*-*-pro*) gdb_target
=hppapro
;;
2156 hppa
*-*-hpux*) gdb_target
=hppahpux
;;
2157 hppa
*-*-hiux*) gdb_target
=hppahpux
;;
2158 hppa
*-*-osf*) gdb_target
=hppaosf
;;
2160 i
[345]86-sequent-bsd*) gdb_target
=symmetry
;;
2161 i
[345]86-sequent-sysv4*) gdb_target
=ptx4
;;
2162 i
[345]86-sequent-sysv*) gdb_target
=ptx ;;
2163 i
[345]86-ncr-*) gdb_target
=ncr3000
;;
2164 i
[345]86-*-aout*) gdb_target
=i386aout
;;
2165 i
[345]86-*-coff*) gdb_target
=i386v
;;
2166 i
[345]86-*-elf*) gdb_target
=i386v
;;
2167 i
[345]86-*-aix*) gdb_target
=i386aix
;;
2168 i
[345]86-*-bsd*) gdb_target
=i386bsd
;;
2169 i
[345]86-*-freebsd*) gdb_target
=fbsd
;;
2170 i
[345]86-*-netbsd*) gdb_target
=nbsd
;;
2171 i
[345]86-*-os9k) gdb_target
=i386os9k
;;
2172 i
[345]86-*-go32*) gdb_target
=i386aout
;;
2173 i
[345]86-*-lynxos*) gdb_target
=i386lynx
2174 configdirs
="${configdirs} gdbserver" ;;
2175 i
[345]86-*-solaris*) gdb_target
=i386sol2
;;
2176 i
[345]86-*-sunos*) gdb_target
=sun386
;;
2177 i
[345]86-*-sysv4*) gdb_target
=i386v4
;;
2178 i
[345]86-*-sco*) gdb_target
=i386v
;;
2179 i
[345]86-*-sysv*) gdb_target
=i386v
;;
2180 i
[345]86-*-linux*) gdb_target
=linux
;;
2181 i
[345]86-*-isc*) gdb_target
=i386v
;;
2182 i
[345]86-*-mach3*) gdb_target
=i386m3
;;
2183 i
[345]86-*-mach*) gdb_target
=i386mach
;;
2184 i
[345]86-*-netware*) gdb_target
=i386nw
2185 configdirs
="${configdirs} nlm" ;;
2186 i
[345]86-*-osf1mk*) gdb_target
=i386mk
;;
2187 i
[345]86-*-win32) gdb_target
=win32
;;
2189 i960-
*-bout*) gdb_target
=vxworks960
;;
2190 i960-
*-coff*) gdb_target
=nindy960
;;
2191 i960-
*-elf*) gdb_target
=nindy960
;;
2193 i960-
*-nindy*) gdb_target
=nindy960
;;
2194 i960-
*-vxworks*) gdb_target
=vxworks960
;;
2196 m68000-
*-sunos3*) gdb_target
=sun2os3
;;
2197 m68000-
*-sunos4*) gdb_target
=sun2os4
;;
2199 m68
*-apollo*-bsd*) gdb_target
=apollo68b
;;
2200 m68
*-bull-sysv*) gdb_target
=dpx2
;;
2201 m68
*-hp-bsd*) gdb_target
=hp300bsd
;;
2202 m68
*-hp-hpux*) gdb_target
=hp300hpux
;;
2203 m68
*-altos-*) gdb_target
=altos
;;
2204 m68
*-att-*) gdb_target
=3b1
;;
2205 m68
*-cisco*-*) gdb_target
=cisco
;;
2206 m68
*-ericsson-*) gdb_target
=es1800
;;
2207 m68
*-isi-*) gdb_target
=isi
;;
2208 m68
*-motorola-*) gdb_target
=delta68
;;
2209 m68
*-netx-*) gdb_target
=vxworks68
;;
2210 m68
*-sony-*) gdb_target
=news
;;
2211 m68
*-tandem-*) gdb_target
=st2000
;;
2212 m68
*-rom68k-*) gdb_target
=monitor
;;
2213 m68
*-*bug-
*) gdb_target
=monitor
;;
2214 m68
*-monitor-*) gdb_target
=monitor
;;
2215 m68
*-est-*) gdb_target
=monitor
;;
2216 m68
*-*-aout*) gdb_target
=monitor
;;
2217 m68
*-*-coff*) gdb_target
=monitor
;;
2218 m68
*-*-elf*) gdb_target
=monitor
;;
2219 m68
*-*-lynxos*) gdb_target
=m68klynx
2220 configdirs
="${configdirs} gdbserver" ;;
2221 m68
*-*-os68k*) gdb_target
=os68k
;;
2222 m68
*-*-sunos3*) gdb_target
=sun3os3
;;
2223 m68
*-*-sunos4*) gdb_target
=sun3os4
;;
2224 m68
*-*-sysv4*) gdb_target
=m68kv4
;;
2225 m68
*-*-vxworks*) gdb_target
=vxworks68
;;
2227 m88
*-harris-cxux*) gdb_target
=cxux
;;
2228 m88
*-motorola-sysv4*) gdb_target
=delta88v4
;;
2229 m88
*-*-mach3*) gdb_target
=mach3
;;
2230 m88
*-motorola-*) gdb_target
=delta88
;;
2231 m88
*-*-*) gdb_target
=m88k
;;
2233 mips64
*-big-*) gdb_target
=bigmips64
;;
2234 mips
*-big-*) gdb_target
=bigmips
;;
2235 mips
*-dec-mach3*) gdb_target
=mach3
;;
2236 mips
*-dec-*) gdb_target
=decstation
;;
2237 mips64
*el-
*-ecoff*) gdb_target
=idtl64
;;
2238 mips64
*-idt-ecoff*) gdb_target
=idt64
;;
2239 mips64
*vr4300
*el-
*-elf*) gdb_target
=vr4300el
;;
2240 mips64
*vr4300
*-*-elf*) gdb_target
=vr4300
;;
2241 mips64
*el-
*-elf*) gdb_target
=idtl64
;;
2242 mips64
*-*-elf*) gdb_target
=idt64
;;
2243 mips
*el-
*-ecoff*) gdb_target
=idtl
;;
2244 mips
*-*-ecoff*) gdb_target
=idt
;;
2246 mips
*-*-magic*) gdb_target
=idt
;;
2248 mips
*el-
*-elf*) gdb_target
=idtl
;;
2249 mips
*-*-elf*) gdb_target
=idt
;;
2250 mips
*-little-*) gdb_target
=littlemips
;;
2251 mips
*-sgi-irix5*) gdb_target
=irix5
;;
2252 mips
*-sgi-*) gdb_target
=irix3
;;
2253 mips
*-sony-*) gdb_target
=bigmips
;;
2254 mips
*-*-mach3*) gdb_target
=mach3
;;
2255 mips
*-*-sysv4*) gdb_target
=mipsv4
;;
2256 mips
*-*-sysv*) gdb_target
=bigmips
;;
2257 mips
*-*-riscos*) gdb_target
=bigmips
;;
2259 none-
*-*) gdb_target
=none
;;
2261 np1-
*-*) gdb_target
=np1
;;
2263 ns32k-
*-mach3*) gdb_target
=mach3
;;
2264 ns32k-
*-netbsd*) gdb_target
=nbsd
;;
2265 ns32k-utek-sysv
*) gdb_target
=merlin
;;
2266 ns32k-utek-
*) gdb_target
=umax
;;
2268 pn-
*-*) gdb_target
=pn
;;
2269 powerpc-
*-netware*) gdb_target
=ppc-nw
2270 configdirs
="${configdirs} nlm" ;;
2272 powerpc-
*-aix4*) gdb_target
=aix4
;;
2273 powerpc-
*-aix*) gdb_target
=aix
;;
2274 powerpc-
*-eabi*) if test x
"$powerpc_sim" = x
"yes"; then
2279 powerpcle-
*-eabi*) if test x
"$powerpc_sim" = x
"yes"; then
2280 gdb_target
=ppcle-sim
2282 gdb_target
=ppcle-eabi
2285 pyramid-
*-*) gdb_target
=pyramid
;;
2287 rs6000-
*-lynxos*) gdb_target
=rs6000lynx
;;
2288 rs6000-
*-aix4*) gdb_target
=aix4
;;
2289 rs6000-
*-*) gdb_target
=rs6000
;;
2291 sparc-
*-aout*) gdb_target
=sparc-em
;;
2292 sparc-
*-coff*) gdb_target
=sparc-em
;;
2293 sparc-
*-elf*) gdb_target
=sparc-em
;;
2294 sparc-
*-lynxos*) gdb_target
=sparclynx
2295 configdirs
="${configdirs} gdbserver" ;;
2296 sparc-
*-netbsd*) gdb_target
=nbsd
;;
2297 sparc-
*-solaris2*) gdb_target
=sun4sol2
;;
2298 sparc-
*-sunos4*) gdb_target
=sun4os4
;;
2299 sparc-
*-sunos5*) gdb_target
=sun4sol2
;;
2300 sparc-
*-vxworks*) gdb_target
=vxsparc
;;
2301 sparc-
*-*) gdb_target
=sun4os4
;;
2302 sparclite
*-*-*) gdb_target
=sparclite
;;
2303 sparc64-
*-*) gdb_target
=sp64
;;
2305 tahoe-
*-*) gdb_target
=tahoe
;;
2307 vax-
*-*) gdb_target
=vax
;;
2309 w65-
*-*) gdb_target
=w65
;;
2311 z8k-
*-coff*) gdb_target
=z8k
;;
2317 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
2318 if test ! -f ${host_makefile_frag}; then
2319 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
2321 frags
="$frags $host_makefile_frag"
2323 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
2324 if test ! -f ${target_makefile_frag}; then
2325 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
2327 frags
="$frags $target_makefile_frag"
2334 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2335 ' ${host_makefile_frag}`
2337 targetfile
=`sed -n '
2338 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2339 ' ${target_makefile_frag}`
2341 # these really aren't orthogonal true/false values of the same condition,
2342 # but shells are slow enough that I like to reuse the test conditions
2344 if test "${target}" = "${host}"; then
2345 nativefile
=`sed -n '
2346 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2347 ' ${host_makefile_frag}`
2349 # GDBserver is only useful in a "native" enviroment
2350 configdirs
=`echo $configdirs | sed 's/gdbserver//'`
2354 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
2355 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
2356 # corresponding links. But we have to remove the xm.h files and tm.h
2357 # files anyway, e.g. when switching from "configure host" to
2363 if test "${hostfile}" != ""; then
2364 files
="${files} config/${gdb_host_cpu}/${hostfile}"
2365 links
="${links} xm.h"
2368 if test "${targetfile}" != ""; then
2369 files
="${files} config/${gdb_target_cpu}/${targetfile}"
2370 links
="${links} tm.h"
2373 if test "${nativefile}" != ""; then
2374 files
="${files} config/${gdb_host_cpu}/${nativefile}"
2375 links
="${links} nm.h"
2377 # A cross-only configuration.
2378 files
="${files} config/nm-empty.h"
2379 links
="${links} nm.h"
2381 # start-sanitize-gdbtk
2383 # Make it possible to use the GUI without doing a full install
2384 if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl
; then
2385 files
="${files} gdbtk.tcl"
2386 links
="${links} gdbtk.tcl"
2388 # end-sanitize-gdbtk
2392 subdirs
="$configdirs"
2395 cat > confcache
<<\EOF
2396 # This file is a shell script that caches the results of configure
2397 # tests run on this system so they can be shared between configure
2398 # scripts and configure runs. It is not useful on other systems.
2399 # If it contains results you don't want to keep, you may remove or edit it.
2401 # By default, configure uses ./config.cache as the cache file,
2402 # creating it if it does not exist already. You can give configure
2403 # the --cache-file=FILE option to use a different cache file; that is
2404 # what configure does when it calls configure scripts in
2405 # subdirectories, so they share the cache.
2406 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2407 # config.status only pays attention to the cache file if you give it the
2408 # --recheck option to rerun configure.
2411 # Ultrix sh set writes to stderr and can't be redirected directly,
2412 # and sets the high bit in the cache file unless we assign to the vars.
2414 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2416 if cmp -s $cache_file confcache
; then
2419 if test -w $cache_file; then
2420 echo "updating cache $cache_file"
2421 cat confcache
> $cache_file
2423 echo "not updating unwritable cache $cache_file"
2428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2430 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2431 # Let make expand exec_prefix.
2432 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2434 # Any assignment to VPATH causes Sun make to only execute
2435 # the first set of double-colon rules, so remove it if not needed.
2436 # If there is a colon in the path, we need to keep it.
2437 if test "x$srcdir" = x.
; then
2438 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2441 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2443 # Transform confdefs.h into DEFS.
2444 # Protect against shell expansion while executing Makefile rules.
2445 # Protect against Makefile macro expansion.
2446 cat > conftest.defs
<<\EOF
2447 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
2448 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2453 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2457 # Without the "./", some shells look in PATH for config.status.
2458 : ${CONFIG_STATUS=./config.status}
2460 echo creating $CONFIG_STATUS
2461 rm -f $CONFIG_STATUS
2462 cat > $CONFIG_STATUS <<EOF
2464 # Generated automatically by configure.
2465 # Run this file to recreate the current configuration.
2466 # This directory was configured as follows,
2467 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2469 # $0 $ac_configure_args
2471 # Compiler output produced by configure, useful for debugging
2472 # configure, is in ./config.log if it exists.
2474 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2477 case "\$ac_option" in
2478 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2479 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2480 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2481 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2482 echo "$CONFIG_STATUS generated by autoconf version 2.4"
2484 -help | --help | --hel | --he | --h)
2485 echo "\$ac_cs_usage"; exit 0 ;;
2486 *) echo "\$ac_cs_usage"; exit 1 ;;
2490 ac_given_srcdir=$srcdir
2491 ac_given_INSTALL="$INSTALL"
2493 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2495 # Protect against being on the right side of a sed subst in config.status.
2496 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
2497 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
2500 s%@CFLAGS@%$CFLAGS%g
2501 s%@CPPFLAGS@%$CPPFLAGS%g
2502 s%@CXXFLAGS@%$CXXFLAGS%g
2504 s%@LDFLAGS@%$LDFLAGS%g
2506 s%@exec_prefix@%$exec_prefix%g
2507 s%@prefix@%$prefix%g
2508 s%@program_transform_name@%$program_transform_name%g
2511 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2512 s%@INSTALL_DATA@%$INSTALL_DATA%g
2513 s%@RANLIB@%$RANLIB%g
2516 s%@host_alias@%$host_alias%g
2517 s%@host_cpu@%$host_cpu%g
2518 s%@host_vendor@%$host_vendor%g
2519 s%@host_os@%$host_os%g
2520 s%@target@%$target%g
2521 s%@target_alias@%$target_alias%g
2522 s%@target_cpu@%$target_cpu%g
2523 s%@target_vendor@%$target_vendor%g
2524 s%@target_os@%$target_os%g
2526 s%@build_alias@%$build_alias%g
2527 s%@build_cpu@%$build_cpu%g
2528 s%@build_vendor@%$build_vendor%g
2529 s%@build_os@%$build_os%g
2530 s%@X_CFLAGS@%$X_CFLAGS%g
2531 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2532 s%@X_LIBS@%$X_LIBS%g
2533 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2534 s%@TKHDIR@%$TKHDIR%g
2536 s%@TCLHDIR@%$TCLHDIR%g
2537 s%@TCLLIB@%$TCLLIB%g
2538 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
2539 s%@X_CLFAGS@%$X_CLFAGS%g
2540 s%@X_LDFLAGS@%$X_LDFLAGS%g
2541 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
2542 s%@ENABLE_CLIBS@%$ENABLE_CLIBS%g
2543 s%@ENABLE_OBS@%$ENABLE_OBS%g
2544 /@host_makefile_frag@/r $host_makefile_frag
2545 s%@host_makefile_frag@%%g
2546 /@target_makefile_frag@/r $target_makefile_frag
2547 s%@target_makefile_frag@%%g
2549 s%@subdirs@%$subdirs%g
2553 cat >> $CONFIG_STATUS <<EOF
2555 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2557 cat >> $CONFIG_STATUS <<\EOF
2558 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2559 # Support "outfile[:infile]", defaulting infile="outfile.in".
2561 *:*) ac_file_in=`echo "$ac_file"|
sed 's%.*:%%'`
2562 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2563 *) ac_file_in="${ac_file}.in" ;;
2566 # Adjust relative srcdir, etc. for subdirectories.
2568 # Remove last slash and all that follows it. Not all systems have dirname.
2569 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2570 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2571 # The file is in a subdirectory.
2572 test ! -d "$ac_dir" && mkdir "$ac_dir"
2573 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2574 # A "../" for each directory in $ac_dir_suffix.
2575 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2577 ac_dir_suffix= ac_dots=
2580 case "$ac_given_srcdir" in
2582 if test -z "$ac_dots"; then top_srcdir=.
2583 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2584 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2586 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2587 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2590 case "$ac_given_INSTALL" in
2591 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2592 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2594 echo creating "$ac_file"
2596 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2598 *Makefile*) ac_comsub="1i\\
2599 # $configure_input" ;;
2603 s%@configure_input@%$configure_input%g
2604 s%@srcdir@%$srcdir%g
2605 s%@top_srcdir@%$top_srcdir%g
2606 s%@INSTALL@%$INSTALL%g
2607 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2613 cat >> $CONFIG_STATUS <<EOF
2618 cat >> $CONFIG_STATUS <<\EOF
2619 srcdir=$ac_given_srcdir
2620 while test -n "$ac_sources"; do
2621 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2622 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2624 echo "linking $srcdir/$ac_source to $ac_dest"
2626 if test ! -r $srcdir/$ac_source; then
2627 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2631 # Make relative symlinks.
2632 # Remove last slash and all that follows it. Not all systems have dirname.
2633 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2634 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2635 # The dest file is in a subdirectory.
2636 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2637 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2638 # A "../" for each directory in $ac_dest_dir_suffix.
2639 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2641 ac_dest_dir_suffix= ac_dots=
2645 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2646 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2649 # Make a symlink if possible; otherwise try a hard link.
2650 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2651 ln $srcdir/$ac_source $ac_dest; then :
2653 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2657 cat >> $CONFIG_STATUS <<EOF
2659 gdb_host_cpu=$gdb_host_cpu
2660 gdb_target_cpu=$gdb_target_cpu
2661 nativefile=$nativefile
2664 cat >> $CONFIG_STATUS <<\EOF
2666 if test "${nativefile}" = ""; then
2667 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
2668 < Makefile > Makefile.tem
2669 mv -f Makefile.tem Makefile
2672 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
2673 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
2674 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
2675 mv -f Makefile.tmp Makefile
2681 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
2682 echo "source ${srcdir}/.gdbinit" >> .gdbinit
2687 chmod +x $CONFIG_STATUS
2688 rm -fr confdefs* $ac_clean_files
2689 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2691 if test "$no_recursion" != yes; then
2693 # Remove --cache-file and --srcdir arguments so they do not pile up.
2694 ac_sub_configure_args=
2696 for ac_arg in $ac_configure_args; do
2697 if test -n "$ac_prev"; then
2702 -cache-file | --cache-file | --cache-fil | --cache-fi \
2703 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2704 ac_prev=cache_file ;;
2705 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2706 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2708 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2710 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2712 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2716 for ac_config_dir in $configdirs; do
2718 # Do not complain, so a configure script can configure whichever
2719 # parts of a large source tree are present.
2720 if test ! -d $srcdir/$ac_config_dir; then
2724 echo configuring in $ac_config_dir
2729 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2731 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2740 .) # No --srcdir option. We are building in place.
2741 ac_sub_srcdir=$srcdir ;;
2742 /*) # Absolute path.
2743 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2745 ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
2748 # Check for guested configure; otherwise get Cygnus style configure.
2749 if test -f $ac_sub_srcdir/configure; then
2750 ac_sub_configure=$ac_sub_srcdir/configure
2751 elif test -f $ac_sub_srcdir/configure.in; then
2752 ac_sub_configure=$ac_configure
2754 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2758 # The recursion is here.
2759 if test -n "$ac_sub_configure"; then
2761 # Make the cache file name correct relative to the subdirectory.
2762 # A "../" for each directory in /$ac_config_dir.
2763 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2764 case "$cache_file" in
2765 /*) ac_sub_cache_file=$cache_file ;;
2767 ac_sub_cache_file="$ac_dots$cache_file" ;;
2769 case "$ac_given_INSTALL" in
2770 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2771 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2774 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2775 # The eval makes quoting arguments work.
2776 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2779 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }