3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared use shared libraries"
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
21 cache_file
=.
/config.cache
30 program_transform_name
=s
,x
,x
,
38 bindir
='${exec_prefix}/bin'
39 sbindir
='${exec_prefix}/sbin'
40 libexecdir
='${exec_prefix}/libexec'
41 datadir
='${prefix}/share'
42 sysconfdir
='${prefix}/etc'
43 sharedstatedir
='${prefix}/com'
44 localstatedir
='${prefix}/var'
45 libdir
='${exec_prefix}/lib'
46 includedir
='${prefix}/include'
47 oldincludedir
='/usr/include'
48 infodir
='${prefix}/info'
49 mandir
='${prefix}/man'
51 # Initialize some other variables.
54 SHELL
=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
62 # If the previous option needs an argument, assign it.
63 if test -n "$ac_prev"; then
64 eval "$ac_prev=\$ac_option"
70 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
74 # Accept the important Cygnus configure options, so we can diagnose typos.
78 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
80 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
81 bindir
="$ac_optarg" ;;
83 -build |
--build |
--buil |
--bui |
--bu)
85 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
88 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
89 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
91 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
92 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
93 cache_file
="$ac_optarg" ;;
95 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
97 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
99 datadir
="$ac_optarg" ;;
101 -disable-* |
--disable-*)
102 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
103 # Reject names that are not valid shell variable names.
104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
108 eval "enable_${ac_feature}=no" ;;
110 -enable-* |
--enable-*)
111 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}='$ac_optarg'" ;;
123 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
124 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
125 |
--exec |
--exe |
--ex)
126 ac_prev
=exec_prefix
;;
127 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
128 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
129 |
--exec=* |
--exe=* |
--ex=*)
130 exec_prefix
="$ac_optarg" ;;
132 -gas |
--gas |
--ga |
--g)
133 # Obsolete; use --with-gas.
136 -help |
--help |
--hel |
--he)
137 # Omit some internal or obsolete options to make the list less imposing.
138 # This message is too long to be a string in the A/UX 3.1 sh.
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148 Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178 Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
191 -host |
--host |
--hos |
--ho)
193 -host=* |
--host=* |
--hos=* |
--ho=*)
196 -includedir |
--includedir |
--includedi |
--included |
--include \
197 |
--includ |
--inclu |
--incl |
--inc)
198 ac_prev
=includedir
;;
199 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
200 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
201 includedir
="$ac_optarg" ;;
203 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
205 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
206 infodir
="$ac_optarg" ;;
208 -libdir |
--libdir |
--libdi |
--libd)
210 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
211 libdir
="$ac_optarg" ;;
213 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
214 |
--libexe |
--libex |
--libe)
215 ac_prev
=libexecdir
;;
216 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
217 |
--libexe=* |
--libex=* |
--libe=*)
218 libexecdir
="$ac_optarg" ;;
220 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
221 |
--localstate |
--localstat |
--localsta |
--localst \
222 |
--locals |
--local |
--loca |
--loc |
--lo)
223 ac_prev
=localstatedir
;;
224 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
225 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
226 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
227 localstatedir
="$ac_optarg" ;;
229 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
231 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
232 mandir
="$ac_optarg" ;;
235 # Obsolete; use --without-fp.
238 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
242 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
243 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
246 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
247 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
248 |
--oldin |
--oldi |
--old |
--ol |
--o)
249 ac_prev
=oldincludedir
;;
250 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
251 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
252 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
253 oldincludedir
="$ac_optarg" ;;
255 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
257 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
258 prefix
="$ac_optarg" ;;
260 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
261 |
--program-pre |
--program-pr |
--program-p)
262 ac_prev
=program_prefix
;;
263 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
264 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
265 program_prefix
="$ac_optarg" ;;
267 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
268 |
--program-suf |
--program-su |
--program-s)
269 ac_prev
=program_suffix
;;
270 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
271 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
272 program_suffix
="$ac_optarg" ;;
274 -program-transform-name |
--program-transform-name \
275 |
--program-transform-nam |
--program-transform-na \
276 |
--program-transform-n |
--program-transform- \
277 |
--program-transform |
--program-transfor \
278 |
--program-transfo |
--program-transf \
279 |
--program-trans |
--program-tran \
280 |
--progr-tra |
--program-tr |
--program-t)
281 ac_prev
=program_transform_name
;;
282 -program-transform-name=* |
--program-transform-name=* \
283 |
--program-transform-nam=* |
--program-transform-na=* \
284 |
--program-transform-n=* |
--program-transform-=* \
285 |
--program-transform=* |
--program-transfor=* \
286 |
--program-transfo=* |
--program-transf=* \
287 |
--program-trans=* |
--program-tran=* \
288 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
289 program_transform_name
="$ac_optarg" ;;
291 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
292 |
-silent |
--silent |
--silen |
--sile |
--sil)
295 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
297 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
299 sbindir
="$ac_optarg" ;;
301 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
302 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
303 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
305 ac_prev
=sharedstatedir
;;
306 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
307 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
308 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
310 sharedstatedir
="$ac_optarg" ;;
312 -site |
--site |
--sit)
314 -site=* |
--site=* |
--sit=*)
317 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
319 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
320 srcdir
="$ac_optarg" ;;
322 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
323 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
324 ac_prev
=sysconfdir
;;
325 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
326 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
327 sysconfdir
="$ac_optarg" ;;
329 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
331 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
332 target
="$ac_optarg" ;;
334 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
337 -version |
--version |
--versio |
--versi |
--vers)
338 echo "configure generated by autoconf version 2.13"
342 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343 # Reject names that are not valid shell variable names.
344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347 ac_package
=`echo $ac_package| sed 's/-/_/g'`
352 eval "with_${ac_package}='$ac_optarg'" ;;
354 -without-* |
--without-*)
355 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
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'`
361 eval "with_${ac_package}=no" ;;
364 # Obsolete; use --with-x.
367 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
368 |
--x-incl |
--x-inc |
--x-in |
--x-i)
369 ac_prev
=x_includes
;;
370 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
371 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
372 x_includes
="$ac_optarg" ;;
374 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
375 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
376 ac_prev
=x_libraries
;;
377 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
378 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
379 x_libraries
="$ac_optarg" ;;
381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386 echo "configure: warning: $ac_option: invalid host type" 1>&2
388 if test "x$nonopt" != xNONE
; then
389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397 if test -n "$ac_prev"; then
398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403 # File descriptor usage:
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
429 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
430 |
--no-cr |
--no-c) ;;
431 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
432 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
433 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
435 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
440 # Only set these to C if already set. These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
445 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
447 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest
* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file
=gdb.base
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460 ac_srcdir_defaulted
=yes
461 # Try the directory containing this script, then its parent.
463 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
466 if test ! -r $srcdir/$ac_unique_file; then
470 ac_srcdir_defaulted
=no
472 if test ! -r $srcdir/$ac_unique_file; then
473 if test "$ac_srcdir_defaulted" = yes; then
474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483 if test "x$prefix" != xNONE
; then
484 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
486 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 for ac_site_file
in $CONFIG_SITE; do
490 if test -r "$ac_site_file"; then
491 echo "loading site script $ac_site_file"
496 if test -r "$cache_file"; then
497 echo "loading cache $cache_file"
500 echo "creating cache $cache_file"
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp
='$CPP $CPPFLAGS'
507 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling
=$ac_cv_prog_cc_cross
513 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
522 ac_n
= ac_c
='\c' ac_t
=
530 for ac_dir
in `cd $srcdir;pwd`/..
/..
$srcdir/`cd $srcdir;pwd`/..
/..
; do
531 if test -f $ac_dir/install-sh
; then
533 ac_install_sh
="$ac_aux_dir/install-sh -c"
535 elif test -f $ac_dir/install.sh
; then
537 ac_install_sh
="$ac_aux_dir/install.sh -c"
541 if test -z "$ac_aux_dir"; then
542 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
544 ac_config_guess
=$ac_aux_dir/config.guess
545 ac_config_sub
=$ac_aux_dir/config.sub
546 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
549 # Do some error checking and defaulting for the host and target type.
551 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
554 # 1. You are not allowed to specify --host, --target, and nonopt at the
556 # 2. Host defaults to nonopt.
557 # 3. If nonopt is not specified, then host defaults to the current host,
558 # as determined by config.guess.
559 # 4. Target and build default to nonopt.
560 # 5. If nonopt is not specified, then target and build default to host.
562 # The aliases save the names the user supplied, while $host etc.
563 # will get canonicalized.
564 case $host---$target---$nonopt in
565 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
566 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
570 # Make sure we can run config.sub.
571 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
572 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
575 echo $ac_n "checking host system type""... $ac_c" 1>&6
576 echo "configure:577: checking host system type" >&5
579 case "$host_alias" in
583 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
584 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
586 *) host_alias
=$nonopt ;;
590 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
591 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
592 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
593 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
594 echo "$ac_t""$host" 1>&6
596 echo $ac_n "checking target system type""... $ac_c" 1>&6
597 echo "configure:598: checking target system type" >&5
600 case "$target_alias" in
603 NONE
) target_alias
=$host_alias ;;
604 *) target_alias
=$nonopt ;;
608 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
609 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
610 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
611 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
612 echo "$ac_t""$target" 1>&6
614 echo $ac_n "checking build system type""... $ac_c" 1>&6
615 echo "configure:616: checking build system type" >&5
618 case "$build_alias" in
621 NONE
) build_alias
=$host_alias ;;
622 *) build_alias
=$nonopt ;;
626 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
627 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
628 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
629 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
630 echo "$ac_t""$build" 1>&6
632 test "$host_alias" != "$target_alias" &&
633 test "$program_prefix$program_suffix$program_transform_name" = \
635 program_prefix
=${target_alias}-
638 # Directories to use in all configurations.
639 configdirs
="gdb.asm gdb.base gdb.c++ gdb.disasm gdb.chill gdb.threads gdb.trace"
641 # Directories to use for a configuration which uses stabs.
642 stabsdirs
="gdb.stabs"
644 # this section is for targets that use stabs
645 # add stabs tests for appropriate targets
647 powerpc-
*-aix*) configdirs
="${configdirs} ${stabsdirs}" ;;
648 rs6000-
*-aix*) configdirs
="${configdirs} ${stabsdirs}" ;;
649 *-*-bsd*) configdirs
="${configdirs} ${stabsdirs}" ;;
650 *-*-go32*) configdirs
="${configdirs} ${stabsdirs}" ;;
651 *-*-linux*) configdirs
="${configdirs} ${stabsdirs}" ;;
652 *-*-lynxos*) configdirs
="${configdirs} ${stabsdirs}" ;;
653 *-sun-*) configdirs
="${configdirs} ${stabsdirs}" ;;
654 hppa
*-*-*) configdirs
="${configdirs} ${stabsdirs}" ;;
655 *-*-elf*) configdirs
="${configdirs} ${stabsdirs}" ;;
656 *) if test "x${with_stabs}" = x
"yes" ; then
657 configdirs
="${configdirs} ${stabsdirs}"
661 # Directory with HP specific tests. They will run only with HP's compilers.
662 # These tests will not work on other platforms and compilers.
667 hppa
*-*-hpux*) configdirs
="${configdirs} ${hpdir}" ;;
671 # Begin stuff to support --enable-shared
672 # Check whether --enable-shared or --disable-shared was given.
673 if test "${enable_shared+set}" = set; then
674 enableval
="$enable_shared"
675 case "${enableval}" in
681 RPATH_ENVVAR
=LD_LIBRARY_PATH
682 # If we have shared libraries, try to set RPATH_ENVVAR reasonably.
683 if test "${shared}" = "true"; then
686 RPATH_ENVVAR
=SHLIB_PATH
691 # End stuff to support --enable-shared
693 # configure the subdirectories too
694 subdirs
="$configdirs"
698 cat > confcache
<<\EOF
699 # This file is a shell script that caches the results of configure
700 # tests run on this system so they can be shared between configure
701 # scripts and configure runs. It is not useful on other systems.
702 # If it contains results you don't want to keep, you may remove or edit it.
704 # By default, configure uses ./config.cache as the cache file,
705 # creating it if it does not exist already. You can give configure
706 # the --cache-file=FILE option to use a different cache file; that is
707 # what configure does when it calls configure scripts in
708 # subdirectories, so they share the cache.
709 # Giving --cache-file=/dev/null disables caching, for debugging configure.
710 # config.status only pays attention to the cache file if you give it the
711 # --recheck option to rerun configure.
714 # The following way of writing the cache mishandles newlines in values,
715 # but we know of no workaround that is simple, portable, and efficient.
716 # So, don't put newlines in cache variables' values.
717 # Ultrix sh set writes to stderr and can't be redirected directly,
718 # and sets the high bit in the cache file unless we assign to the vars.
720 case `(ac_space=' '; set | grep ac_space) 2>&1` in
722 # `set' does not quote correctly, so add quotes (double-quote substitution
723 # turns \\\\ into \\, and sed turns \\ into \).
726 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
729 # `set' quotes correctly as required by POSIX, so do not add quotes.
730 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
733 if cmp -s $cache_file confcache
; then
736 if test -w $cache_file; then
737 echo "updating cache $cache_file"
738 cat confcache
> $cache_file
740 echo "not updating unwritable cache $cache_file"
745 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
747 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
748 # Let make expand exec_prefix.
749 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
751 # Any assignment to VPATH causes Sun make to only execute
752 # the first set of double-colon rules, so remove it if not needed.
753 # If there is a colon in the path, we need to keep it.
754 if test "x$srcdir" = x.
; then
755 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
758 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
760 # Transform confdefs.h into DEFS.
761 # Protect against shell expansion while executing Makefile rules.
762 # Protect against Makefile macro expansion.
763 cat > conftest.defs
<<\EOF
764 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
765 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
770 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
774 # Without the "./", some shells look in PATH for config.status.
775 : ${CONFIG_STATUS=./config.status}
777 echo creating $CONFIG_STATUS
779 cat > $CONFIG_STATUS <<EOF
781 # Generated automatically by configure.
782 # Run this file to recreate the current configuration.
783 # This directory was configured as follows,
784 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
786 # $0 $ac_configure_args
788 # Compiler output produced by configure, useful for debugging
789 # configure, is in ./config.log if it exists.
791 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
794 case "\$ac_option" in
795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
796 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
797 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
798 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
799 echo "$CONFIG_STATUS generated by autoconf version 2.13"
801 -help | --help | --hel | --he | --h)
802 echo "\$ac_cs_usage"; exit 0 ;;
803 *) echo "\$ac_cs_usage"; exit 1 ;;
807 ac_given_srcdir=$srcdir
809 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
811 cat >> $CONFIG_STATUS <<EOF
813 # Protect against being on the right side of a sed subst in config.status.
814 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
815 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
820 s%@CPPFLAGS@%$CPPFLAGS%g
821 s%@CXXFLAGS@%$CXXFLAGS%g
824 s%@LDFLAGS@%$LDFLAGS%g
826 s%@exec_prefix@%$exec_prefix%g
828 s%@program_transform_name@%$program_transform_name%g
830 s%@sbindir@%$sbindir%g
831 s%@libexecdir@%$libexecdir%g
832 s%@datadir@%$datadir%g
833 s%@sysconfdir@%$sysconfdir%g
834 s%@sharedstatedir@%$sharedstatedir%g
835 s%@localstatedir@%$localstatedir%g
837 s%@includedir@%$includedir%g
838 s%@oldincludedir@%$oldincludedir%g
839 s%@infodir@%$infodir%g
843 s%@host_alias@%$host_alias%g
844 s%@host_cpu@%$host_cpu%g
845 s%@host_vendor@%$host_vendor%g
846 s%@host_os@%$host_os%g
848 s%@target_alias@%$target_alias%g
849 s%@target_cpu@%$target_cpu%g
850 s%@target_vendor@%$target_vendor%g
851 s%@target_os@%$target_os%g
853 s%@build_alias@%$build_alias%g
854 s%@build_cpu@%$build_cpu%g
855 s%@build_vendor@%$build_vendor%g
856 s%@build_os@%$build_os%g
857 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
858 s%@subdirs@%$subdirs%g
863 cat >> $CONFIG_STATUS <<\EOF
865 # Split the substitutions into bite-sized pieces for seds with
866 # small command number limits, like on Digital OSF/1 and HP-UX.
867 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
868 ac_file=1 # Number of current file.
869 ac_beg=1 # First line for current file.
870 ac_end=$ac_max_sed_cmds # Line after last line for current file.
873 while $ac_more_lines; do
874 if test $ac_beg -gt 1; then
875 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
877 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
879 if test ! -s conftest.s$ac_file; then
881 rm -f conftest.s$ac_file
883 if test -z "$ac_sed_cmds"; then
884 ac_sed_cmds="sed -f conftest.s$ac_file"
886 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
888 ac_file=`expr $ac_file + 1`
890 ac_end=`expr $ac_end + $ac_max_sed_cmds`
893 if test -z "$ac_sed_cmds"; then
898 cat >> $CONFIG_STATUS <<EOF
900 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
902 cat >> $CONFIG_STATUS <<\EOF
903 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
904 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
906 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
907 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
908 *) ac_file_in="${ac_file}.in" ;;
911 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
913 # Remove last slash and all that follows it. Not all systems have dirname.
914 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
915 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
916 # The file is in a subdirectory.
917 test ! -d "$ac_dir" && mkdir "$ac_dir"
918 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
922 ac_dir_suffix= ac_dots=
925 case "$ac_given_srcdir" in
927 if test -z "$ac_dots"; then top_srcdir=.
928 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
929 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
931 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
932 top_srcdir="$ac_dots$ac_given_srcdir" ;;
936 echo creating "$ac_file"
938 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
940 *Makefile*) ac_comsub="1i\\
941 # $configure_input" ;;
945 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
947 s%@configure_input@%$configure_input%g
949 s%@top_srcdir@%$top_srcdir%g
950 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
955 cat >> $CONFIG_STATUS <<EOF
958 cat >> $CONFIG_STATUS <<\EOF
962 chmod +x $CONFIG_STATUS
963 rm -fr confdefs* $ac_clean_files
964 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
966 if test "$no_recursion" != yes; then
968 # Remove --cache-file and --srcdir arguments so they do not pile up.
969 ac_sub_configure_args=
971 for ac_arg in $ac_configure_args; do
972 if test -n "$ac_prev"; then
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
985 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
987 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
991 for ac_config_dir in $configdirs; do
993 # Do not complain, so a configure script can configure whichever
994 # parts of a large source tree are present.
995 if test ! -d $srcdir/$ac_config_dir; then
999 echo configuring in $ac_config_dir
1004 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1006 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1014 # A "../" for each directory in /$ac_config_dir.
1015 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1018 .) # No --srcdir option. We are building in place.
1019 ac_sub_srcdir=$srcdir ;;
1020 /*) # Absolute path.
1021 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1023 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1026 # Check for guested configure; otherwise get Cygnus style configure.
1027 if test -f $ac_sub_srcdir/configure; then
1028 ac_sub_configure=$ac_sub_srcdir/configure
1029 elif test -f $ac_sub_srcdir/configure.in; then
1030 ac_sub_configure=$ac_configure
1032 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1036 # The recursion is here.
1037 if test -n "$ac_sub_configure"; then
1039 # Make the cache file name correct relative to the subdirectory.
1040 case "$cache_file" in
1041 /*) ac_sub_cache_file=$cache_file ;;
1043 ac_sub_cache_file="$ac_dots$cache_file" ;;
1046 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1047 # The eval makes quoting arguments work.
1048 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1051 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }