3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 build shared BFD library"
17 --enable-maintainer-mode enable make rules and dependencies not useful
18 (and sometimes confusing) to the casual installer"
20 # Initialize some variables set by options.
21 # The variables have the same names as the options, with
22 # dashes changed to underlines.
24 cache_file
=.
/config.cache
33 program_transform_name
=s
,x
,x
,
41 bindir
='${exec_prefix}/bin'
42 sbindir
='${exec_prefix}/sbin'
43 libexecdir
='${exec_prefix}/libexec'
44 datadir
='${prefix}/share'
45 sysconfdir
='${prefix}/etc'
46 sharedstatedir
='${prefix}/com'
47 localstatedir
='${prefix}/var'
48 libdir
='${exec_prefix}/lib'
49 includedir
='${prefix}/include'
50 oldincludedir
='/usr/include'
51 infodir
='${prefix}/info'
52 mandir
='${prefix}/man'
54 # Initialize some other variables.
57 # Maximum number of lines to put in a shell here document.
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
72 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 # Accept the important Cygnus configure options, so we can diagnose typos.
80 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
82 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
83 bindir
="$ac_optarg" ;;
85 -build |
--build |
--buil |
--bui |
--bu)
87 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
90 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
91 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
93 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
94 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
95 cache_file
="$ac_optarg" ;;
97 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
99 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
101 datadir
="$ac_optarg" ;;
103 -disable-* |
--disable-*)
104 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
112 -enable-* |
--enable-*)
113 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
125 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
126 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
127 |
--exec |
--exe |
--ex)
128 ac_prev
=exec_prefix
;;
129 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
130 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
131 |
--exec=* |
--exe=* |
--ex=*)
132 exec_prefix
="$ac_optarg" ;;
134 -gas |
--gas |
--ga |
--g)
135 # Obsolete; use --with-gas.
138 -help |
--help |
--hel |
--he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
193 -host |
--host |
--hos |
--ho)
195 -host=* |
--host=* |
--hos=* |
--ho=*)
198 -includedir |
--includedir |
--includedi |
--included |
--include \
199 |
--includ |
--inclu |
--incl |
--inc)
200 ac_prev
=includedir
;;
201 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
202 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
203 includedir
="$ac_optarg" ;;
205 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
207 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
208 infodir
="$ac_optarg" ;;
210 -libdir |
--libdir |
--libdi |
--libd)
212 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
213 libdir
="$ac_optarg" ;;
215 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
216 |
--libexe |
--libex |
--libe)
217 ac_prev
=libexecdir
;;
218 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
219 |
--libexe=* |
--libex=* |
--libe=*)
220 libexecdir
="$ac_optarg" ;;
222 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
223 |
--localstate |
--localstat |
--localsta |
--localst \
224 |
--locals |
--local |
--loca |
--loc |
--lo)
225 ac_prev
=localstatedir
;;
226 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
227 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
228 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
229 localstatedir
="$ac_optarg" ;;
231 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
233 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
234 mandir
="$ac_optarg" ;;
237 # Obsolete; use --without-fp.
240 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
244 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
245 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
248 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
249 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
250 |
--oldin |
--oldi |
--old |
--ol |
--o)
251 ac_prev
=oldincludedir
;;
252 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
253 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
254 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
255 oldincludedir
="$ac_optarg" ;;
257 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
259 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
260 prefix
="$ac_optarg" ;;
262 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
263 |
--program-pre |
--program-pr |
--program-p)
264 ac_prev
=program_prefix
;;
265 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
266 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
267 program_prefix
="$ac_optarg" ;;
269 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
270 |
--program-suf |
--program-su |
--program-s)
271 ac_prev
=program_suffix
;;
272 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
273 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
274 program_suffix
="$ac_optarg" ;;
276 -program-transform-name |
--program-transform-name \
277 |
--program-transform-nam |
--program-transform-na \
278 |
--program-transform-n |
--program-transform- \
279 |
--program-transform |
--program-transfor \
280 |
--program-transfo |
--program-transf \
281 |
--program-trans |
--program-tran \
282 |
--progr-tra |
--program-tr |
--program-t)
283 ac_prev
=program_transform_name
;;
284 -program-transform-name=* |
--program-transform-name=* \
285 |
--program-transform-nam=* |
--program-transform-na=* \
286 |
--program-transform-n=* |
--program-transform-=* \
287 |
--program-transform=* |
--program-transfor=* \
288 |
--program-transfo=* |
--program-transf=* \
289 |
--program-trans=* |
--program-tran=* \
290 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
291 program_transform_name
="$ac_optarg" ;;
293 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
294 |
-silent |
--silent |
--silen |
--sile |
--sil)
297 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
299 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
301 sbindir
="$ac_optarg" ;;
303 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
304 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
305 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
307 ac_prev
=sharedstatedir
;;
308 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
309 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
310 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
312 sharedstatedir
="$ac_optarg" ;;
314 -site |
--site |
--sit)
316 -site=* |
--site=* |
--sit=*)
319 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
321 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
322 srcdir
="$ac_optarg" ;;
324 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
325 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
326 ac_prev
=sysconfdir
;;
327 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
328 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
329 sysconfdir
="$ac_optarg" ;;
331 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
333 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
334 target
="$ac_optarg" ;;
336 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
339 -version |
--version |
--versio |
--versi |
--vers)
340 echo "configure generated by autoconf version 2.12"
344 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 ac_package
=`echo $ac_package| sed 's/-/_/g'`
354 eval "with_${ac_package}='$ac_optarg'" ;;
356 -without-* |
--without-*)
357 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package
=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
366 # Obsolete; use --with-x.
369 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
370 |
--x-incl |
--x-inc |
--x-in |
--x-i)
371 ac_prev
=x_includes
;;
372 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
373 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
374 x_includes
="$ac_optarg" ;;
376 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
377 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
378 ac_prev
=x_libraries
;;
379 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
380 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
381 x_libraries
="$ac_optarg" ;;
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 if test "x$nonopt" != xNONE
; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405 # File descriptor usage:
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
431 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
432 |
--no-cr |
--no-c) ;;
433 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
434 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
435 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest
* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file
=gprof.c
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted
=yes
463 # Try the directory containing this script, then its parent.
465 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
468 if test ! -r $srcdir/$ac_unique_file; then
472 ac_srcdir_defaulted
=no
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE
; then
486 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
488 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file
in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
502 echo "creating cache $cache_file"
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp
='$CPP $CPPFLAGS'
509 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 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
=
528 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
529 if test -f $ac_dir/install-sh
; then
531 ac_install_sh
="$ac_aux_dir/install-sh -c"
533 elif test -f $ac_dir/install.sh
; then
535 ac_install_sh
="$ac_aux_dir/install.sh -c"
539 if test -z "$ac_aux_dir"; then
540 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
542 ac_config_guess
=$ac_aux_dir/config.guess
543 ac_config_sub
=$ac_aux_dir/config.sub
544 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
547 # Do some error checking and defaulting for the host and target type.
549 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
552 # 1. You are not allowed to specify --host, --target, and nonopt at the
554 # 2. Host defaults to nonopt.
555 # 3. If nonopt is not specified, then host defaults to the current host,
556 # as determined by config.guess.
557 # 4. Target and build default to nonopt.
558 # 5. If nonopt is not specified, then target and build default to host.
560 # The aliases save the names the user supplied, while $host etc.
561 # will get canonicalized.
562 case $host---$target---$nonopt in
563 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
564 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
568 # Make sure we can run config.sub.
569 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
570 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
573 echo $ac_n "checking host system type""... $ac_c" 1>&6
574 echo "configure:575: checking host system type" >&5
577 case "$host_alias" in
581 if host_alias
=`$ac_config_guess`; then :
582 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
584 *) host_alias
=$nonopt ;;
588 host=`$ac_config_sub $host_alias`
589 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
590 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
591 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
592 echo "$ac_t""$host" 1>&6
594 echo $ac_n "checking target system type""... $ac_c" 1>&6
595 echo "configure:596: checking target system type" >&5
598 case "$target_alias" in
601 NONE
) target_alias
=$host_alias ;;
602 *) target_alias
=$nonopt ;;
606 target
=`$ac_config_sub $target_alias`
607 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
608 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
609 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
610 echo "$ac_t""$target" 1>&6
612 echo $ac_n "checking build system type""... $ac_c" 1>&6
613 echo "configure:614: checking build system type" >&5
616 case "$build_alias" in
619 NONE
) build_alias
=$host_alias ;;
620 *) build_alias
=$nonopt ;;
624 build
=`$ac_config_sub $build_alias`
625 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
626 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
627 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
628 echo "$ac_t""$build" 1>&6
630 test "$host_alias" != "$target_alias" &&
631 test "$program_prefix$program_suffix$program_transform_name" = \
633 program_prefix
=${target_alias}-
636 # Find a good install program. We prefer a C program (faster),
637 # so one script is as good as another. But avoid the broken or
638 # incompatible versions:
639 # SysV /etc/install, /usr/sbin/install
640 # SunOS /usr/etc/install
643 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
644 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
645 # ./install, which can be erroneously created by make from ./install.sh.
646 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
647 echo "configure:648: checking for a BSD compatible install" >&5
648 if test -z "$INSTALL"; then
649 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
650 echo $ac_n "(cached) $ac_c" 1>&6
652 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
653 for ac_dir
in $PATH; do
654 # Account for people who put trailing slashes in PATH elements.
656 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
658 # OSF1 and SCO ODT 3.0 have their own names for install.
659 for ac_prog
in ginstall installbsd scoinst
install; do
660 if test -f $ac_dir/$ac_prog; then
661 if test $ac_prog = install &&
662 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
663 # AIX install. It has an incompatible calling convention.
664 # OSF/1 installbsd also uses dspmsg, but is usable.
667 ac_cv_path_install
="$ac_dir/$ac_prog -c"
678 if test "${ac_cv_path_install+set}" = set; then
679 INSTALL
="$ac_cv_path_install"
681 # As a last resort, use the slow shell script. We don't cache a
682 # path for INSTALL within a source directory, because that will
683 # break other packages using the cache if that directory is
684 # removed, or if the path is relative.
685 INSTALL
="$ac_install_sh"
688 echo "$ac_t""$INSTALL" 1>&6
690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
691 # It thinks the first close brace ends the variable substitution.
692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
694 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
704 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
705 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
707 cat >> confdefs.h
<<EOF
708 #define PACKAGE "$PACKAGE"
711 cat >> confdefs.h
<<EOF
712 #define VERSION "$VERSION"
715 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
716 echo "configure:717: checking whether build environment is sane" >&5
719 echo timestamp
> conftestfile
720 # Do `set' in a subshell so we don't clobber the current shell's
721 # arguments. Must try -L first in case configure is actually a
722 # symlink; some systems play weird games with the mod time of symlinks
723 # (eg FreeBSD returns the mod time of the symlink's containing
726 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
727 if test "" = "X"; then
729 set X
`ls -t $srcdir/configure conftestfile`
731 test "$2" = conftestfile
737 { echo "configure: error: newly created file is older than distributed files!
738 Check your system clock" 1>&2; exit 1; }
741 echo "$ac_t""yes" 1>&6
742 if test "$program_transform_name" = s
,x
,x
,; then
743 program_transform_name
=
745 # Double any \ or $. echo might interpret backslashes.
746 cat <<\EOF_SED
> conftestsed
747 s
,\\,\\\\,g
; s
,\$
,$$
,g
749 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
752 test "$program_prefix" != NONE
&&
753 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
754 # Use a double $ so make ignores it.
755 test "$program_suffix" != NONE
&&
756 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
758 # sed with no file args requires a program.
759 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
761 missing_dir
=`cd $ac_aux_dir && pwd`
762 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
763 echo "configure:764: checking for working aclocal" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf. Sigh.
767 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
769 echo "$ac_t""found" 1>&6
771 ACLOCAL
="$missing_dir/missing aclocal"
772 echo "$ac_t""missing" 1>&6
775 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
776 echo "configure:777: checking for working autoconf" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
782 echo "$ac_t""found" 1>&6
784 AUTOCONF
="$missing_dir/missing autoconf"
785 echo "$ac_t""missing" 1>&6
788 echo $ac_n "checking for working automake""... $ac_c" 1>&6
789 echo "configure:790: checking for working automake" >&5
790 # Run test in a subshell; some versions of sh will print an error if
791 # an executable is not found, even if stderr is redirected.
792 # Redirect stdin to placate older versions of autoconf. Sigh.
793 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
795 echo "$ac_t""found" 1>&6
797 AUTOMAKE
="$missing_dir/missing automake"
798 echo "$ac_t""missing" 1>&6
801 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
802 echo "configure:803: checking for working autoheader" >&5
803 # Run test in a subshell; some versions of sh will print an error if
804 # an executable is not found, even if stderr is redirected.
805 # Redirect stdin to placate older versions of autoconf. Sigh.
806 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
807 AUTOHEADER
=autoheader
808 echo "$ac_t""found" 1>&6
810 AUTOHEADER
="$missing_dir/missing autoheader"
811 echo "$ac_t""missing" 1>&6
814 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
815 echo "configure:816: checking for working makeinfo" >&5
816 # Run test in a subshell; some versions of sh will print an error if
817 # an executable is not found, even if stderr is redirected.
818 # Redirect stdin to placate older versions of autoconf. Sigh.
819 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
821 echo "$ac_t""found" 1>&6
823 MAKEINFO
="$missing_dir/missing makeinfo"
824 echo "$ac_t""missing" 1>&6
827 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
828 echo "configure:829: checking whether ${MAKE-make} sets \${MAKE}" >&5
829 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
830 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 cat > conftestmake
<<\EOF
835 @
echo 'ac_maketemp="${MAKE}"'
837 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
838 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
839 if test -n "$ac_maketemp"; then
840 eval ac_cv_prog_make_
${ac_make}_set
=yes
842 eval ac_cv_prog_make_
${ac_make}_set
=no
846 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
847 echo "$ac_t""yes" 1>&6
850 echo "$ac_t""no" 1>&6
851 SET_MAKE
="MAKE=${MAKE-make}"
855 # Check whether --enable-shared or --disable-shared was given.
856 if test "${enable_shared+set}" = set; then
857 enableval
="$enable_shared"
858 case "${enableval}" in
861 *bfd
*) shared
=true
;;
866 # Extract the first word of "gcc", so it can be a program name with args.
867 set dummy gcc
; ac_word
=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
873 if test -n "$CC"; then
874 ac_cv_prog_CC
="$CC" # Let the user override the test.
876 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
877 for ac_dir
in $PATH; do
878 test -z "$ac_dir" && ac_dir
=.
879 if test -f $ac_dir/$ac_word; then
888 if test -n "$CC"; then
889 echo "$ac_t""$CC" 1>&6
891 echo "$ac_t""no" 1>&6
894 if test -z "$CC"; then
895 # Extract the first word of "cc", so it can be a program name with args.
896 set dummy cc
; ac_word
=$2
897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
898 echo "configure:899: checking for $ac_word" >&5
899 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
902 if test -n "$CC"; then
903 ac_cv_prog_CC
="$CC" # Let the user override the test.
905 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
907 for ac_dir
in $PATH; do
908 test -z "$ac_dir" && ac_dir
=.
909 if test -f $ac_dir/$ac_word; then
910 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
919 if test $ac_prog_rejected = yes; then
920 # We found a bogon in the path, so make sure we never use it.
921 set dummy
$ac_cv_prog_CC
923 if test $# -gt 0; then
924 # We chose a different compiler from the bogus one.
925 # However, it has the same basename, so the bogon will be chosen
926 # first if we set CC to just the basename; use the full file name.
928 set dummy
"$ac_dir/$ac_word" "$@"
936 if test -n "$CC"; then
937 echo "$ac_t""$CC" 1>&6
939 echo "$ac_t""no" 1>&6
942 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
945 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
946 echo "configure:947: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
950 ac_cpp
='$CPP $CPPFLAGS'
951 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
952 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
953 cross_compiling
=$ac_cv_prog_cc_cross
955 cat > conftest.
$ac_ext <<EOF
956 #line 957 "configure"
957 #include "confdefs.h"
960 if { (eval echo configure
:961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
961 ac_cv_prog_cc_works
=yes
962 # If we can't run a trivial program, we are probably using a cross compiler.
963 if (.
/conftest
; exit) 2>/dev
/null
; then
964 ac_cv_prog_cc_cross
=no
966 ac_cv_prog_cc_cross
=yes
969 echo "configure: failed program was:" >&5
970 cat conftest.
$ac_ext >&5
971 ac_cv_prog_cc_works
=no
975 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
976 if test $ac_cv_prog_cc_works = no
; then
977 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
979 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
980 echo "configure:981: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
981 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
982 cross_compiling
=$ac_cv_prog_cc_cross
984 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
985 echo "configure:986: checking whether we are using GNU C" >&5
986 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 cat > conftest.c
<<EOF
994 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1001 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1003 if test $ac_cv_prog_gcc = yes; then
1005 ac_test_CFLAGS
="${CFLAGS+set}"
1006 ac_save_CFLAGS
="$CFLAGS"
1008 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1009 echo "configure:1010: checking whether ${CC-cc} accepts -g" >&5
1010 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 echo 'void f(){}' > conftest.c
1014 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1023 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1024 if test "$ac_test_CFLAGS" = set; then
1025 CFLAGS
="$ac_save_CFLAGS"
1026 elif test $ac_cv_prog_cc_g = yes; then
1033 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1036 # Find a good install program. We prefer a C program (faster),
1037 # so one script is as good as another. But avoid the broken or
1038 # incompatible versions:
1039 # SysV /etc/install, /usr/sbin/install
1040 # SunOS /usr/etc/install
1041 # IRIX /sbin/install
1043 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1044 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1045 # ./install, which can be erroneously created by make from ./install.sh.
1046 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1047 echo "configure:1048: checking for a BSD compatible install" >&5
1048 if test -z "$INSTALL"; then
1049 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1053 for ac_dir
in $PATH; do
1054 # Account for people who put trailing slashes in PATH elements.
1056 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1058 # OSF1 and SCO ODT 3.0 have their own names for install.
1059 for ac_prog
in ginstall installbsd scoinst
install; do
1060 if test -f $ac_dir/$ac_prog; then
1061 if test $ac_prog = install &&
1062 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1063 # AIX install. It has an incompatible calling convention.
1064 # OSF/1 installbsd also uses dspmsg, but is usable.
1067 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1078 if test "${ac_cv_path_install+set}" = set; then
1079 INSTALL
="$ac_cv_path_install"
1081 # As a last resort, use the slow shell script. We don't cache a
1082 # path for INSTALL within a source directory, because that will
1083 # break other packages using the cache if that directory is
1084 # removed, or if the path is relative.
1085 INSTALL
="$ac_install_sh"
1088 echo "$ac_t""$INSTALL" 1>&6
1090 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1091 # It thinks the first close brace ends the variable substitution.
1092 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1094 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1097 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1098 echo "configure:1099: checking for POSIXized ISC" >&5
1099 if test -d /etc
/conf
/kconfig.d
&&
1100 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1102 echo "$ac_t""yes" 1>&6
1103 ISC
=yes # If later tests want to check for ISC.
1104 cat >> confdefs.h
<<\EOF
1105 #define _POSIX_SOURCE 1
1108 if test "$GCC" = yes; then
1114 echo "$ac_t""no" 1>&6
1120 alpha-
*-*) MY_TARGET
=alpha
;;
1121 i
[3456]86-*-*) MY_TARGET
=i386
;;
1122 sparc-
*-*) MY_TARGET
=sparc
;;
1123 tahoe-
*-*) MY_TARGET
=tahoe
;;
1124 vax-
*-*) MY_TARGET
=vax
;;
1125 ns32k-
*-*) MY_TARGET
=ns532
;;
1126 *-*-*) MY_TARGET
=dummy
;;
1132 *-*-bsd4.4
* |
*-*-netbsd* |
*-*-freebsd* |
*-*-openbsd*)
1133 cat >> confdefs.h
<<\EOF
1134 #define BSD44_FORMAT 1
1140 BFDLIB
='-L../bfd -lbfd'
1142 # We need to handle some special cases if BFD was built shared.
1145 # On SunOS, we must link against the name we are going to install,
1146 # not -lbfd, since SunOS does not support SONAME.
1147 if test "${shared}" = "true"; then
1148 BFDLIB
='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
1152 # On Alpha OSF/1, the native linker searches all the -L
1153 # directories for any LIB.so files, and only then searches for any
1154 # LIB.a files. That means that if there is an installed
1155 # libbfd.so, but this build is not done with --enable-shared, the
1156 # link will wind up being against the install libbfd.so rather
1157 # than the newly built libbfd. To avoid this, we must explicitly
1158 # link against libbfd.a when --enable-shared is not used.
1159 if test "${shared}" != "true"; then
1160 BFDLIB
='../bfd/libbfd.a'
1168 # If we have shared libraries, try to set rpath reasonably.
1169 if test "${shared}" = "true"; then
1172 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
1175 HLDFLAGS
='-Wl,-rpath,$(libdir)'
1180 HLDFLAGS
='-Wl,-rpath,$(libdir)'
1183 HLDFLAGS
='-R $(libdir)'
1186 HLDENV
='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
1191 # On SunOS, if the linker supports the -rpath option, use it to
1192 # prevent ../bfd and ../opcodes from being included in the run time
1196 echo 'main () { }' > conftest.c
1197 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
1198 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
1200 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
1202 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
1204 elif test "${shared}" = "true"; then
1205 HLDFLAGS
='-Wl,-rpath=$(libdir)'
1207 HLDFLAGS
='-Wl,-rpath='
1209 rm -f conftest.t conftest.c conftest
1215 # automake --cygnus requires these for some reason.
1216 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether to enable maintainer-specific portions of Makefiles" >&5
1218 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1219 if test "${enable_maintainer_mode+set}" = set; then
1220 enableval
="$enable_maintainer_mode"
1221 USE_MAINTAINER_MODE
=$enableval
1223 USE_MAINTAINER_MODE
=no
1226 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1227 if test $USE_MAINTAINER_MODE = yes; then
1234 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1235 echo "configure:1236: checking for Cygwin32 environment" >&5
1236 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1239 cat > conftest.
$ac_ext << 'EOF'
1244 if { (eval echo configure
:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest.exe
; then
1252 echo "$ac_t""$am_cv_cygwin32" 1>&6
1254 test "$am_cv_cygwin32" = yes && EXEEXT
=.exe
1258 cat > confcache
<<\EOF
1259 # This file is a shell script that caches the results of configure
1260 # tests run on this system so they can be shared between configure
1261 # scripts and configure runs. It is not useful on other systems.
1262 # If it contains results you don't want to keep, you may remove or edit it.
1264 # By default, configure uses ./config.cache as the cache file,
1265 # creating it if it does not exist already. You can give configure
1266 # the --cache-file=FILE option to use a different cache file; that is
1267 # what configure does when it calls configure scripts in
1268 # subdirectories, so they share the cache.
1269 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1270 # config.status only pays attention to the cache file if you give it the
1271 # --recheck option to rerun configure.
1274 # The following way of writing the cache mishandles newlines in values,
1275 # but we know of no workaround that is simple, portable, and efficient.
1276 # So, don't put newlines in cache variables' values.
1277 # Ultrix sh set writes to stderr and can't be redirected directly,
1278 # and sets the high bit in the cache file unless we assign to the vars.
1280 case `(ac_space=' '; set) 2>&1` in
1282 # `set' does not quote correctly, so add quotes (double-quote substitution
1283 # turns \\\\ into \\, and sed turns \\ into \).
1285 -e "s/'/'\\\\''/g" \
1286 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1289 # `set' quotes correctly as required by POSIX, so do not add quotes.
1290 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1293 if cmp -s $cache_file confcache
; then
1296 if test -w $cache_file; then
1297 echo "updating cache $cache_file"
1298 cat confcache
> $cache_file
1300 echo "not updating unwritable cache $cache_file"
1305 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1307 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1308 # Let make expand exec_prefix.
1309 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1311 # Any assignment to VPATH causes Sun make to only execute
1312 # the first set of double-colon rules, so remove it if not needed.
1313 # If there is a colon in the path, we need to keep it.
1314 if test "x$srcdir" = x.
; then
1315 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1318 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1320 # Transform confdefs.h into DEFS.
1321 # Protect against shell expansion while executing Makefile rules.
1322 # Protect against Makefile macro expansion.
1323 cat > conftest.defs
<<\EOF
1324 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1325 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1330 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
1334 # Without the "./", some shells look in PATH for config.status.
1335 : ${CONFIG_STATUS=./config.status}
1337 echo creating $CONFIG_STATUS
1338 rm -f $CONFIG_STATUS
1339 cat > $CONFIG_STATUS <<EOF
1341 # Generated automatically by configure.
1342 # Run this file to recreate the current configuration.
1343 # This directory was configured as follows,
1344 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
1346 # $0 $ac_configure_args
1348 # Compiler output produced by configure, useful for debugging
1349 # configure, is in ./config.log if it exists.
1351 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1354 case "\$ac_option" in
1355 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1356 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1357 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1358 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1359 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1361 -help | --help | --hel | --he | --h)
1362 echo "\$ac_cs_usage"; exit 0 ;;
1363 *) echo "\$ac_cs_usage"; exit 1 ;;
1367 ac_given_srcdir=$srcdir
1368 ac_given_INSTALL="$INSTALL"
1370 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1372 cat >> $CONFIG_STATUS <<EOF
1374 # Protect against being on the right side of a sed subst in config.status.
1375 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1376 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1379 s%@CFLAGS@%$CFLAGS%g
1380 s%@CPPFLAGS@%$CPPFLAGS%g
1381 s%@CXXFLAGS@%$CXXFLAGS%g
1383 s%@LDFLAGS@%$LDFLAGS%g
1385 s%@exec_prefix@%$exec_prefix%g
1386 s%@prefix@%$prefix%g
1387 s%@program_transform_name@%$program_transform_name%g
1388 s%@bindir@%$bindir%g
1389 s%@sbindir@%$sbindir%g
1390 s%@libexecdir@%$libexecdir%g
1391 s%@datadir@%$datadir%g
1392 s%@sysconfdir@%$sysconfdir%g
1393 s%@sharedstatedir@%$sharedstatedir%g
1394 s%@localstatedir@%$localstatedir%g
1395 s%@libdir@%$libdir%g
1396 s%@includedir@%$includedir%g
1397 s%@oldincludedir@%$oldincludedir%g
1398 s%@infodir@%$infodir%g
1399 s%@mandir@%$mandir%g
1401 s%@host_alias@%$host_alias%g
1402 s%@host_cpu@%$host_cpu%g
1403 s%@host_vendor@%$host_vendor%g
1404 s%@host_os@%$host_os%g
1405 s%@target@%$target%g
1406 s%@target_alias@%$target_alias%g
1407 s%@target_cpu@%$target_cpu%g
1408 s%@target_vendor@%$target_vendor%g
1409 s%@target_os@%$target_os%g
1411 s%@build_alias@%$build_alias%g
1412 s%@build_cpu@%$build_cpu%g
1413 s%@build_vendor@%$build_vendor%g
1414 s%@build_os@%$build_os%g
1415 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1416 s%@INSTALL_DATA@%$INSTALL_DATA%g
1417 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1418 s%@PACKAGE@%$PACKAGE%g
1419 s%@VERSION@%$VERSION%g
1420 s%@ACLOCAL@%$ACLOCAL%g
1421 s%@AUTOCONF@%$AUTOCONF%g
1422 s%@AUTOMAKE@%$AUTOMAKE%g
1423 s%@AUTOHEADER@%$AUTOHEADER%g
1424 s%@MAKEINFO@%$MAKEINFO%g
1425 s%@SET_MAKE@%$SET_MAKE%g
1427 s%@MY_TARGET@%$MY_TARGET%g
1428 s%@BFDLIB@%$BFDLIB%g
1429 s%@HLDFLAGS@%$HLDFLAGS%g
1430 s%@HLDENV@%$HLDENV%g
1432 s%@EXEEXT@%$EXEEXT%g
1437 cat >> $CONFIG_STATUS <<\EOF
1439 # Split the substitutions into bite-sized pieces for seds with
1440 # small command number limits, like on Digital OSF/1 and HP-UX.
1441 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1442 ac_file=1 # Number of current file.
1443 ac_beg=1 # First line for current file.
1444 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1447 while $ac_more_lines; do
1448 if test $ac_beg -gt 1; then
1449 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1451 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1453 if test ! -s conftest.s$ac_file; then
1455 rm -f conftest.s$ac_file
1457 if test -z "$ac_sed_cmds"; then
1458 ac_sed_cmds="sed -f conftest.s$ac_file"
1460 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1462 ac_file=`expr $ac_file + 1`
1464 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1467 if test -z "$ac_sed_cmds"; then
1472 cat >> $CONFIG_STATUS <<EOF
1474 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1476 cat >> $CONFIG_STATUS <<\EOF
1477 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1478 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1480 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
1481 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
1482 *) ac_file_in="${ac_file}.in" ;;
1485 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1487 # Remove last slash and all that follows it. Not all systems have dirname.
1488 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1489 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1490 # The file is in a subdirectory.
1491 test ! -d "$ac_dir" && mkdir "$ac_dir"
1492 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
1493 # A "../" for each directory in $ac_dir_suffix.
1494 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
1496 ac_dir_suffix= ac_dots=
1499 case "$ac_given_srcdir" in
1501 if test -z "$ac_dots"; then top_srcdir=.
1502 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
1503 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1505 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1506 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1509 case "$ac_given_INSTALL" in
1510 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1511 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1514 echo creating "$ac_file"
1516 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
1518 *Makefile*) ac_comsub="1i\\
1519 # $configure_input" ;;
1523 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1525 s%@configure_input@%$configure_input%g
1526 s%@srcdir@%$srcdir%g
1527 s%@top_srcdir@%$top_srcdir%g
1528 s%@INSTALL@%$INSTALL%g
1529 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1534 cat >> $CONFIG_STATUS <<EOF
1537 cat >> $CONFIG_STATUS <<\EOF
1541 chmod +x $CONFIG_STATUS
1542 rm -fr confdefs* $ac_clean_files
1543 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1