source: trunk/src/binutils/libiberty/configure@ 619

Last change on this file since 619 was 619, checked in by bird, 22 years ago

Regenerated configure files after 2.14 join.

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 117.5 KB
Line 
1#! /bin/sh
2
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.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --with-target-subdir=SUBDIR Configuring in a subdirectory for target"
16ac_help="$ac_help
17 --with-build-subdir=SUBDIR Configuring in a subdirectory for build"
18ac_help="$ac_help
19 --with-cross-host=HOST Configuring with a cross compiler"
20ac_help="$ac_help
21 --with-newlib Configuring with newlib"
22ac_help="$ac_help
23 --enable-maintainer-mode
24 enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
26ac_help="$ac_help
27 --enable-install-libiberty Install headers for end users"
28
29# Initialize some variables set by options.
30# The variables have the same names as the options, with
31# dashes changed to underlines.
32build=NONE
33cache_file=./config.cache
34exec_prefix=NONE
35host=NONE
36no_create=
37nonopt=NONE
38no_recursion=
39prefix=NONE
40program_prefix=NONE
41program_suffix=NONE
42program_transform_name=s,x,x,
43silent=
44site=
45srcdir=
46target=NONE
47verbose=
48x_includes=NONE
49x_libraries=NONE
50bindir='${exec_prefix}/bin'
51sbindir='${exec_prefix}/sbin'
52libexecdir='${exec_prefix}/libexec'
53datadir='${prefix}/share'
54sysconfdir='${prefix}/etc'
55sharedstatedir='${prefix}/com'
56localstatedir='${prefix}/var'
57libdir='${exec_prefix}/lib'
58includedir='${prefix}/include'
59oldincludedir='/usr/include'
60infodir='${prefix}/info'
61mandir='${prefix}/man'
62
63# Initialize some other variables.
64subdirs=
65MFLAGS= MAKEFLAGS=
66SHELL=${CONFIG_SHELL-/bin/sh}
67# Maximum number of lines to put in a shell here document.
68ac_max_here_lines=12
69
70ac_prev=
71for ac_option
72do
73
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
77 ac_prev=
78 continue
79 fi
80
81 case "$ac_option" in
82 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83 *) ac_optarg= ;;
84 esac
85
86 # Accept the important Cygnus configure options, so we can diagnose typos.
87
88 case "$ac_option" in
89
90 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 ac_prev=bindir ;;
92 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93 bindir="$ac_optarg" ;;
94
95 -build | --build | --buil | --bui | --bu)
96 ac_prev=build ;;
97 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
98 build="$ac_optarg" ;;
99
100 -cache-file | --cache-file | --cache-fil | --cache-fi \
101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102 ac_prev=cache_file ;;
103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105 cache_file="$ac_optarg" ;;
106
107 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 ac_prev=datadir ;;
109 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 | --da=*)
111 datadir="$ac_optarg" ;;
112
113 -disable-* | --disable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 fi
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
121
122 -enable-* | --enable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 fi
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 case "$ac_option" in
130 *=*) ;;
131 *) ac_optarg=yes ;;
132 esac
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
134
135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137 | --exec | --exe | --ex)
138 ac_prev=exec_prefix ;;
139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141 | --exec=* | --exe=* | --ex=*)
142 exec_prefix="$ac_optarg" ;;
143
144 -gas | --gas | --ga | --g)
145 # Obsolete; use --with-gas.
146 with_gas=yes ;;
147
148 -help | --help | --hel | --he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
151 cat << EOF
152Usage: configure [options] [host]
153Options: [defaults in brackets after descriptions]
154Configuration:
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
162 [$ac_default_prefix]
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 [same as prefix]
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
169 [PREFIX/share]
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 [PREFIX/com]
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
184EOF
185 cat << EOF
186Host type:
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
197EOF
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
200 fi
201 exit 0 ;;
202
203 -host | --host | --hos | --ho)
204 ac_prev=host ;;
205 -host=* | --host=* | --hos=* | --ho=*)
206 host="$ac_optarg" ;;
207
208 -includedir | --includedir | --includedi | --included | --include \
209 | --includ | --inclu | --incl | --inc)
210 ac_prev=includedir ;;
211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212 | --includ=* | --inclu=* | --incl=* | --inc=*)
213 includedir="$ac_optarg" ;;
214
215 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 ac_prev=infodir ;;
217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218 infodir="$ac_optarg" ;;
219
220 -libdir | --libdir | --libdi | --libd)
221 ac_prev=libdir ;;
222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
223 libdir="$ac_optarg" ;;
224
225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226 | --libexe | --libex | --libe)
227 ac_prev=libexecdir ;;
228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229 | --libexe=* | --libex=* | --libe=*)
230 libexecdir="$ac_optarg" ;;
231
232 -localstatedir | --localstatedir | --localstatedi | --localstated \
233 | --localstate | --localstat | --localsta | --localst \
234 | --locals | --local | --loca | --loc | --lo)
235 ac_prev=localstatedir ;;
236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239 localstatedir="$ac_optarg" ;;
240
241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 ac_prev=mandir ;;
243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244 mandir="$ac_optarg" ;;
245
246 -nfp | --nfp | --nf)
247 # Obsolete; use --without-fp.
248 with_fp=no ;;
249
250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251 | --no-cr | --no-c)
252 no_create=yes ;;
253
254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 no_recursion=yes ;;
257
258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260 | --oldin | --oldi | --old | --ol | --o)
261 ac_prev=oldincludedir ;;
262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265 oldincludedir="$ac_optarg" ;;
266
267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 ac_prev=prefix ;;
269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270 prefix="$ac_optarg" ;;
271
272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
273 | --program-pre | --program-pr | --program-p)
274 ac_prev=program_prefix ;;
275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277 program_prefix="$ac_optarg" ;;
278
279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
280 | --program-suf | --program-su | --program-s)
281 ac_prev=program_suffix ;;
282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284 program_suffix="$ac_optarg" ;;
285
286 -program-transform-name | --program-transform-name \
287 | --program-transform-nam | --program-transform-na \
288 | --program-transform-n | --program-transform- \
289 | --program-transform | --program-transfor \
290 | --program-transfo | --program-transf \
291 | --program-trans | --program-tran \
292 | --progr-tra | --program-tr | --program-t)
293 ac_prev=program_transform_name ;;
294 -program-transform-name=* | --program-transform-name=* \
295 | --program-transform-nam=* | --program-transform-na=* \
296 | --program-transform-n=* | --program-transform-=* \
297 | --program-transform=* | --program-transfor=* \
298 | --program-transfo=* | --program-transf=* \
299 | --program-trans=* | --program-tran=* \
300 | --progr-tra=* | --program-tr=* | --program-t=*)
301 program_transform_name="$ac_optarg" ;;
302
303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304 | -silent | --silent | --silen | --sile | --sil)
305 silent=yes ;;
306
307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 ac_prev=sbindir ;;
309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 | --sbi=* | --sb=*)
311 sbindir="$ac_optarg" ;;
312
313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315 | --sharedst | --shareds | --shared | --share | --shar \
316 | --sha | --sh)
317 ac_prev=sharedstatedir ;;
318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 | --sha=* | --sh=*)
322 sharedstatedir="$ac_optarg" ;;
323
324 -site | --site | --sit)
325 ac_prev=site ;;
326 -site=* | --site=* | --sit=*)
327 site="$ac_optarg" ;;
328
329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 ac_prev=srcdir ;;
331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332 srcdir="$ac_optarg" ;;
333
334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335 | --syscon | --sysco | --sysc | --sys | --sy)
336 ac_prev=sysconfdir ;;
337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339 sysconfdir="$ac_optarg" ;;
340
341 -target | --target | --targe | --targ | --tar | --ta | --t)
342 ac_prev=target ;;
343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344 target="$ac_optarg" ;;
345
346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 verbose=yes ;;
348
349 -version | --version | --versio | --versi | --vers)
350 echo "configure generated by autoconf version 2.13"
351 exit 0 ;;
352
353 -with-* | --with-*)
354 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 fi
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 case "$ac_option" in
361 *=*) ;;
362 *) ac_optarg=yes ;;
363 esac
364 eval "with_${ac_package}='$ac_optarg'" ;;
365
366 -without-* | --without-*)
367 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 fi
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
374
375 --x)
376 # Obsolete; use --with-x.
377 with_x=yes ;;
378
379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380 | --x-incl | --x-inc | --x-in | --x-i)
381 ac_prev=x_includes ;;
382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384 x_includes="$ac_optarg" ;;
385
386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388 ac_prev=x_libraries ;;
389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391 x_libraries="$ac_optarg" ;;
392
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
394 ;;
395
396 *)
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 fi
400 if test "x$nonopt" != xNONE; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 fi
403 nonopt="$ac_option"
404 ;;
405
406 esac
407done
408
409if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411fi
412
413trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414
415# File descriptor usage:
416# 0 standard input
417# 1 file creation
418# 2 errors and warnings
419# 3 some systems may open it to /dev/tty
420# 4 used on the Kubota Titan
421# 6 checking for... messages and results
422# 5 compiler messages saved in config.log
423if test "$silent" = yes; then
424 exec 6>/dev/null
425else
426 exec 6>&1
427fi
428exec 5>./config.log
429
430echo "\
431This file contains any messages produced by compilers while
432running configure, to aid debugging if configure makes a mistake.
433" 1>&5
434
435# Strip out --no-create and --no-recursion so they do not pile up.
436# Also quote any args containing shell metacharacters.
437ac_configure_args=
438for ac_arg
439do
440 case "$ac_arg" in
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c) ;;
443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 esac
449done
450
451# NLS nuisances.
452# Only set these to C if already set. These must not be set unconditionally
453# because not all systems understand e.g. LANG=C (notably SCO).
454# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455# Non-C LC_CTYPE values break the ctype check.
456if test "${LANG+set}" = set; then LANG=C; export LANG; fi
457if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
458if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
459if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460
461# confdefs.h avoids OS command line length limits that DEFS can exceed.
462rm -rf conftest* confdefs.h
463# AIX cpp loses on an empty file, so make sure it contains at least a newline.
464echo > confdefs.h
465
466# A filename unique to this package, relative to the directory that
467# configure is in, which we can look for to find out if srcdir is correct.
468ac_unique_file=xmalloc.c
469
470# Find the source files, if location was not specified.
471if test -z "$srcdir"; then
472 ac_srcdir_defaulted=yes
473 # Try the directory containing this script, then its parent.
474 ac_prog=$0
475 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 srcdir=$ac_confdir
478 if test ! -r $srcdir/$ac_unique_file; then
479 srcdir=..
480 fi
481else
482 ac_srcdir_defaulted=no
483fi
484if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 else
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 fi
490fi
491srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492
493# Prefer explicitly selected file to automatically selected ones.
494if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE; then
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 else
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 fi
500fi
501for ac_site_file in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
504 . "$ac_site_file"
505 fi
506done
507
508if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
510 . $cache_file
511else
512 echo "creating cache $cache_file"
513 > $cache_file
514fi
515
516ac_ext=c
517# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518ac_cpp='$CPP $CPPFLAGS'
519ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521cross_compiling=$ac_cv_prog_cc_cross
522
523ac_exeext=
524ac_objext=o
525if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
526 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
527 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
528 ac_n= ac_c='
529' ac_t=' '
530 else
531 ac_n=-n ac_c= ac_t=
532 fi
533else
534 ac_n= ac_c='\c' ac_t=
535fi
536
537echo $ac_n "checking for path separator""... $ac_c" 1>&6
538echo "configure:539: checking for path separator" >&5
539# Filter path to get backslahes into forwardslashes
540case "`uname -s 2> /dev/null`" in
541OS/2)
542 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
543 PATH_IFS=';'
544 ;;
545*)
546 PATH_IFS=':'
547 ;;
548esac
549echo "$ac_t""${PATH_IFS}" 1>&6
550
551echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
552echo "configure:553: checking for Cygwin environment" >&5
553if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
554 echo $ac_n "(cached) $ac_c" 1>&6
555else
556 cat > conftest.$ac_ext <<EOF
557#line 558 "configure"
558#include "confdefs.h"
559
560int main() {
561
562#ifndef __CYGWIN__
563#define __CYGWIN__ __CYGWIN32__
564#endif
565return __CYGWIN__;
566; return 0; }
567EOF
568if { (eval echo configure:569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
569 rm -rf conftest*
570 ac_cv_cygwin=yes
571else
572 echo "configure: failed program was:" >&5
573 cat conftest.$ac_ext >&5
574 rm -rf conftest*
575 ac_cv_cygwin=no
576fi
577rm -f conftest*
578rm -f conftest*
579fi
580
581echo "$ac_t""$ac_cv_cygwin" 1>&6
582CYGWIN=
583test "$ac_cv_cygwin" = yes && CYGWIN=yes
584echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
585echo "configure:586: checking for mingw32 environment" >&5
586if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
587 echo $ac_n "(cached) $ac_c" 1>&6
588else
589 cat > conftest.$ac_ext <<EOF
590#line 591 "configure"
591#include "confdefs.h"
592
593int main() {
594return __MINGW32__;
595; return 0; }
596EOF
597if { (eval echo configure:598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
598 rm -rf conftest*
599 ac_cv_mingw32=yes
600else
601 echo "configure: failed program was:" >&5
602 cat conftest.$ac_ext >&5
603 rm -rf conftest*
604 ac_cv_mingw32=no
605fi
606rm -f conftest*
607rm -f conftest*
608fi
609
610echo "$ac_t""$ac_cv_mingw32" 1>&6
611MINGW32=
612test "$ac_cv_mingw32" = yes && MINGW32=yes
613echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
614echo "configure:615: checking for EMX/OS2 environment" >&5
615if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
617else
618 : ${CC=gcc.exe}
619cat > conftest.$ac_ext <<EOF
620#line 621 "configure"
621#include "confdefs.h"
622
623int main() {
624return __EMX__;
625; return 0; }
626EOF
627if { (eval echo configure:628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
628 rm -rf conftest*
629 ac_cv_emxos2=yes
630else
631 echo "configure: failed program was:" >&5
632 cat conftest.$ac_ext >&5
633 rm -rf conftest*
634 ac_cv_emxos2=no
635fi
636rm -f conftest*
637rm -f conftest*
638fi
639
640echo "$ac_t""$ac_cv_emxos2" 1>&6
641if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
643else
644 if test "$ac_cv_emxos2" = yes ; then
645 ac_cv_libpre=
646else
647 ac_cv_libpre=lib
648fi
649
650fi
651
652EMXOS2=
653test "$ac_cv_emxos2" = yes && EMXOS2=yes
654
655
656
657echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
658echo "configure:659: checking for executable suffix" >&5
659if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
661else
662 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
663 ac_cv_exeext=.exe
664else
665 rm -f conftest*
666 echo 'int main () { return 0; }' > conftest.$ac_ext
667 ac_cv_exeext=
668 if { (eval echo configure:669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
669 for file in conftest.*; do
670 case $file in
671 *.c | *.o | *.obj) ;;
672 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
673 esac
674 done
675 else
676 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
677 fi
678 rm -f conftest*
679 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
680fi
681fi
682
683EXEEXT=""
684test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
685echo "$ac_t""${ac_cv_exeext}" 1>&6
686ac_exeext=$EXEEXT
687
688
689
690# This works around the fact that libtool configuration may change LD
691# for this particular configuration, but some shells, instead of
692# keeping the changes in LD private, export them just because LD is
693# exported. We don't use libtool yet, but some day we might, so...
694ORIGINAL_LD_FOR_MULTILIBS=$LD
695
696# Check whether --with-target-subdir or --without-target-subdir was given.
697if test "${with_target_subdir+set}" = set; then
698 withval="$with_target_subdir"
699 :
700fi
701
702# Check whether --with-build-subdir or --without-build-subdir was given.
703if test "${with_build_subdir+set}" = set; then
704 withval="$with_build_subdir"
705 :
706fi
707
708# Check whether --with-cross-host or --without-cross-host was given.
709if test "${with_cross_host+set}" = set; then
710 withval="$with_cross_host"
711 :
712fi
713
714# Check whether --with-newlib or --without-newlib was given.
715if test "${with_newlib+set}" = set; then
716 withval="$with_newlib"
717 :
718fi
719
720
721if test "${srcdir}" = "."; then
722 if test -n "${with_build_subdir}"; then
723 libiberty_topdir="${srcdir}/../.."
724 with_target_subdir=
725 elif test -z "${with_target_subdir}"; then
726 libiberty_topdir="${srcdir}/.."
727 else
728 if test "${with_target_subdir}" != "."; then
729 libiberty_topdir="${srcdir}/${with_multisrctop}../.."
730 else
731 libiberty_topdir="${srcdir}/${with_multisrctop}.."
732 fi
733 fi
734else
735 libiberty_topdir="${srcdir}/.."
736fi
737
738ac_aux_dir=
739for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
740 if test -f $ac_dir/install-sh; then
741 ac_aux_dir=$ac_dir
742 ac_install_sh="$ac_aux_dir/install-sh -c"
743 break
744 elif test -f $ac_dir/install.sh; then
745 ac_aux_dir=$ac_dir
746 ac_install_sh="$ac_aux_dir/install.sh -c"
747 break
748 fi
749done
750if test -z "$ac_aux_dir"; then
751 { echo "configure: error: can not find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" 1>&2; exit 1; }
752fi
753ac_config_guess=$ac_aux_dir/config.guess
754ac_config_sub=$ac_aux_dir/config.sub
755ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
756
757
758
759echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
760echo "configure:761: checking whether to enable maintainer-specific portions of Makefiles" >&5
761 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
762if test "${enable_maintainer_mode+set}" = set; then
763 enableval="$enable_maintainer_mode"
764 maintainer_mode=$enableval
765else
766 maintainer_mode=no
767fi
768
769
770echo "$ac_t""$maintainer_mode" 1>&6
771
772if test "$maintainer_mode" = "yes"; then
773 MAINT=''
774 NOTMAINT='#'
775else
776 MAINT='#'
777 NOTMAINT=''
778fi
779
780# Do we have a single-tree copy of texinfo? Even if we do, we can't
781# rely on it - libiberty is built before texinfo.
782# Extract the first word of "makeinfo", so it can be a program name with args.
783set dummy makeinfo; ac_word=$2
784echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
785echo "configure:786: checking for $ac_word" >&5
786if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
788else
789 if test -n "$MAKEINFO"; then
790 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
791else
792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
793 ac_dummy="$PATH"
794 for ac_dir in $ac_dummy; do
795 test -z "$ac_dir" && ac_dir=.
796 if test -f $ac_dir/$ac_word -o \
797 -f $ac_dir/$ac_word$ac_exeext ; then
798 ac_cv_prog_MAKEINFO="makeinfo"
799 break
800 fi
801 done
802 IFS="$ac_save_ifs"
803fi
804fi
805MAKEINFO="$ac_cv_prog_MAKEINFO"
806if test -n "$MAKEINFO"; then
807 echo "$ac_t""$MAKEINFO" 1>&6
808else
809 echo "$ac_t""no" 1>&6
810fi
811
812if test "x$MAKEINFO" = "x"; then
813 MAKEINFO="@echo makeinfo missing; true"
814 BUILD_INFO=
815else
816 BUILD_INFO=info
817 case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
818 x*\ [1-3].* )
819 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
820 BUILD_INFO=
821 echo "configure: warning:
822*** Makeinfo is too old. Info documentation will not be built." 1>&2
823 ;;
824 esac
825fi
826
827
828
829# Extract the first word of "perl", so it can be a program name with args.
830set dummy perl; ac_word=$2
831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
832echo "configure:833: checking for $ac_word" >&5
833if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
835else
836 if test -n "$PERL"; then
837 ac_cv_prog_PERL="$PERL" # Let the user override the test.
838else
839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
840 ac_dummy="$PATH"
841 for ac_dir in $ac_dummy; do
842 test -z "$ac_dir" && ac_dir=.
843 if test -f $ac_dir/$ac_word -o \
844 -f $ac_dir/$ac_word$ac_exeext ; then
845 ac_cv_prog_PERL="perl"
846 break
847 fi
848 done
849 IFS="$ac_save_ifs"
850fi
851fi
852PERL="$ac_cv_prog_PERL"
853if test -n "$PERL"; then
854 echo "$ac_t""$PERL" 1>&6
855else
856 echo "$ac_t""no" 1>&6
857fi
858
859if test x"$PERL" = x""; then
860 HAVE_PERL='#'
861else
862 HAVE_PERL=''
863fi
864
865
866
867# Make sure we can run config.sub.
868if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
869else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
870fi
871
872echo $ac_n "checking host system type""... $ac_c" 1>&6
873echo "configure:874: checking host system type" >&5
874
875host_alias=$host
876case "$host_alias" in
877NONE)
878 case $nonopt in
879 NONE)
880 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
881 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
882 fi ;;
883 *) host_alias=$nonopt ;;
884 esac ;;
885esac
886
887host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
888host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
889host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
890host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
891echo "$ac_t""$host" 1>&6
892
893
894
895echo $ac_n "checking build system type""... $ac_c" 1>&6
896echo "configure:897: checking build system type" >&5
897
898build_alias=$build
899case "$build_alias" in
900NONE)
901 case $nonopt in
902 NONE) build_alias=$host_alias ;;
903 *) build_alias=$nonopt ;;
904 esac ;;
905esac
906
907build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
908build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
909build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
910build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
911echo "$ac_t""$build" 1>&6
912
913if test $host != $build; then
914 ac_tool_prefix=${host_alias}-
915else
916 ac_tool_prefix=
917fi
918
919# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
920set dummy ${ac_tool_prefix}ar; ac_word=$2
921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
922echo "configure:923: checking for $ac_word" >&5
923if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
924 echo $ac_n "(cached) $ac_c" 1>&6
925else
926 if test -n "$AR"; then
927 ac_cv_prog_AR="$AR" # Let the user override the test.
928else
929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
930 ac_dummy="$PATH"
931 for ac_dir in $ac_dummy; do
932 test -z "$ac_dir" && ac_dir=.
933 if test -f $ac_dir/$ac_word -o \
934 -f $ac_dir/$ac_word$ac_exeext ; then
935 ac_cv_prog_AR="${ac_tool_prefix}ar"
936 break
937 fi
938 done
939 IFS="$ac_save_ifs"
940 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
941fi
942fi
943AR="$ac_cv_prog_AR"
944if test -n "$AR"; then
945 echo "$ac_t""$AR" 1>&6
946else
947 echo "$ac_t""no" 1>&6
948fi
949
950
951
952# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
953set dummy ${ac_tool_prefix}ranlib; ac_word=$2
954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955echo "configure:956: checking for $ac_word" >&5
956if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
958else
959 if test -n "$RANLIB"; then
960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
961else
962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
963 ac_dummy="$PATH"
964 for ac_dir in $ac_dummy; do
965 test -z "$ac_dir" && ac_dir=.
966 if test -f $ac_dir/$ac_word -o \
967 -f $ac_dir/$ac_word$ac_exeext ; then
968 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
969 break
970 fi
971 done
972 IFS="$ac_save_ifs"
973fi
974fi
975RANLIB="$ac_cv_prog_RANLIB"
976if test -n "$RANLIB"; then
977 echo "$ac_t""$RANLIB" 1>&6
978else
979 echo "$ac_t""no" 1>&6
980fi
981
982
983if test -z "$ac_cv_prog_RANLIB"; then
984if test -n "$ac_tool_prefix"; then
985 # Extract the first word of "ranlib", so it can be a program name with args.
986set dummy ranlib; ac_word=$2
987echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
988echo "configure:989: checking for $ac_word" >&5
989if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
991else
992 if test -n "$RANLIB"; then
993 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
994else
995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
996 ac_dummy="$PATH"
997 for ac_dir in $ac_dummy; do
998 test -z "$ac_dir" && ac_dir=.
999 if test -f $ac_dir/$ac_word -o \
1000 -f $ac_dir/$ac_word$ac_exeext ; then
1001 ac_cv_prog_RANLIB="ranlib"
1002 break
1003 fi
1004 done
1005 IFS="$ac_save_ifs"
1006 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1007fi
1008fi
1009RANLIB="$ac_cv_prog_RANLIB"
1010if test -n "$RANLIB"; then
1011 echo "$ac_t""$RANLIB" 1>&6
1012else
1013 echo "$ac_t""no" 1>&6
1014fi
1015
1016else
1017 RANLIB=":"
1018fi
1019fi
1020
1021
1022
1023# Extract the first word of "gcc", so it can be a program name with args.
1024set dummy gcc; ac_word=$2
1025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1026echo "configure:1027: checking for $ac_word" >&5
1027if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1029else
1030 if test -n "$CC"; then
1031 ac_cv_prog_CC="$CC" # Let the user override the test.
1032else
1033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1034 ac_dummy="$PATH"
1035 for ac_dir in $ac_dummy; do
1036 test -z "$ac_dir" && ac_dir=.
1037 if test -f $ac_dir/$ac_word -o \
1038 -f $ac_dir/$ac_word$ac_exeext ; then
1039 ac_cv_prog_CC="gcc"
1040 break
1041 fi
1042 done
1043 IFS="$ac_save_ifs"
1044fi
1045fi
1046CC="$ac_cv_prog_CC"
1047if test -n "$CC"; then
1048 echo "$ac_t""$CC" 1>&6
1049else
1050 echo "$ac_t""no" 1>&6
1051fi
1052
1053if test -z "$CC"; then
1054 # Extract the first word of "cc", so it can be a program name with args.
1055set dummy cc; ac_word=$2
1056echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057echo "configure:1058: checking for $ac_word" >&5
1058if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1060else
1061 if test -n "$CC"; then
1062 ac_cv_prog_CC="$CC" # Let the user override the test.
1063else
1064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1065 ac_prog_rejected=no
1066 ac_dummy="$PATH"
1067 for ac_dir in $ac_dummy; do
1068 test -z "$ac_dir" && ac_dir=.
1069 if test -f $ac_dir/$ac_word -o \
1070 -f $ac_dir/$ac_word$ac_exeext ; then
1071 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
1072 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
1073 ac_prog_rejected=yes
1074 continue
1075 fi
1076 ac_cv_prog_CC="cc"
1077 break
1078 fi
1079 done
1080 IFS="$ac_save_ifs"
1081if test $ac_prog_rejected = yes; then
1082 # We found a bogon in the path, so make sure we never use it.
1083 set dummy $ac_cv_prog_CC
1084 shift
1085 if test $# -gt 0; then
1086 # We chose a different compiler from the bogus one.
1087 # However, it has the same basename, so the bogon will be chosen
1088 # first if we set CC to just the basename; use the full file name.
1089 shift
1090 set dummy "$ac_dir/$ac_word" "$@"
1091 shift
1092 ac_cv_prog_CC="$@"
1093 fi
1094fi
1095fi
1096fi
1097CC="$ac_cv_prog_CC"
1098if test -n "$CC"; then
1099 echo "$ac_t""$CC" 1>&6
1100else
1101 echo "$ac_t""no" 1>&6
1102fi
1103
1104 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1105fi
1106
1107echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1108echo "configure:1109: checking whether we are using GNU C" >&5
1109if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1111else
1112 cat > conftest.c <<EOF
1113#ifdef __GNUC__
1114 yes;
1115#endif
1116EOF
1117if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1118 ac_cv_prog_gcc=yes
1119else
1120 ac_cv_prog_gcc=no
1121fi
1122fi
1123
1124echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1125
1126if test $ac_cv_prog_gcc = yes; then
1127 GCC=yes
1128 ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic'
1129 ac_test_CFLAGS="${CFLAGS+set}"
1130 ac_save_CFLAGS="$CFLAGS"
1131 CFLAGS=
1132 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1133echo "configure:1134: checking whether ${CC-cc} accepts -g" >&5
1134if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1136else
1137 echo 'void f(){}' > conftest.c
1138if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1139 ac_cv_prog_cc_g=yes
1140else
1141 ac_cv_prog_cc_g=no
1142fi
1143rm -f conftest*
1144
1145fi
1146
1147echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1148 if test "$ac_test_CFLAGS" = set; then
1149 CFLAGS="$ac_save_CFLAGS"
1150 elif test $ac_cv_prog_cc_g = yes; then
1151 CFLAGS="-g -O2"
1152 else
1153 CFLAGS="-O2"
1154 fi
1155else
1156 GCC=
1157 ac_libiberty_warn_cflags=
1158 test "${CFLAGS+set}" = set || CFLAGS="-g"
1159fi
1160
1161
1162
1163if test "x$CC" != xcc; then
1164 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1165echo "configure:1166: checking whether $CC and cc understand -c and -o together" >&5
1166else
1167 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1168echo "configure:1169: checking whether cc understands -c and -o together" >&5
1169fi
1170set dummy $CC; ac_cc="`echo $2 |
1171 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1172if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1174else
1175 echo 'foo(){}' > conftest.c
1176# Make sure it works both with $CC and with simple cc.
1177# We do the test twice because some compilers refuse to overwrite an
1178# existing .o file with -o, though they will create one.
1179ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1180if { (eval echo configure:1181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1181 test -f conftest.o && { (eval echo configure:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1182then
1183 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1184 if test "x$CC" != xcc; then
1185 # Test first that cc exists at all.
1186 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1187 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1188 if { (eval echo configure:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1189 test -f conftest.o && { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1190 then
1191 # cc works too.
1192 :
1193 else
1194 # cc exists but doesn't like -o.
1195 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1196 fi
1197 fi
1198 fi
1199else
1200 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1201fi
1202rm -f conftest*
1203
1204fi
1205if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1206 echo "$ac_t""yes" 1>&6
1207else
1208 echo "$ac_t""no" 1>&6
1209 cat >> confdefs.h <<\EOF
1210#define NO_MINUS_C_MINUS_O 1
1211EOF
1212
1213fi
1214
1215# autoconf is lame and doesn't give us any substitution variable for this.
1216if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1217 NO_MINUS_C_MINUS_O=yes
1218else
1219 OUTPUT_OPTION='-o $@'
1220fi
1221
1222
1223
1224echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1225echo "configure:1226: checking for POSIXized ISC" >&5
1226if test -d /etc/conf/kconfig.d &&
1227 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1228then
1229 echo "$ac_t""yes" 1>&6
1230 ISC=yes # If later tests want to check for ISC.
1231 cat >> confdefs.h <<\EOF
1232#define _POSIX_SOURCE 1
1233EOF
1234
1235 if test "$GCC" = yes; then
1236 CC="$CC -posix"
1237 else
1238 CC="$CC -Xp"
1239 fi
1240else
1241 echo "$ac_t""no" 1>&6
1242 ISC=
1243fi
1244
1245echo $ac_n "checking for working const""... $ac_c" 1>&6
1246echo "configure:1247: checking for working const" >&5
1247if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1249else
1250 cat > conftest.$ac_ext <<EOF
1251#line 1252 "configure"
1252#include "confdefs.h"
1253
1254int main() {
1255
1256/* Ultrix mips cc rejects this. */
1257typedef int charset[2]; const charset x;
1258/* SunOS 4.1.1 cc rejects this. */
1259char const *const *ccp;
1260char **p;
1261/* NEC SVR4.0.2 mips cc rejects this. */
1262struct point {int x, y;};
1263static struct point const zero = {0,0};
1264/* AIX XL C 1.02.0.0 rejects this.
1265 It does not let you subtract one const X* pointer from another in an arm
1266 of an if-expression whose if-part is not a constant expression */
1267const char *g = "string";
1268ccp = &g + (g ? g-g : 0);
1269/* HPUX 7.0 cc rejects these. */
1270++ccp;
1271p = (char**) ccp;
1272ccp = (char const *const *) p;
1273{ /* SCO 3.2v4 cc rejects this. */
1274 char *t;
1275 char const *s = 0 ? (char *) 0 : (char const *) 0;
1276
1277 *t++ = 0;
1278}
1279{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1280 int x[] = {25, 17};
1281 const int *foo = &x[0];
1282 ++foo;
1283}
1284{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1285 typedef const int *iptr;
1286 iptr p = 0;
1287 ++p;
1288}
1289{ /* AIX XL C 1.02.0.0 rejects this saying
1290 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1291 struct s { int j; const int *ap[3]; };
1292 struct s *b; b->j = 5;
1293}
1294{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1295 const int foo = 10;
1296}
1297
1298; return 0; }
1299EOF
1300if { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1301 rm -rf conftest*
1302 ac_cv_c_const=yes
1303else
1304 echo "configure: failed program was:" >&5
1305 cat conftest.$ac_ext >&5
1306 rm -rf conftest*
1307 ac_cv_c_const=no
1308fi
1309rm -f conftest*
1310fi
1311
1312echo "$ac_t""$ac_cv_c_const" 1>&6
1313if test $ac_cv_c_const = no; then
1314 cat >> confdefs.h <<\EOF
1315#define const
1316EOF
1317
1318fi
1319
1320echo $ac_n "checking for inline""... $ac_c" 1>&6
1321echo "configure:1322: checking for inline" >&5
1322if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1323 echo $ac_n "(cached) $ac_c" 1>&6
1324else
1325 ac_cv_c_inline=no
1326for ac_kw in inline __inline__ __inline; do
1327 cat > conftest.$ac_ext <<EOF
1328#line 1329 "configure"
1329#include "confdefs.h"
1330
1331int main() {
1332} $ac_kw foo() {
1333; return 0; }
1334EOF
1335if { (eval echo configure:1336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1336 rm -rf conftest*
1337 ac_cv_c_inline=$ac_kw; break
1338else
1339 echo "configure: failed program was:" >&5
1340 cat conftest.$ac_ext >&5
1341fi
1342rm -f conftest*
1343done
1344
1345fi
1346
1347echo "$ac_t""$ac_cv_c_inline" 1>&6
1348case "$ac_cv_c_inline" in
1349 inline | yes) ;;
1350 no) cat >> confdefs.h <<\EOF
1351#define inline
1352EOF
1353 ;;
1354 *) cat >> confdefs.h <<EOF
1355#define inline $ac_cv_c_inline
1356EOF
1357 ;;
1358esac
1359
1360
1361
1362
1363
1364
1365
1366# Find a good install program. We prefer a C program (faster),
1367# so one script is as good as another. But avoid the broken or
1368# incompatible versions:
1369# SysV /etc/install, /usr/sbin/install
1370# SunOS /usr/etc/install
1371# IRIX /sbin/install
1372# AIX /bin/install
1373# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1374# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1375# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1376# ./install, which can be erroneously created by make from ./install.sh.
1377echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1378echo "configure:1379: checking for a BSD compatible install" >&5
1379if test -z "$INSTALL"; then
1380if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1382else
1383 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
1384 for ac_dir in $PATH; do
1385 # Account for people who put trailing slashes in PATH elements.
1386 case "$ac_dir/" in
1387 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1388 # We reject the install program from OS/2 or W3.1
1389 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
1390 *)
1391 # OSF1 and SCO ODT 3.0 have their own names for install.
1392 # Don't use installbsd from OSF since it installs stuff as root
1393 # by default.
1394 for ac_prog in ginstall scoinst install; do
1395 if test -f $ac_dir/$ac_prog$ac_exeext; then
1396 if test $ac_prog = install &&
1397 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1398 # AIX install. It has an incompatible calling convention.
1399 :
1400 else
1401 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
1402 break 2
1403 fi
1404 fi
1405 done
1406 ;;
1407 esac
1408 done
1409 IFS="$ac_save_IFS"
1410
1411fi
1412 if test "${ac_cv_path_install+set}" = set; then
1413 INSTALL="$ac_cv_path_install"
1414 else
1415 # As a last resort, use the slow shell script. We don't cache a
1416 # path for INSTALL within a source directory, because that will
1417 # break other packages using the cache if that directory is
1418 # removed, or if the path is relative.
1419 INSTALL="$ac_install_sh"
1420 fi
1421fi
1422echo "$ac_t""$INSTALL" 1>&6
1423
1424# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1425# It thinks the first close brace ends the variable substitution.
1426test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1427
1428test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1429
1430test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1431
1432
1433. ${srcdir}/config.table
1434host_makefile_frag=${frag}
1435
1436
1437# It's OK to check for header files. Although the compiler may not be
1438# able to link anything, it had better be able to at least compile
1439# something.
1440echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1441echo "configure:1442: checking how to run the C preprocessor" >&5
1442# On Suns, sometimes $CPP names a directory.
1443if test -n "$CPP" && test -d "$CPP"; then
1444 CPP=
1445fi
1446if test -z "$CPP"; then
1447if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1449else
1450 # This must be in double quotes, not single quotes, because CPP may get
1451 # substituted into the Makefile and "${CC-cc}" will confuse make.
1452 CPP="${CC-cc} -E"
1453 # On the NeXT, cc -E runs the code through the compiler's parser,
1454 # not just through cpp.
1455 cat > conftest.$ac_ext <<EOF
1456#include <sys/types.h>
1457#line 1458 "configure"
1458#include "confdefs.h"
1459#include <assert.h>
1460Syntax Error
1461EOF
1462ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1463{ (eval echo configure:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1464ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1465if test -z "$ac_err"; then
1466 :
1467else
1468 echo "$ac_err" >&5
1469 echo "configure: failed program was:" >&5
1470 cat conftest.$ac_ext >&5
1471 rm -rf conftest*
1472 CPP="${CC-cc} -E -traditional-cpp"
1473 cat > conftest.$ac_ext <<EOF
1474#include <sys/types.h>
1475#line 1476 "configure"
1476#include "confdefs.h"
1477#include <assert.h>
1478Syntax Error
1479EOF
1480ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1481{ (eval echo configure:1482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1482ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1483if test -z "$ac_err"; then
1484 :
1485else
1486 echo "$ac_err" >&5
1487 echo "configure: failed program was:" >&5
1488 cat conftest.$ac_ext >&5
1489 rm -rf conftest*
1490 CPP="${CC-cc} -nologo -E"
1491 cat > conftest.$ac_ext <<EOF
1492#include <sys/types.h>
1493#line 1494 "configure"
1494#include "confdefs.h"
1495#include <assert.h>
1496Syntax Error
1497EOF
1498ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1499{ (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1500ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1501if test -z "$ac_err"; then
1502 :
1503else
1504 echo "$ac_err" >&5
1505 echo "configure: failed program was:" >&5
1506 cat conftest.$ac_ext >&5
1507 rm -rf conftest*
1508 CPP=/lib/cpp
1509fi
1510rm -f conftest*
1511fi
1512rm -f conftest*
1513fi
1514rm -f conftest*
1515 ac_cv_prog_CPP="$CPP"
1516fi
1517 CPP="$ac_cv_prog_CPP"
1518else
1519 ac_cv_prog_CPP="$CPP"
1520fi
1521echo "$ac_t""$CPP" 1>&6
1522
1523for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h
1524do
1525ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1526echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1527echo "configure:1528: checking for $ac_hdr" >&5
1528if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1530else
1531 cat > conftest.$ac_ext <<EOF
1532#include <sys/types.h>
1533#line 1534 "configure"
1534#include "confdefs.h"
1535#include <$ac_hdr>
1536EOF
1537ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1538{ (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1539ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1540if test -z "$ac_err"; then
1541 rm -rf conftest*
1542 eval "ac_cv_header_$ac_safe=yes"
1543else
1544 echo "$ac_err" >&5
1545 echo "configure: failed program was:" >&5
1546 cat conftest.$ac_ext >&5
1547 rm -rf conftest*
1548 eval "ac_cv_header_$ac_safe=no"
1549fi
1550rm -f conftest*
1551fi
1552if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1555 cat >> confdefs.h <<EOF
1556#define $ac_tr_hdr 1
1557EOF
1558
1559else
1560 echo "$ac_t""no" 1>&6
1561fi
1562done
1563
1564echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1565echo "configure:1566: checking for sys/wait.h that is POSIX.1 compatible" >&5
1566if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1568else
1569 cat > conftest.$ac_ext <<EOF
1570#line 1571 "configure"
1571#include "confdefs.h"
1572#include <sys/types.h>
1573#include <sys/wait.h>
1574#ifndef WEXITSTATUS
1575#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1576#endif
1577#ifndef WIFEXITED
1578#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1579#endif
1580int main() {
1581int s;
1582wait (&s);
1583s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1584; return 0; }
1585EOF
1586if { (eval echo configure:1587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1587 rm -rf conftest*
1588 ac_cv_header_sys_wait_h=yes
1589else
1590 echo "configure: failed program was:" >&5
1591 cat conftest.$ac_ext >&5
1592 rm -rf conftest*
1593 ac_cv_header_sys_wait_h=no
1594fi
1595rm -f conftest*
1596fi
1597
1598echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1599if test $ac_cv_header_sys_wait_h = yes; then
1600 cat >> confdefs.h <<\EOF
1601#define HAVE_SYS_WAIT_H 1
1602EOF
1603
1604fi
1605
1606echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1607echo "configure:1608: checking whether time.h and sys/time.h may both be included" >&5
1608if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1610else
1611 cat > conftest.$ac_ext <<EOF
1612#line 1613 "configure"
1613#include "confdefs.h"
1614#include <sys/types.h>
1615#include <sys/time.h>
1616#include <time.h>
1617int main() {
1618struct tm *tp;
1619; return 0; }
1620EOF
1621if { (eval echo configure:1622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1622 rm -rf conftest*
1623 ac_cv_header_time=yes
1624else
1625 echo "configure: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1627 rm -rf conftest*
1628 ac_cv_header_time=no
1629fi
1630rm -f conftest*
1631fi
1632
1633echo "$ac_t""$ac_cv_header_time" 1>&6
1634if test $ac_cv_header_time = yes; then
1635 cat >> confdefs.h <<\EOF
1636#define TIME_WITH_SYS_TIME 1
1637EOF
1638
1639fi
1640
1641
1642echo $ac_n "checking whether errno must be declared""... $ac_c" 1>&6
1643echo "configure:1644: checking whether errno must be declared" >&5
1644if eval "test \"`echo '$''{'libiberty_cv_declare_errno'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1646else
1647 cat > conftest.$ac_ext <<EOF
1648#line 1649 "configure"
1649#include "confdefs.h"
1650#include <errno.h>
1651int main() {
1652int x = errno;
1653; return 0; }
1654EOF
1655if { (eval echo configure:1656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1656 rm -rf conftest*
1657 libiberty_cv_declare_errno=no
1658else
1659 echo "configure: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1661 rm -rf conftest*
1662 libiberty_cv_declare_errno=yes
1663fi