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 --with-libbfd=<file> path to libbfd.a library to use "
17 --with-libiberty=<file> path to libiberty.a library to use "
19 --with-bfd-include-dir=<dir> include path for correct bfd.h "
21 --with-binutils-include-dir=<dir> include path for binutils headers "
23 --disable-got-check - disable check for GOT (needed on H8) "
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,
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
59 # Initialize some other variables.
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 # Accept the important Cygnus configure options, so we can diagnose typos.
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
91 -build | --build | --buil | --bui | --bu)
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file="$ac_optarg" ;;
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107 datadir="$ac_optarg" ;;
109 -disable-* | --disable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
118 -enable-* | --enable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev=exec_prefix ;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix="$ac_optarg" ;;
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
199 -host | --host | --hos | --ho)
201 -host=* | --host=* | --hos=* | --ho=*)
204 -includedir | --includedir | --includedi | --included | --include \
205 | --includ | --inclu | --incl | --inc)
206 ac_prev=includedir ;;
207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208 | --includ=* | --inclu=* | --incl=* | --inc=*)
209 includedir="$ac_optarg" ;;
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
216 -libdir | --libdir | --libdi | --libd)
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir="$ac_optarg" ;;
221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222 | --libexe | --libex | --libe)
223 ac_prev=libexecdir ;;
224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225 | --libexe=* | --libex=* | --libe=*)
226 libexecdir="$ac_optarg" ;;
228 -localstatedir | --localstatedir | --localstatedi | --localstated \
229 | --localstate | --localstat | --localsta | --localst \
230 | --locals | --local | --loca | --loc | --lo)
231 ac_prev=localstatedir ;;
232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235 localstatedir="$ac_optarg" ;;
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
243 # Obsolete; use --without-fp.
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256 | --oldin | --oldi | --old | --ol | --o)
257 ac_prev=oldincludedir ;;
258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261 oldincludedir="$ac_optarg" ;;
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix="$ac_optarg" ;;
268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
269 | --program-pre | --program-pr | --program-p)
270 ac_prev=program_prefix ;;
271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273 program_prefix="$ac_optarg" ;;
275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
276 | --program-suf | --program-su | --program-s)
277 ac_prev=program_suffix ;;
278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
290 -program-transform-name=* | --program-transform-name=* \
291 | --program-transform-nam=* | --program-transform-na=* \
292 | --program-transform-n=* | --program-transform-=* \
293 | --program-transform=* | --program-transfor=* \
294 | --program-transfo=* | --program-transf=* \
295 | --program-trans=* | --program-tran=* \
296 | --progr-tra=* | --program-tr=* | --program-t=*)
297 program_transform_name="$ac_optarg" ;;
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307 sbindir="$ac_optarg" ;;
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
313 ac_prev=sharedstatedir ;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318 sharedstatedir="$ac_optarg" ;;
320 -site | --site | --sit)
322 -site=* | --site=* | --sit=*)
325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328 srcdir="$ac_optarg" ;;
330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331 | --syscon | --sysco | --sysc | --sys | --sy)
332 ac_prev=sysconfdir ;;
333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335 sysconfdir="$ac_optarg" ;;
337 -target | --target | --targe | --targ | --tar | --ta | --t)
339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340 target="$ac_optarg" ;;
342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
345 -version | --version | --versio | --versi | --vers)
346 echo "configure generated by autoconf version 2.13"
350 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}='$ac_optarg'" ;;
362 -without-* | --without-*)
363 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
372 # Obsolete; use --with-x.
375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376 | --x-incl | --x-inc | --x-in | --x-i)
377 ac_prev=x_includes ;;
378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380 x_includes="$ac_optarg" ;;
382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384 ac_prev=x_libraries ;;
385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387 x_libraries="$ac_optarg" ;;
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
396 if test "x$nonopt" != xNONE; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411 # File descriptor usage:
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438 | --no-cr | --no-c) ;;
439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 # Only set these to C if already set. These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file=elf2flt.c
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted=yes
469 # Try the directory containing this script, then its parent.
471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
474 if test ! -r $srcdir/$ac_unique_file; then
478 ac_srcdir_defaulted=no
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE; then
492 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 for ac_site_file in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
508 echo "creating cache $cache_file"
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp='$CPP $CPPFLAGS'
515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530 ac_n= ac_c='\c' ac_t=
535 # Check whether --with-libbfd or --without-libbfd was given.
536 if test "${with_libbfd+set}" = set; then
537 withval="$with_libbfd"
545 # Check whether --with-libiberty or --without-libiberty was given.
546 if test "${with_libiberty+set}" = set; then
547 withval="$with_libiberty"
548 ac_libiberty=$withval
555 # Check whether --with-bfd-include-dir or --without-bfd-include-dir was given.
556 if test "${with_bfd_include_dir+set}" = set; then
557 withval="$with_bfd_include_dir"
558 ac_bfd_include_dir=$withval
560 ac_bfd_include_dir=NONE
565 # Check whether --with-binutils-include-dir or --without-binutils-include-dir was given.
566 if test "${with_binutils_include_dir+set}" = set; then
567 withval="$with_binutils_include_dir"
568 ac_binutils_include_dir=$withval
570 ac_binutils_include_dir=NONE
575 # Check whether --enable-got-check or --disable-got-check was given.
576 if test "${enable_got_check+set}" = set; then
577 enableval="$enable_got_check"
586 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
587 if test -f $ac_dir/install-sh; then
589 ac_install_sh="$ac_aux_dir/install-sh -c"
591 elif test -f $ac_dir/install.sh; then
593 ac_install_sh="$ac_aux_dir/install.sh -c"
597 if test -z "$ac_aux_dir"; then
598 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
600 ac_config_guess=$ac_aux_dir/config.guess
601 ac_config_sub=$ac_aux_dir/config.sub
602 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
605 # Make sure we can run config.sub.
606 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
607 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
610 echo $ac_n "checking host system type""... $ac_c" 1>&6
611 echo "configure:612: checking host system type" >&5
614 case "$host_alias" in
618 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
619 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
621 *) host_alias=$nonopt ;;
625 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
626 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
627 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
628 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
629 echo "$ac_t""$host" 1>&6
631 echo $ac_n "checking target system type""... $ac_c" 1>&6
632 echo "configure:633: checking target system type" >&5
635 case "$target_alias" in
638 NONE) target_alias=$host_alias ;;
639 *) target_alias=$nonopt ;;
643 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
644 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647 echo "$ac_t""$target" 1>&6
650 # Extract the first word of "gcc", so it can be a program name with args.
651 set dummy gcc; ac_word=$2
652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
653 echo "configure:654: checking for $ac_word" >&5
654 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
657 if test -n "$CC"; then
658 ac_cv_prog_CC="$CC" # Let the user override the test.
660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
662 for ac_dir in $ac_dummy; do
663 test -z "$ac_dir" && ac_dir=.
664 if test -f $ac_dir/$ac_word; then
673 if test -n "$CC"; then
674 echo "$ac_t""$CC" 1>&6
676 echo "$ac_t""no" 1>&6
679 if test -z "$CC"; then
680 # Extract the first word of "cc", so it can be a program name with args.
681 set dummy cc; ac_word=$2
682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683 echo "configure:684: checking for $ac_word" >&5
684 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
687 if test -n "$CC"; then
688 ac_cv_prog_CC="$CC" # Let the user override the test.
690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
693 for ac_dir in $ac_dummy; do
694 test -z "$ac_dir" && ac_dir=.
695 if test -f $ac_dir/$ac_word; then
696 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
705 if test $ac_prog_rejected = yes; then
706 # We found a bogon in the path, so make sure we never use it.
707 set dummy $ac_cv_prog_CC
709 if test $# -gt 0; then
710 # We chose a different compiler from the bogus one.
711 # However, it has the same basename, so the bogon will be chosen
712 # first if we set CC to just the basename; use the full file name.
714 set dummy "$ac_dir/$ac_word" "$@"
722 if test -n "$CC"; then
723 echo "$ac_t""$CC" 1>&6
725 echo "$ac_t""no" 1>&6
728 if test -z "$CC"; then
731 # Extract the first word of "cl", so it can be a program name with args.
732 set dummy cl; ac_word=$2
733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
734 echo "configure:735: checking for $ac_word" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
738 if test -n "$CC"; then
739 ac_cv_prog_CC="$CC" # Let the user override the test.
741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
743 for ac_dir in $ac_dummy; do
744 test -z "$ac_dir" && ac_dir=.
745 if test -f $ac_dir/$ac_word; then
754 if test -n "$CC"; then
755 echo "$ac_t""$CC" 1>&6
757 echo "$ac_t""no" 1>&6
762 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
765 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
766 echo "configure:767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
770 ac_cpp='$CPP $CPPFLAGS'
771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
773 cross_compiling=$ac_cv_prog_cc_cross
775 cat > conftest.$ac_ext << EOF
777 #line 778 "configure"
778 #include "confdefs.h"
782 if { (eval echo configure:783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
783 ac_cv_prog_cc_works=yes
784 # If we can't run a trivial program, we are probably using a cross compiler.
785 if (./conftest; exit) 2>/dev/null; then
786 ac_cv_prog_cc_cross=no
788 ac_cv_prog_cc_cross=yes
791 echo "configure: failed program was:" >&5
792 cat conftest.$ac_ext >&5
793 ac_cv_prog_cc_works=no
797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
798 ac_cpp='$CPP $CPPFLAGS'
799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
801 cross_compiling=$ac_cv_prog_cc_cross
803 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
804 if test $ac_cv_prog_cc_works = no; then
805 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
807 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
808 echo "configure:809: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
809 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
810 cross_compiling=$ac_cv_prog_cc_cross
812 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
813 echo "configure:814: checking whether we are using GNU C" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 cat > conftest.c <<EOF
822 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
829 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
831 if test $ac_cv_prog_gcc = yes; then
837 ac_test_CFLAGS="${CFLAGS+set}"
838 ac_save_CFLAGS="$CFLAGS"
840 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
841 echo "configure:842: checking whether ${CC-cc} accepts -g" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 echo 'void f(){}' > conftest.c
846 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
855 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
856 if test "$ac_test_CFLAGS" = set; then
857 CFLAGS="$ac_save_CFLAGS"
858 elif test $ac_cv_prog_cc_g = yes; then
859 if test "$GCC" = yes; then
865 if test "$GCC" = yes; then
872 # Find a good install program. We prefer a C program (faster),
873 # so one script is as good as another. But avoid the broken or
874 # incompatible versions:
875 # SysV /etc/install, /usr/sbin/install
876 # SunOS /usr/etc/install
879 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
880 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
881 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
882 # ./install, which can be erroneously created by make from ./install.sh.
883 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
884 echo "configure:885: checking for a BSD compatible install" >&5
885 if test -z "$INSTALL"; then
886 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
889 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
890 for ac_dir in $PATH; do
891 # Account for people who put trailing slashes in PATH elements.
893 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
895 # OSF1 and SCO ODT 3.0 have their own names for install.
896 # Don't use installbsd from OSF since it installs stuff as root
898 for ac_prog in ginstall scoinst install; do
899 if test -f $ac_dir/$ac_prog; then
900 if test $ac_prog = install &&
901 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
902 # AIX install. It has an incompatible calling convention.
905 ac_cv_path_install="$ac_dir/$ac_prog -c"
916 if test "${ac_cv_path_install+set}" = set; then
917 INSTALL="$ac_cv_path_install"
919 # As a last resort, use the slow shell script. We don't cache a
920 # path for INSTALL within a source directory, because that will
921 # break other packages using the cache if that directory is
922 # removed, or if the path is relative.
923 INSTALL="$ac_install_sh"
926 echo "$ac_t""$INSTALL" 1>&6
928 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
929 # It thinks the first close brace ends the variable substitution.
930 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
932 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
934 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
937 if test "$ac_libiberty" = "NONE"; then
938 echo $ac_n "checking for objalloc_create in -liberty""... $ac_c" 1>&6
939 echo "configure:940: checking for objalloc_create in -liberty" >&5
940 ac_lib_var=`echo iberty'_'objalloc_create | sed 'y%./+-%__p_%'`
941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
942 echo $ac_n "(cached) $ac_c" 1>&6
945 LIBS="-liberty $LIBS"
946 cat > conftest.$ac_ext <<EOF
947 #line 948 "configure"
948 #include "confdefs.h"
949 /* Override any gcc2 internal prototype to avoid an error. */
950 /* We use char because int might match the return type of a gcc2
951 builtin and then its argument prototype would still apply. */
952 char objalloc_create();
958 if { (eval echo configure:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
960 eval "ac_cv_lib_$ac_lib_var=yes"
962 echo "configure: failed program was:" >&5
963 cat conftest.$ac_ext >&5
965 eval "ac_cv_lib_$ac_lib_var=no"
971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
972 echo "$ac_t""yes" 1>&6
973 ac_tr_lib=HAVE_LIB`echo iberty | sed -e 's/[^a-zA-Z0-9_]/_/g' \
974 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
975 cat >> confdefs.h <<EOF
979 LIBS="-liberty $LIBS"
982 echo "$ac_t""no" 1>&6
987 LIBS="$ac_libiberty $LIBS"
989 if test "$ac_libbfd" = "NONE"; then
990 echo $ac_n "checking for bfd_openr in -lbfd""... $ac_c" 1>&6
991 echo "configure:992: checking for bfd_openr in -lbfd" >&5
992 ac_lib_var=`echo bfd'_'bfd_openr | sed 'y%./+-%__p_%'`
993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
998 cat > conftest.$ac_ext <<EOF
999 #line 1000 "configure"
1000 #include "confdefs.h"
1001 /* Override any gcc2 internal prototype to avoid an error. */
1002 /* We use char because int might match the return type of a gcc2
1003 builtin and then its argument prototype would still apply. */
1010 if { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1012 eval "ac_cv_lib_$ac_lib_var=yes"
1014 echo "configure: failed program was:" >&5
1015 cat conftest.$ac_ext >&5
1017 eval "ac_cv_lib_$ac_lib_var=no"
1020 LIBS="$ac_save_LIBS"
1023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1024 echo "$ac_t""yes" 1>&6
1025 ac_tr_lib=HAVE_LIB`echo bfd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1027 cat >> confdefs.h <<EOF
1028 #define $ac_tr_lib 1
1034 echo "$ac_t""no" 1>&6
1039 LIBS="$ac_libbfd $LIBS"
1043 if test "$ac_bfd_include_dir" != "NONE"; then
1044 bfd_include_dir="-I$ac_bfd_include_dir"
1047 binutils_include_dir=
1048 if test "$ac_binutils_include_dir" != "NONE"; then
1049 binutils_include_dir="-I$ac_binutils_include_dir"
1052 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
1054 echo "You need to specify the location of the libfd.a and libiberty.a"
1055 echo "host libraries from the binutils package."
1057 echo "Run configure again specifying these options:"
1059 echo " ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
1064 if test "$ac_bfd_include_dir" = "NONE" ; then
1066 echo "You need to specify the location of the bfd.h header from a"
1067 echo "configured/compiled version of the binutils package for your target."
1068 echo "Without this your elf2flt may crash as it will try to use the"
1069 echo "systems bfd.h which may be from a different binutils package."
1071 echo "Run configure again specifying these options:"
1073 echo " ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
1078 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1079 echo "configure:1080: checking how to run the C preprocessor" >&5
1080 # On Suns, sometimes $CPP names a directory.
1081 if test -n "$CPP" && test -d "$CPP"; then
1084 if test -z "$CPP"; then
1085 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 # This must be in double quotes, not single quotes, because CPP may get
1089 # substituted into the Makefile and "${CC-cc}" will confuse make.
1091 # On the NeXT, cc -E runs the code through the compiler's parser,
1092 # not just through cpp.
1093 cat > conftest.$ac_ext <<EOF
1094 #line 1095 "configure"
1095 #include "confdefs.h"
1099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1100 { (eval echo configure:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1102 if test -z "$ac_err"; then
1106 echo "configure: failed program was:" >&5
1107 cat conftest.$ac_ext >&5
1109 CPP="${CC-cc} -E -traditional-cpp"
1110 cat > conftest.$ac_ext <<EOF
1111 #line 1112 "configure"
1112 #include "confdefs.h"
1116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1117 { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1119 if test -z "$ac_err"; then
1123 echo "configure: failed program was:" >&5
1124 cat conftest.$ac_ext >&5
1126 CPP="${CC-cc} -nologo -E"
1127 cat > conftest.$ac_ext <<EOF
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1134 { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1136 if test -z "$ac_err"; then
1140 echo "configure: failed program was:" >&5
1141 cat conftest.$ac_ext >&5
1150 ac_cv_prog_CPP="$CPP"
1152 CPP="$ac_cv_prog_CPP"
1154 ac_cv_prog_CPP="$CPP"
1156 echo "$ac_t""$CPP" 1>&6
1158 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1159 echo "configure:1160: checking for ANSI C header files" >&5
1160 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 cat > conftest.$ac_ext <<EOF
1164 #line 1165 "configure"
1165 #include "confdefs.h"
1171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1172 { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1174 if test -z "$ac_err"; then
1176 ac_cv_header_stdc=yes
1179 echo "configure: failed program was:" >&5
1180 cat conftest.$ac_ext >&5
1182 ac_cv_header_stdc=no
1186 if test $ac_cv_header_stdc = yes; then
1187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1194 egrep "memchr" >/dev/null 2>&1; then
1198 ac_cv_header_stdc=no
1204 if test $ac_cv_header_stdc = yes; then
1205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1206 cat > conftest.$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1212 egrep "free" >/dev/null 2>&1; then
1216 ac_cv_header_stdc=no
1222 if test $ac_cv_header_stdc = yes; then
1223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1224 if test "$cross_compiling" = yes; then
1227 cat > conftest.$ac_ext <<EOF
1228 #line 1229 "configure"
1229 #include "confdefs.h"
1231 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1232 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1233 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1234 int main () { int i; for (i = 0; i < 256; i++)
1235 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1239 if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1243 echo "configure: failed program was:" >&5
1244 cat conftest.$ac_ext >&5
1246 ac_cv_header_stdc=no
1254 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1255 if test $ac_cv_header_stdc = yes; then
1256 cat >> confdefs.h <<\EOF
1257 #define STDC_HEADERS 1
1262 for ac_hdr in fcntl.h unistd.h bfd.h
1264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1266 echo "configure:1267: checking for $ac_hdr" >&5
1267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1270 cat > conftest.$ac_ext <<EOF
1271 #line 1272 "configure"
1272 #include "confdefs.h"
1275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1276 { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1278 if test -z "$ac_err"; then
1280 eval "ac_cv_header_$ac_safe=yes"
1283 echo "configure: failed program was:" >&5
1284 cat conftest.$ac_ext >&5
1286 eval "ac_cv_header_$ac_safe=no"
1290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1291 echo "$ac_t""yes" 1>&6
1292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1293 cat >> confdefs.h <<EOF
1294 #define $ac_tr_hdr 1
1298 echo "$ac_t""no" 1>&6
1303 echo $ac_n "checking for working const""... $ac_c" 1>&6
1304 echo "configure:1305: checking for working const" >&5
1305 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1314 /* Ultrix mips cc rejects this. */
1315 typedef int charset[2]; const charset x;
1316 /* SunOS 4.1.1 cc rejects this. */
1317 char const *const *ccp;
1319 /* NEC SVR4.0.2 mips cc rejects this. */
1320 struct point {int x, y;};
1321 static struct point const zero = {0,0};
1322 /* AIX XL C 1.02.0.0 rejects this.
1323 It does not let you subtract one const X* pointer from another in an arm
1324 of an if-expression whose if-part is not a constant expression */
1325 const char *g = "string";
1326 ccp = &g + (g ? g-g : 0);
1327 /* HPUX 7.0 cc rejects these. */
1330 ccp = (char const *const *) p;
1331 { /* SCO 3.2v4 cc rejects this. */
1333 char const *s = 0 ? (char *) 0 : (char const *) 0;
1337 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1339 const int *foo = &x[0];
1342 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1343 typedef const int *iptr;
1347 { /* AIX XL C 1.02.0.0 rejects this saying
1348 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1349 struct s { int j; const int *ap[3]; };
1350 struct s *b; b->j = 5;
1352 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1358 if { (eval echo configure:1359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1362 echo "configure: failed program was:" >&5
1363 cat conftest.$ac_ext >&5
1370 echo "$ac_t""$ac_cv_c_const" 1>&6
1371 if test $ac_cv_c_const = no; then
1372 cat >> confdefs.h <<\EOF
1379 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1380 echo "configure:1381: checking for vprintf" >&5
1381 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1387 /* System header to define __stub macros and hopefully few prototypes,
1388 which can conflict with char vprintf(); below. */
1390 /* Override any gcc2 internal prototype to avoid an error. */
1391 /* We use char because int might match the return type of a gcc2
1392 builtin and then its argument prototype would still apply. */
1397 /* The GNU C library defines this for functions which it implements
1398 to always fail with ENOSYS. Some functions are actually named
1399 something starting with __ and the normal name is an alias. */
1400 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1408 if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1410 eval "ac_cv_func_vprintf=yes"
1412 echo "configure: failed program was:" >&5
1413 cat conftest.$ac_ext >&5
1415 eval "ac_cv_func_vprintf=no"
1420 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1421 echo "$ac_t""yes" 1>&6
1422 cat >> confdefs.h <<\EOF
1423 #define HAVE_VPRINTF 1
1427 echo "$ac_t""no" 1>&6
1430 if test "$ac_cv_func_vprintf" != yes; then
1431 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1432 echo "configure:1433: checking for _doprnt" >&5
1433 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 cat > conftest.$ac_ext <<EOF
1437 #line 1438 "configure"
1438 #include "confdefs.h"
1439 /* System header to define __stub macros and hopefully few prototypes,
1440 which can conflict with char _doprnt(); below. */
1442 /* Override any gcc2 internal prototype to avoid an error. */
1443 /* We use char because int might match the return type of a gcc2
1444 builtin and then its argument prototype would still apply. */
1449 /* The GNU C library defines this for functions which it implements
1450 to always fail with ENOSYS. Some functions are actually named
1451 something starting with __ and the normal name is an alias. */
1452 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1460 if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1462 eval "ac_cv_func__doprnt=yes"
1464 echo "configure: failed program was:" >&5
1465 cat conftest.$ac_ext >&5
1467 eval "ac_cv_func__doprnt=no"
1472 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1473 echo "$ac_t""yes" 1>&6
1474 cat >> confdefs.h <<\EOF
1475 #define HAVE_DOPRNT 1
1479 echo "$ac_t""no" 1>&6
1495 cat > confcache <<\EOF
1496 # This file is a shell script that caches the results of configure
1497 # tests run on this system so they can be shared between configure
1498 # scripts and configure runs. It is not useful on other systems.
1499 # If it contains results you don't want to keep, you may remove or edit it.
1501 # By default, configure uses ./config.cache as the cache file,
1502 # creating it if it does not exist already. You can give configure
1503 # the --cache-file=FILE option to use a different cache file; that is
1504 # what configure does when it calls configure scripts in
1505 # subdirectories, so they share the cache.
1506 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1507 # config.status only pays attention to the cache file if you give it the
1508 # --recheck option to rerun configure.
1511 # The following way of writing the cache mishandles newlines in values,
1512 # but we know of no workaround that is simple, portable, and efficient.
1513 # So, don't put newlines in cache variables' values.
1514 # Ultrix sh set writes to stderr and can't be redirected directly,
1515 # and sets the high bit in the cache file unless we assign to the vars.
1517 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1519 # `set' does not quote correctly, so add quotes (double-quote substitution
1520 # turns \\\\ into \\, and sed turns \\ into \).
1522 -e "s/'/'\\\\''/g" \
1523 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1526 # `set' quotes correctly as required by POSIX, so do not add quotes.
1527 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1530 if cmp -s $cache_file confcache; then
1533 if test -w $cache_file; then
1534 echo "updating cache $cache_file"
1535 cat confcache > $cache_file
1537 echo "not updating unwritable cache $cache_file"
1542 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1545 # Let make expand exec_prefix.
1546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1548 # Any assignment to VPATH causes Sun make to only execute
1549 # the first set of double-colon rules, so remove it if not needed.
1550 # If there is a colon in the path, we need to keep it.
1551 if test "x$srcdir" = x.; then
1552 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1555 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1557 # Transform confdefs.h into DEFS.
1558 # Protect against shell expansion while executing Makefile rules.
1559 # Protect against Makefile macro expansion.
1560 cat > conftest.defs <<\EOF
1561 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1562 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1567 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1571 # Without the "./", some shells look in PATH for config.status.
1572 : ${CONFIG_STATUS=./config.status}
1574 echo creating $CONFIG_STATUS
1575 rm -f $CONFIG_STATUS
1576 cat > $CONFIG_STATUS <<EOF
1578 # Generated automatically by configure.
1579 # Run this file to recreate the current configuration.
1580 # This directory was configured as follows,
1581 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1583 # $0 $ac_configure_args
1585 # Compiler output produced by configure, useful for debugging
1586 # configure, is in ./config.log if it exists.
1588 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1591 case "\$ac_option" in
1592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1593 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1594 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1595 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1596 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1598 -help | --help | --hel | --he | --h)
1599 echo "\$ac_cs_usage"; exit 0 ;;
1600 *) echo "\$ac_cs_usage"; exit 1 ;;
1604 ac_given_srcdir=$srcdir
1605 ac_given_INSTALL="$INSTALL"
1607 trap 'rm -fr `echo "Makefile ld-elf2flt" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1609 cat >> $CONFIG_STATUS <<EOF
1611 # Protect against being on the right side of a sed subst in config.status.
1612 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1613 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1617 s%@CFLAGS@%$CFLAGS%g
1618 s%@CPPFLAGS@%$CPPFLAGS%g
1619 s%@CXXFLAGS@%$CXXFLAGS%g
1620 s%@FFLAGS@%$FFLAGS%g
1622 s%@LDFLAGS@%$LDFLAGS%g
1624 s%@exec_prefix@%$exec_prefix%g
1625 s%@prefix@%$prefix%g
1626 s%@program_transform_name@%$program_transform_name%g
1627 s%@bindir@%$bindir%g
1628 s%@sbindir@%$sbindir%g
1629 s%@libexecdir@%$libexecdir%g
1630 s%@datadir@%$datadir%g
1631 s%@sysconfdir@%$sysconfdir%g
1632 s%@sharedstatedir@%$sharedstatedir%g
1633 s%@localstatedir@%$localstatedir%g
1634 s%@libdir@%$libdir%g
1635 s%@includedir@%$includedir%g
1636 s%@oldincludedir@%$oldincludedir%g
1637 s%@infodir@%$infodir%g
1638 s%@mandir@%$mandir%g
1640 s%@host_alias@%$host_alias%g
1641 s%@host_cpu@%$host_cpu%g
1642 s%@host_vendor@%$host_vendor%g
1643 s%@host_os@%$host_os%g
1644 s%@target@%$target%g
1645 s%@target_alias@%$target_alias%g
1646 s%@target_cpu@%$target_cpu%g
1647 s%@target_vendor@%$target_vendor%g
1648 s%@target_os@%$target_os%g
1650 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1651 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1652 s%@INSTALL_DATA@%$INSTALL_DATA%g
1654 s%@bfd_include_dir@%$bfd_include_dir%g
1655 s%@binutils_include_dir@%$binutils_include_dir%g
1656 s%@got_check@%$got_check%g
1661 cat >> $CONFIG_STATUS <<\EOF
1663 # Split the substitutions into bite-sized pieces for seds with
1664 # small command number limits, like on Digital OSF/1 and HP-UX.
1665 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1666 ac_file=1 # Number of current file.
1667 ac_beg=1 # First line for current file.
1668 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1671 while $ac_more_lines; do
1672 if test $ac_beg -gt 1; then
1673 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1675 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1677 if test ! -s conftest.s$ac_file; then
1679 rm -f conftest.s$ac_file
1681 if test -z "$ac_sed_cmds"; then
1682 ac_sed_cmds="sed -f conftest.s$ac_file"
1684 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1686 ac_file=`expr $ac_file + 1`
1688 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1691 if test -z "$ac_sed_cmds"; then
1696 cat >> $CONFIG_STATUS <<EOF
1698 CONFIG_FILES=\${CONFIG_FILES-"Makefile ld-elf2flt"}
1700 cat >> $CONFIG_STATUS <<\EOF
1701 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1702 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1704 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1705 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1706 *) ac_file_in="${ac_file}.in" ;;
1709 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1711 # Remove last slash and all that follows it. Not all systems have dirname.
1712 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1713 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1714 # The file is in a subdirectory.
1715 test ! -d "$ac_dir" && mkdir "$ac_dir"
1716 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1717 # A "../" for each directory in $ac_dir_suffix.
1718 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1720 ac_dir_suffix= ac_dots=
1723 case "$ac_given_srcdir" in
1725 if test -z "$ac_dots"; then top_srcdir=.
1726 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1727 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1729 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1730 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1733 case "$ac_given_INSTALL" in
1734 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1735 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1738 echo creating "$ac_file"
1740 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1742 *Makefile*) ac_comsub="1i\\
1743 # $configure_input" ;;
1747 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1749 s%@configure_input@%$configure_input%g
1750 s%@srcdir@%$srcdir%g
1751 s%@top_srcdir@%$top_srcdir%g
1752 s%@INSTALL@%$INSTALL%g
1753 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1758 cat >> $CONFIG_STATUS <<EOF
1761 cat >> $CONFIG_STATUS <<\EOF
1765 chmod +x $CONFIG_STATUS
1766 rm -fr confdefs* $ac_clean_files
1767 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1