* ppc-opc.c (insert_li): Give an error if the offset has the two
[deliverable/binutils-gdb.git] / opcodes / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.10
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:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-targets alternative target configurations"
16 ac_help="$ac_help
17 --enable-shared build shared opcodes library"
18 ac_help="$ac_help
19 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
20
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
24 build=NONE
25 cache_file=./config.cache
26 exec_prefix=NONE
27 host=NONE
28 no_create=
29 nonopt=NONE
30 no_recursion=
31 prefix=NONE
32 program_prefix=NONE
33 program_suffix=NONE
34 program_transform_name=s,x,x,
35 silent=
36 site=
37 srcdir=
38 target=NONE
39 verbose=
40 x_includes=NONE
41 x_libraries=NONE
42 bindir='${exec_prefix}/bin'
43 sbindir='${exec_prefix}/sbin'
44 libexecdir='${exec_prefix}/libexec'
45 datadir='${prefix}/share'
46 sysconfdir='${prefix}/etc'
47 sharedstatedir='${prefix}/com'
48 localstatedir='${prefix}/var'
49 libdir='${exec_prefix}/lib'
50 includedir='${prefix}/include'
51 oldincludedir='/usr/include'
52 infodir='${prefix}/info'
53 mandir='${prefix}/man'
54
55 # Initialize some other variables.
56 subdirs=
57 MFLAGS= MAKEFLAGS=
58
59 ac_prev=
60 for ac_option
61 do
62
63 # If the previous option needs an argument, assign it.
64 if test -n "$ac_prev"; then
65 eval "$ac_prev=\$ac_option"
66 ac_prev=
67 continue
68 fi
69
70 case "$ac_option" in
71 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 *) ac_optarg= ;;
73 esac
74
75 # Accept the important Cygnus configure options, so we can diagnose typos.
76
77 case "$ac_option" in
78
79 -bindir | --bindir | --bindi | --bind | --bin | --bi)
80 ac_prev=bindir ;;
81 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82 bindir="$ac_optarg" ;;
83
84 -build | --build | --buil | --bui | --bu)
85 ac_prev=build ;;
86 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87 build="$ac_optarg" ;;
88
89 -cache-file | --cache-file | --cache-fil | --cache-fi \
90 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
91 ac_prev=cache_file ;;
92 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
93 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
94 cache_file="$ac_optarg" ;;
95
96 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
97 ac_prev=datadir ;;
98 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
99 | --da=*)
100 datadir="$ac_optarg" ;;
101
102 -disable-* | --disable-*)
103 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
104 # Reject names that are not valid shell variable names.
105 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107 fi
108 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
109 eval "enable_${ac_feature}=no" ;;
110
111 -enable-* | --enable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 fi
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 case "$ac_option" in
119 *=*) ;;
120 *) ac_optarg=yes ;;
121 esac
122 eval "enable_${ac_feature}='$ac_optarg'" ;;
123
124 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
125 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
126 | --exec | --exe | --ex)
127 ac_prev=exec_prefix ;;
128 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
129 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
130 | --exec=* | --exe=* | --ex=*)
131 exec_prefix="$ac_optarg" ;;
132
133 -gas | --gas | --ga | --g)
134 # Obsolete; use --with-gas.
135 with_gas=yes ;;
136
137 -help | --help | --hel | --he)
138 # Omit some internal or obsolete options to make the list less imposing.
139 # This message is too long to be a string in the A/UX 3.1 sh.
140 cat << EOF
141 Usage: configure [options] [host]
142 Options: [defaults in brackets after descriptions]
143 Configuration:
144 --cache-file=FILE cache test results in FILE
145 --help print this message
146 --no-create do not create output files
147 --quiet, --silent do not print \`checking...' messages
148 --version print the version of autoconf that created configure
149 Directory and file names:
150 --prefix=PREFIX install architecture-independent files in PREFIX
151 [$ac_default_prefix]
152 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
153 [same as prefix]
154 --bindir=DIR user executables in DIR [EPREFIX/bin]
155 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
156 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
157 --datadir=DIR read-only architecture-independent data in DIR
158 [PREFIX/share]
159 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
160 --sharedstatedir=DIR modifiable architecture-independent data in DIR
161 [PREFIX/com]
162 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
163 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
164 --includedir=DIR C header files in DIR [PREFIX/include]
165 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
166 --infodir=DIR info documentation in DIR [PREFIX/info]
167 --mandir=DIR man documentation in DIR [PREFIX/man]
168 --srcdir=DIR find the sources in DIR [configure dir or ..]
169 --program-prefix=PREFIX prepend PREFIX to installed program names
170 --program-suffix=SUFFIX append SUFFIX to installed program names
171 --program-transform-name=PROGRAM
172 run sed PROGRAM on installed program names
173 EOF
174 cat << EOF
175 Host type:
176 --build=BUILD configure for building on BUILD [BUILD=HOST]
177 --host=HOST configure for HOST [guessed]
178 --target=TARGET configure for TARGET [TARGET=HOST]
179 Features and packages:
180 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
181 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
182 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
183 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
184 --x-includes=DIR X include files are in DIR
185 --x-libraries=DIR X library files are in DIR
186 EOF
187 if test -n "$ac_help"; then
188 echo "--enable and --with options recognized:$ac_help"
189 fi
190 exit 0 ;;
191
192 -host | --host | --hos | --ho)
193 ac_prev=host ;;
194 -host=* | --host=* | --hos=* | --ho=*)
195 host="$ac_optarg" ;;
196
197 -includedir | --includedir | --includedi | --included | --include \
198 | --includ | --inclu | --incl | --inc)
199 ac_prev=includedir ;;
200 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
201 | --includ=* | --inclu=* | --incl=* | --inc=*)
202 includedir="$ac_optarg" ;;
203
204 -infodir | --infodir | --infodi | --infod | --info | --inf)
205 ac_prev=infodir ;;
206 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
207 infodir="$ac_optarg" ;;
208
209 -libdir | --libdir | --libdi | --libd)
210 ac_prev=libdir ;;
211 -libdir=* | --libdir=* | --libdi=* | --libd=*)
212 libdir="$ac_optarg" ;;
213
214 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
215 | --libexe | --libex | --libe)
216 ac_prev=libexecdir ;;
217 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
218 | --libexe=* | --libex=* | --libe=*)
219 libexecdir="$ac_optarg" ;;
220
221 -localstatedir | --localstatedir | --localstatedi | --localstated \
222 | --localstate | --localstat | --localsta | --localst \
223 | --locals | --local | --loca | --loc | --lo)
224 ac_prev=localstatedir ;;
225 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
226 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
227 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
228 localstatedir="$ac_optarg" ;;
229
230 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
231 ac_prev=mandir ;;
232 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
233 mandir="$ac_optarg" ;;
234
235 -nfp | --nfp | --nf)
236 # Obsolete; use --without-fp.
237 with_fp=no ;;
238
239 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
240 | --no-cr | --no-c)
241 no_create=yes ;;
242
243 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
244 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
245 no_recursion=yes ;;
246
247 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
248 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
249 | --oldin | --oldi | --old | --ol | --o)
250 ac_prev=oldincludedir ;;
251 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
252 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
253 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
254 oldincludedir="$ac_optarg" ;;
255
256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
257 ac_prev=prefix ;;
258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
259 prefix="$ac_optarg" ;;
260
261 -program-prefix | --program-prefix | --program-prefi | --program-pref \
262 | --program-pre | --program-pr | --program-p)
263 ac_prev=program_prefix ;;
264 -program-prefix=* | --program-prefix=* | --program-prefi=* \
265 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
266 program_prefix="$ac_optarg" ;;
267
268 -program-suffix | --program-suffix | --program-suffi | --program-suff \
269 | --program-suf | --program-su | --program-s)
270 ac_prev=program_suffix ;;
271 -program-suffix=* | --program-suffix=* | --program-suffi=* \
272 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
273 program_suffix="$ac_optarg" ;;
274
275 -program-transform-name | --program-transform-name \
276 | --program-transform-nam | --program-transform-na \
277 | --program-transform-n | --program-transform- \
278 | --program-transform | --program-transfor \
279 | --program-transfo | --program-transf \
280 | --program-trans | --program-tran \
281 | --progr-tra | --program-tr | --program-t)
282 ac_prev=program_transform_name ;;
283 -program-transform-name=* | --program-transform-name=* \
284 | --program-transform-nam=* | --program-transform-na=* \
285 | --program-transform-n=* | --program-transform-=* \
286 | --program-transform=* | --program-transfor=* \
287 | --program-transfo=* | --program-transf=* \
288 | --program-trans=* | --program-tran=* \
289 | --progr-tra=* | --program-tr=* | --program-t=*)
290 program_transform_name="$ac_optarg" ;;
291
292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
293 | -silent | --silent | --silen | --sile | --sil)
294 silent=yes ;;
295
296 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
297 ac_prev=sbindir ;;
298 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
299 | --sbi=* | --sb=*)
300 sbindir="$ac_optarg" ;;
301
302 -sharedstatedir | --sharedstatedir | --sharedstatedi \
303 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
304 | --sharedst | --shareds | --shared | --share | --shar \
305 | --sha | --sh)
306 ac_prev=sharedstatedir ;;
307 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
308 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
309 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
310 | --sha=* | --sh=*)
311 sharedstatedir="$ac_optarg" ;;
312
313 -site | --site | --sit)
314 ac_prev=site ;;
315 -site=* | --site=* | --sit=*)
316 site="$ac_optarg" ;;
317
318 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
319 ac_prev=srcdir ;;
320 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
321 srcdir="$ac_optarg" ;;
322
323 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
324 | --syscon | --sysco | --sysc | --sys | --sy)
325 ac_prev=sysconfdir ;;
326 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
327 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
328 sysconfdir="$ac_optarg" ;;
329
330 -target | --target | --targe | --targ | --tar | --ta | --t)
331 ac_prev=target ;;
332 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
333 target="$ac_optarg" ;;
334
335 -v | -verbose | --verbose | --verbos | --verbo | --verb)
336 verbose=yes ;;
337
338 -version | --version | --versio | --versi | --vers)
339 echo "configure generated by autoconf version 2.10"
340 exit 0 ;;
341
342 -with-* | --with-*)
343 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
344 # Reject names that are not valid shell variable names.
345 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
346 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347 fi
348 ac_package=`echo $ac_package| sed 's/-/_/g'`
349 case "$ac_option" in
350 *=*) ;;
351 *) ac_optarg=yes ;;
352 esac
353 eval "with_${ac_package}='$ac_optarg'" ;;
354
355 -without-* | --without-*)
356 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 fi
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}=no" ;;
363
364 --x)
365 # Obsolete; use --with-x.
366 with_x=yes ;;
367
368 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
369 | --x-incl | --x-inc | --x-in | --x-i)
370 ac_prev=x_includes ;;
371 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
372 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
373 x_includes="$ac_optarg" ;;
374
375 -x-libraries | --x-libraries | --x-librarie | --x-librari \
376 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
377 ac_prev=x_libraries ;;
378 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
379 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
380 x_libraries="$ac_optarg" ;;
381
382 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383 ;;
384
385 *)
386 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
387 echo "configure: warning: $ac_option: invalid host type" 1>&2
388 fi
389 if test "x$nonopt" != xNONE; then
390 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
391 fi
392 nonopt="$ac_option"
393 ;;
394
395 esac
396 done
397
398 if test -n "$ac_prev"; then
399 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
400 fi
401
402 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403
404 # File descriptor usage:
405 # 0 standard input
406 # 1 file creation
407 # 2 errors and warnings
408 # 3 some systems may open it to /dev/tty
409 # 4 used on the Kubota Titan
410 # 6 checking for... messages and results
411 # 5 compiler messages saved in config.log
412 if test "$silent" = yes; then
413 exec 6>/dev/null
414 else
415 exec 6>&1
416 fi
417 exec 5>./config.log
418
419 echo "\
420 This file contains any messages produced by compilers while
421 running configure, to aid debugging if configure makes a mistake.
422 " 1>&5
423
424 # Strip out --no-create and --no-recursion so they do not pile up.
425 # Also quote any args containing shell metacharacters.
426 ac_configure_args=
427 for ac_arg
428 do
429 case "$ac_arg" in
430 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
431 | --no-cr | --no-c) ;;
432 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
433 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
434 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
435 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
436 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
437 esac
438 done
439
440 # NLS nuisances.
441 # Only set LANG and LC_ALL to C if already set.
442 # These must not be set unconditionally because not all systems understand
443 # e.g. LANG=C (notably SCO).
444 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
445 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
446
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
450 echo > confdefs.h
451
452 # A filename unique to this package, relative to the directory that
453 # configure is in, which we can look for to find out if srcdir is correct.
454 ac_unique_file=z8k-dis.c
455
456 # Find the source files, if location was not specified.
457 if test -z "$srcdir"; then
458 ac_srcdir_defaulted=yes
459 # Try the directory containing this script, then its parent.
460 ac_prog=$0
461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
463 srcdir=$ac_confdir
464 if test ! -r $srcdir/$ac_unique_file; then
465 srcdir=..
466 fi
467 else
468 ac_srcdir_defaulted=no
469 fi
470 if test ! -r $srcdir/$ac_unique_file; then
471 if test "$ac_srcdir_defaulted" = yes; then
472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473 else
474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
475 fi
476 fi
477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478
479 # Prefer explicitly selected file to automatically selected ones.
480 if test -z "$CONFIG_SITE"; then
481 if test "x$prefix" != xNONE; then
482 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
483 else
484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
485 fi
486 fi
487 for ac_site_file in $CONFIG_SITE; do
488 if test -r "$ac_site_file"; then
489 echo "loading site script $ac_site_file"
490 . "$ac_site_file"
491 fi
492 done
493
494 if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
496 . $cache_file
497 else
498 echo "creating cache $cache_file"
499 > $cache_file
500 fi
501
502 ac_ext=c
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp='$CPP $CPPFLAGS'
505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507
508 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
509 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
510 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
511 ac_n= ac_c='
512 ' ac_t=' '
513 else
514 ac_n=-n ac_c= ac_t=
515 fi
516 else
517 ac_n= ac_c='\c' ac_t=
518 fi
519
520
521 # configure.in script for the opcodes library.
522 # Copyright (C) 1995, 1996 Free Software Foundation, Inc.
523 # Written by Cygnus Support.
524 #
525 # This program is free software; you can redistribute it and/or modify
526 # it under the terms of the GNU General Public License as published by
527 # the Free Software Foundation; either version 2 of the License, or
528 # (at your option) any later version.
529 #
530 # This program is distributed in the hope that it will be useful,
531 # but WITHOUT ANY WARRANTY; without even the implied warranty of
532 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
533 # GNU General Public License for more details.
534 #
535 # You should have received a copy of the GNU General Public License
536 # along with this program; if not, write to the Free Software
537 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
538
539 # Check whether --enable-targets or --disable-targets was given.
540 if test "${enable_targets+set}" = set; then
541 enableval="$enable_targets"
542 case "${enableval}" in
543 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
544 ;;
545 no) enable_targets= ;;
546 *) enable_targets=$enableval ;;
547 esac
548 fi
549 # Check whether --enable-shared or --disable-shared was given.
550 if test "${enable_shared+set}" = set; then
551 enableval="$enable_shared"
552 case "${enableval}" in
553 yes) shared=true ;;
554 no) shared=false ;;
555 *opcodes*) shared=true ;;
556 *) shared=false ;;
557 esac
558 fi
559 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
560 if test "${enable_commonbfdlib+set}" = set; then
561 enableval="$enable_commonbfdlib"
562 case "${enableval}" in
563 yes) commonbfdlib=true ;;
564 no) commonbfdlib=false ;;
565 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
566 esac
567 fi
568
569
570
571 ac_aux_dir=
572 for ac_dir in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`; do
573 if test -f $ac_dir/install-sh; then
574 ac_aux_dir=$ac_dir
575 ac_install_sh="$ac_aux_dir/install-sh -c"
576 break
577 elif test -f $ac_dir/install.sh; then
578 ac_aux_dir=$ac_dir
579 ac_install_sh="$ac_aux_dir/install.sh -c"
580 break
581 fi
582 done
583 if test -z "$ac_aux_dir"; then
584 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir/..;pwd` $srcdir/`cd $srcdir/..;pwd`" 1>&2; exit 1; }
585 fi
586 ac_config_guess=$ac_aux_dir/config.guess
587 ac_config_sub=$ac_aux_dir/config.sub
588 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
589
590
591 # Do some error checking and defaulting for the host and target type.
592 # The inputs are:
593 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
594 #
595 # The rules are:
596 # 1. You are not allowed to specify --host, --target, and nonopt at the
597 # same time.
598 # 2. Host defaults to nonopt.
599 # 3. If nonopt is not specified, then host defaults to the current host,
600 # as determined by config.guess.
601 # 4. Target and build default to nonopt.
602 # 5. If nonopt is not specified, then target and build default to host.
603
604 # The aliases save the names the user supplied, while $host etc.
605 # will get canonicalized.
606 case $host---$target---$nonopt in
607 NONE---*---* | *---NONE---* | *---*---NONE) ;;
608 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
609 esac
610
611
612 # Make sure we can run config.sub.
613 if $ac_config_sub sun4 >/dev/null 2>&1; then :
614 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
615 fi
616
617 echo $ac_n "checking host system type""... $ac_c" 1>&6
618
619 host_alias=$host
620 case "$host_alias" in
621 NONE)
622 case $nonopt in
623 NONE)
624 if host_alias=`$ac_config_guess`; then :
625 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
626 fi ;;
627 *) host_alias=$nonopt ;;
628 esac ;;
629 esac
630
631 host=`$ac_config_sub $host_alias`
632 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
633 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
634 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
635 echo "$ac_t""$host" 1>&6
636
637 echo $ac_n "checking target system type""... $ac_c" 1>&6
638
639 target_alias=$target
640 case "$target_alias" in
641 NONE)
642 case $nonopt in
643 NONE) target_alias=$host_alias ;;
644 *) target_alias=$nonopt ;;
645 esac ;;
646 esac
647
648 target=`$ac_config_sub $target_alias`
649 target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
650 target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
651 target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
652 echo "$ac_t""$target" 1>&6
653
654 echo $ac_n "checking build system type""... $ac_c" 1>&6
655
656 build_alias=$build
657 case "$build_alias" in
658 NONE)
659 case $nonopt in
660 NONE) build_alias=$host_alias ;;
661 *) build_alias=$nonopt ;;
662 esac ;;
663 esac
664
665 build=`$ac_config_sub $build_alias`
666 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
667 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
668 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
669 echo "$ac_t""$build" 1>&6
670
671 test "$host_alias" != "$target_alias" &&
672 test "$program_prefix$program_suffix$program_transform_name" = \
673 NONENONEs,x,x, &&
674 program_prefix=${target_alias}-
675
676 if test -z "$target" ; then
677 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
678 fi
679 if test "$program_transform_name" = s,x,x,; then
680 program_transform_name=
681 else
682 # Double any \ or $. echo might interpret backslashes.
683 cat <<\EOF_SED > conftestsed
684 s,\\,\\\\,g; s,\$,$$,g
685 EOF_SED
686 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
687 rm -f conftestsed
688 fi
689 test "$program_prefix" != NONE &&
690 program_transform_name="s,^,${program_prefix},; $program_transform_name"
691 # Use a double $ so make ignores it.
692 test "$program_suffix" != NONE &&
693 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
694
695 # sed with no file args requires a program.
696 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
697
698
699 # host-specific stuff:
700
701 ALLLIBS='$(TARGETLIB)'
702 PICFLAG=
703 SHLIB=unused-shlib
704 SHLINK=unused-shlink
705 if test "${shared}" = "true"; then
706 ALLLIBS='$(TARGETLIB) $(SHLIB) $(SHLINK)'
707 PICFLAG=-fpic
708 if test "${commonbfdlib}" = "true"; then
709 SHLIB=../bfd/libbfd.so.`sed -e 's/[^0-9]*\([0-9.]*\).*/\1/' ${srcdir}/../bfd/VERSION`
710 SHLINK=../bfd/libbfd.so
711 else
712 SHLIB=libopcodes.so.`sed -e 's/[^0-9]*\([0-9.]*\).*/\1/' ${srcdir}/../bfd/VERSION`
713 SHLINK=libopcodes.so
714 fi
715 fi
716
717 # Extract the first word of "gcc", so it can be a program name with args.
718 set dummy gcc; ac_word=$2
719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
720 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
721 echo $ac_n "(cached) $ac_c" 1>&6
722 else
723 if test -n "$CC"; then
724 ac_cv_prog_CC="$CC" # Let the user override the test.
725 else
726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
727 for ac_dir in $PATH; do
728 test -z "$ac_dir" && ac_dir=.
729 if test -f $ac_dir/$ac_word; then
730 ac_cv_prog_CC="gcc"
731 break
732 fi
733 done
734 IFS="$ac_save_ifs"
735 fi
736 fi
737 CC="$ac_cv_prog_CC"
738 if test -n "$CC"; then
739 echo "$ac_t""$CC" 1>&6
740 else
741 echo "$ac_t""no" 1>&6
742 fi
743
744 if test -z "$CC"; then
745 # Extract the first word of "cc", so it can be a program name with args.
746 set dummy cc; ac_word=$2
747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
748 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
750 else
751 if test -n "$CC"; then
752 ac_cv_prog_CC="$CC" # Let the user override the test.
753 else
754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
755 ac_prog_rejected=no
756 for ac_dir in $PATH; do
757 test -z "$ac_dir" && ac_dir=.
758 if test -f $ac_dir/$ac_word; then
759 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
760 ac_prog_rejected=yes
761 continue
762 fi
763 ac_cv_prog_CC="cc"
764 break
765 fi
766 done
767 IFS="$ac_save_ifs"
768 if test $ac_prog_rejected = yes; then
769 # We found a bogon in the path, so make sure we never use it.
770 set dummy $ac_cv_prog_CC
771 shift
772 if test $# -gt 0; then
773 # We chose a different compiler from the bogus one.
774 # However, it has the same basename, so the bogon will be chosen
775 # first if we set CC to just the basename; use the full file name.
776 shift
777 set dummy "$ac_dir/$ac_word" "$@"
778 shift
779 ac_cv_prog_CC="$@"
780 fi
781 fi
782 fi
783 fi
784 CC="$ac_cv_prog_CC"
785 if test -n "$CC"; then
786 echo "$ac_t""$CC" 1>&6
787 else
788 echo "$ac_t""no" 1>&6
789 fi
790
791 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
792 fi
793
794 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
795 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
796 echo $ac_n "(cached) $ac_c" 1>&6
797 else
798 cat > conftest.c <<EOF
799 #ifdef __GNUC__
800 yes;
801 #endif
802 EOF
803 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
804 ac_cv_prog_gcc=yes
805 else
806 ac_cv_prog_gcc=no
807 fi
808 fi
809
810 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
811 if test $ac_cv_prog_gcc = yes; then
812 GCC=yes
813 if test "${CFLAGS+set}" != set; then
814 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
815 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
816 echo $ac_n "(cached) $ac_c" 1>&6
817 else
818 echo 'void f(){}' > conftest.c
819 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
820 ac_cv_prog_gcc_g=yes
821 else
822 ac_cv_prog_gcc_g=no
823 fi
824 rm -f conftest*
825
826 fi
827
828 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
829 if test $ac_cv_prog_gcc_g = yes; then
830 CFLAGS="-g -O"
831 else
832 CFLAGS="-O"
833 fi
834 fi
835 else
836 GCC=
837 test "${CFLAGS+set}" = set || CFLAGS="-g"
838 fi
839
840
841 . ${srcdir}/../bfd/configure.host
842
843
844 if test $host != $build; then
845 ac_tool_prefix=${host_alias}-
846 else
847 ac_tool_prefix=
848 fi
849
850 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
851 set dummy ${ac_tool_prefix}ar; ac_word=$2
852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
853 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
855 else
856 if test -n "$AR"; then
857 ac_cv_prog_AR="$AR" # Let the user override the test.
858 else
859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
860 for ac_dir in $PATH; do
861 test -z "$ac_dir" && ac_dir=.
862 if test -f $ac_dir/$ac_word; then
863 ac_cv_prog_AR="${ac_tool_prefix}ar"
864 break
865 fi
866 done
867 IFS="$ac_save_ifs"
868 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
869 fi
870 fi
871 AR="$ac_cv_prog_AR"
872 if test -n "$AR"; then
873 echo "$ac_t""$AR" 1>&6
874 else
875 echo "$ac_t""no" 1>&6
876 fi
877
878
879
880 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
881 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
883 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
885 else
886 if test -n "$RANLIB"; then
887 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
888 else
889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
890 for ac_dir in $PATH; do
891 test -z "$ac_dir" && ac_dir=.
892 if test -f $ac_dir/$ac_word; then
893 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
894 break
895 fi
896 done
897 IFS="$ac_save_ifs"
898 fi
899 fi
900 RANLIB="$ac_cv_prog_RANLIB"
901 if test -n "$RANLIB"; then
902 echo "$ac_t""$RANLIB" 1>&6
903 else
904 echo "$ac_t""no" 1>&6
905 fi
906
907
908 if test -z "$ac_cv_prog_RANLIB"; then
909 if test -n "$ac_tool_prefix"; then
910 # Extract the first word of "ranlib", so it can be a program name with args.
911 set dummy ranlib; ac_word=$2
912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
913 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
915 else
916 if test -n "$RANLIB"; then
917 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
918 else
919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
920 for ac_dir in $PATH; do
921 test -z "$ac_dir" && ac_dir=.
922 if test -f $ac_dir/$ac_word; then
923 ac_cv_prog_RANLIB="ranlib"
924 break
925 fi
926 done
927 IFS="$ac_save_ifs"
928 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
929 fi
930 fi
931 RANLIB="$ac_cv_prog_RANLIB"
932 if test -n "$RANLIB"; then
933 echo "$ac_t""$RANLIB" 1>&6
934 else
935 echo "$ac_t""no" 1>&6
936 fi
937
938 else
939 RANLIB=":"
940 fi
941 fi
942
943 # Find a good install program. We prefer a C program (faster),
944 # so one script is as good as another. But avoid the broken or
945 # incompatible versions:
946 # SysV /etc/install, /usr/sbin/install
947 # SunOS /usr/etc/install
948 # IRIX /sbin/install
949 # AIX /bin/install
950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
952 # ./install, which can be erroneously created by make from ./install.sh.
953 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
954 if test -z "$INSTALL"; then
955 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
956 echo $ac_n "(cached) $ac_c" 1>&6
957 else
958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
959 for ac_dir in $PATH; do
960 # Account for people who put trailing slashes in PATH elements.
961 case "$ac_dir/" in
962 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
963 *)
964 # OSF1 and SCO ODT 3.0 have their own names for install.
965 for ac_prog in ginstall installbsd scoinst install; do
966 if test -f $ac_dir/$ac_prog; then
967 if test $ac_prog = install &&
968 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
969 # AIX install. It has an incompatible calling convention.
970 # OSF/1 installbsd also uses dspmsg, but is usable.
971 :
972 else
973 ac_cv_path_install="$ac_dir/$ac_prog -c"
974 break 2
975 fi
976 fi
977 done
978 ;;
979 esac
980 done
981 IFS="$ac_save_ifs"
982
983 fi
984 if test "${ac_cv_path_install+set}" = set; then
985 INSTALL="$ac_cv_path_install"
986 else
987 # As a last resort, use the slow shell script. We don't cache a
988 # path for INSTALL within a source directory, because that will
989 # break other packages using the cache if that directory is
990 # removed, or if the path is relative.
991 INSTALL="$ac_install_sh"
992 fi
993 fi
994 echo "$ac_t""$INSTALL" 1>&6
995
996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
997 # It thinks the first close brace ends the variable substitution.
998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
999
1000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1001
1002
1003 if test "${shared}" = "true"; then
1004 if test "${GCC}" != "yes" && test "${shared_non_gcc}" != "yes"; then
1005 echo "configure: warning: opcodes --enable-shared only supported when using gcc" 1>&2
1006 shared=false
1007 ALLLIBS='$(TARGETLIB)'
1008 PICFLAG=
1009 SHLIB=unused-shlib
1010 fi
1011 fi
1012
1013
1014
1015
1016
1017
1018 if test "${commonbfdlib}" = "true"; then
1019 COMMON_SHLIB=yes
1020 # Rebuild the shared library if libiberty or libbfd changes.
1021 SHLIB_DEP="../libiberty/libiberty.a ../bfd/libbfd.a"
1022 BFD_PICLIST=../bfd/piclist
1023 else
1024 COMMON_SHLIB=
1025 SHLIB_DEP=
1026 BFD_PICLIST=
1027 fi
1028
1029
1030
1031
1032
1033
1034 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1035 # On Suns, sometimes $CPP names a directory.
1036 if test -n "$CPP" && test -d "$CPP"; then
1037 CPP=
1038 fi
1039 if test -z "$CPP"; then
1040 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1042 else
1043 # This must be in double quotes, not single quotes, because CPP may get
1044 # substituted into the Makefile and "${CC-cc}" will confuse make.
1045 CPP="${CC-cc} -E"
1046 # On the NeXT, cc -E runs the code through the compiler's parser,
1047 # not just through cpp.
1048 cat > conftest.$ac_ext <<EOF
1049 #line 1050 "configure"
1050 #include "confdefs.h"
1051 #include <assert.h>
1052 Syntax Error
1053 EOF
1054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1055 { (eval echo configure:1056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1056 ac_err=`grep -v '^ *+' conftest.out`
1057 if test -z "$ac_err"; then
1058 :
1059 else
1060 echo "$ac_err" >&5
1061 rm -rf conftest*
1062 CPP="${CC-cc} -E -traditional-cpp"
1063 cat > conftest.$ac_ext <<EOF
1064 #line 1065 "configure"
1065 #include "confdefs.h"
1066 #include <assert.h>
1067 Syntax Error
1068 EOF
1069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1070 { (eval echo configure:1071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1071 ac_err=`grep -v '^ *+' conftest.out`
1072 if test -z "$ac_err"; then
1073 :
1074 else
1075 echo "$ac_err" >&5
1076 rm -rf conftest*
1077 CPP=/lib/cpp
1078 fi
1079 rm -f conftest*
1080 fi
1081 rm -f conftest*
1082 ac_cv_prog_CPP="$CPP"
1083 fi
1084 CPP="$ac_cv_prog_CPP"
1085 else
1086 ac_cv_prog_CPP="$CPP"
1087 fi
1088 echo "$ac_t""$CPP" 1>&6
1089
1090 for ac_hdr in string.h strings.h
1091 do
1092 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1096 else
1097 cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1100 #include <$ac_hdr>
1101 EOF
1102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1103 { (eval echo configure:1104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1104 ac_err=`grep -v '^ *+' conftest.out`
1105 if test -z "$ac_err"; then
1106 rm -rf conftest*
1107 eval "ac_cv_header_$ac_safe=yes"
1108 else
1109 echo "$ac_err" >&5
1110 rm -rf conftest*
1111 eval "ac_cv_header_$ac_safe=no"
1112 fi
1113 rm -f conftest*
1114 fi
1115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1116 echo "$ac_t""yes" 1>&6
1117 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1118 cat >> confdefs.h <<EOF
1119 #define $ac_tr_hdr 1
1120 EOF
1121
1122 else
1123 echo "$ac_t""no" 1>&6
1124 fi
1125 done
1126
1127
1128 # target-specific stuff:
1129
1130 # Canonicalize the secondary target names.
1131 if test -n "$enable_targets" ; then
1132 for targ in `echo $enable_targets | sed 's/,/ /g'`
1133 do
1134 result=`$ac_config_sub $targ 2>/dev/null`
1135 if test -n "$result" ; then
1136 canon_targets="$canon_targets $result"
1137 else
1138 # Allow targets that config.sub doesn't recognize, like "all".
1139 canon_targets="$canon_targets $targ"
1140 fi
1141 done
1142 fi
1143
1144 all_targets=false
1145 selarchs=
1146 for targ in $target $canon_targets
1147 do
1148 if test "x$targ" = "xall" ; then
1149 all_targets=true
1150 else
1151 . $srcdir/../bfd/config.bfd
1152 selarchs="$selarchs $targ_archs"
1153 fi
1154 done
1155
1156 # We don't do any links based on the target system, just makefile config.
1157
1158 if test x${all_targets} = xfalse ; then
1159
1160 # Target architecture .o files.
1161 ta=
1162
1163 for arch in $selarchs
1164 do
1165 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
1166 archdefs="$archdefs -DARCH_$ad"
1167 case "$arch" in
1168 bfd_a29k_arch) ta="$ta a29k-dis.o" ;;
1169 bfd_alliant_arch) ;;
1170 bfd_alpha_arch) ta="$ta alpha-dis.o alpha-opc.o" ;;
1171 # start-sanitize-arc
1172 bfd_arc_arch) ta="$ta arc-dis.o arc-opc.o" ;;
1173 # end-sanitize-arc
1174 bfd_arm_arch) ta="$ta arm-dis.o" ;;
1175 bfd_convex_arch) ;;
1176 # start-sanitize-d10v
1177 bfd_d10v_arch) ta="$ta d10v-dis.o d10v-opc.o" ;;
1178 # end-sanitize-d10v
1179 bfd_h8300_arch) ta="$ta h8300-dis.o" ;;
1180 bfd_h8500_arch) ta="$ta h8500-dis.o" ;;
1181 bfd_hppa_arch) ta="$ta hppa-dis.o" ;;
1182 bfd_i386_arch) ta="$ta i386-dis.o" ;;
1183 bfd_i860_arch) ;;
1184 bfd_i960_arch) ta="$ta i960-dis.o" ;;
1185 bfd_m68k_arch) ta="$ta m68k-dis.o m68k-opc.o" ;;
1186 bfd_m88k_arch) ta="$ta m88k-dis.o" ;;
1187 bfd_mips_arch) ta="$ta mips-dis.o mips-opc.o mips16-opc.o" ;;
1188 bfd_mn10200_arch) ta="$ta mn10200-dis.o mn10200-opc.o" ;;
1189 bfd_mn10300_arch) ta="$ta mn10300-dis.o mn10300-opc.o" ;;
1190 bfd_ns32k_arch) ta="$ta ns32k-dis.o" ;;
1191 bfd_powerpc_arch) ta="$ta ppc-dis.o ppc-opc.o" ;;
1192 bfd_pyramid_arch) ;;
1193 bfd_romp_arch) ;;
1194 bfd_rs6000_arch) ta="$ta ppc-dis.o ppc-opc.o" ;;
1195 bfd_sh_arch) ta="$ta sh-dis.o" ;;
1196 bfd_sparc_arch) ta="$ta sparc-dis.o sparc-opc.o" ;;
1197 bfd_tahoe_arch) ;;
1198 # start-sanitize-v850
1199 bfd_v850_arch) ta="$ta v850-opc.o v850-dis.o" ;;
1200 # end-sanitize-v850
1201 bfd_vax_arch) ;;
1202 bfd_w65_arch) ta="$ta w65-dis.o" ;;
1203 bfd_we32k_arch) ;;
1204 bfd_z8k_arch) ta="$ta z8k-dis.o" ;;
1205
1206 "") ;;
1207 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
1208 esac
1209 done
1210
1211 # Weed out duplicate .o files.
1212 f=""
1213 for i in $ta ; do
1214 case " $f " in
1215 *" $i "*) ;;
1216 *) f="$f $i" ;;
1217 esac
1218 done
1219 ta="$f"
1220
1221 # And duplicate -D flags.
1222 f=""
1223 for i in $archdefs ; do
1224 case " $f " in
1225 *" $i "*) ;;
1226 *) f="$f $i" ;;
1227 esac
1228 done
1229 archdefs="$f"
1230
1231 BFD_MACHINES="$ta"
1232
1233 else # all_targets is true
1234 archdefs=-DARCH_all
1235 BFD_MACHINES='$(ALL_MACHINES)'
1236 fi
1237
1238
1239
1240
1241 trap '' 1 2 15
1242 cat > confcache <<\EOF
1243 # This file is a shell script that caches the results of configure
1244 # tests run on this system so they can be shared between configure
1245 # scripts and configure runs. It is not useful on other systems.
1246 # If it contains results you don't want to keep, you may remove or edit it.
1247 #
1248 # By default, configure uses ./config.cache as the cache file,
1249 # creating it if it does not exist already. You can give configure
1250 # the --cache-file=FILE option to use a different cache file; that is
1251 # what configure does when it calls configure scripts in
1252 # subdirectories, so they share the cache.
1253 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1254 # config.status only pays attention to the cache file if you give it the
1255 # --recheck option to rerun configure.
1256 #
1257 EOF
1258 # Ultrix sh set writes to stderr and can't be redirected directly,
1259 # and sets the high bit in the cache file unless we assign to the vars.
1260 (set) 2>&1 |
1261 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1262 >> confcache
1263 if cmp -s $cache_file confcache; then
1264 :
1265 else
1266 if test -w $cache_file; then
1267 echo "updating cache $cache_file"
1268 cat confcache > $cache_file
1269 else
1270 echo "not updating unwritable cache $cache_file"
1271 fi
1272 fi
1273 rm -f confcache
1274
1275 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1276
1277 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1278 # Let make expand exec_prefix.
1279 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1280
1281 # Any assignment to VPATH causes Sun make to only execute
1282 # the first set of double-colon rules, so remove it if not needed.
1283 # If there is a colon in the path, we need to keep it.
1284 if test "x$srcdir" = x.; then
1285 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1286 fi
1287
1288 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1289
1290 DEFS=-DHAVE_CONFIG_H
1291
1292 # Without the "./", some shells look in PATH for config.status.
1293 : ${CONFIG_STATUS=./config.status}
1294
1295 echo creating $CONFIG_STATUS
1296 rm -f $CONFIG_STATUS
1297 cat > $CONFIG_STATUS <<EOF
1298 #! /bin/sh
1299 # Generated automatically by configure.
1300 # Run this file to recreate the current configuration.
1301 # This directory was configured as follows,
1302 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1303 #
1304 # $0 $ac_configure_args
1305 #
1306 # Compiler output produced by configure, useful for debugging
1307 # configure, is in ./config.log if it exists.
1308
1309 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1310 for ac_option
1311 do
1312 case "\$ac_option" in
1313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1314 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1315 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1316 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1317 echo "$CONFIG_STATUS generated by autoconf version 2.10"
1318 exit 0 ;;
1319 -help | --help | --hel | --he | --h)
1320 echo "\$ac_cs_usage"; exit 0 ;;
1321 *) echo "\$ac_cs_usage"; exit 1 ;;
1322 esac
1323 done
1324
1325 ac_given_srcdir=$srcdir
1326 ac_given_INSTALL="$INSTALL"
1327
1328 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1329 EOF
1330 cat >> $CONFIG_STATUS <<EOF
1331
1332 # Protect against being on the right side of a sed subst in config.status.
1333 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1334 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1335 $ac_vpsub
1336 $extrasub
1337 s%@CFLAGS@%$CFLAGS%g
1338 s%@CPPFLAGS@%$CPPFLAGS%g
1339 s%@CXXFLAGS@%$CXXFLAGS%g
1340 s%@DEFS@%$DEFS%g
1341 s%@LDFLAGS@%$LDFLAGS%g
1342 s%@LIBS@%$LIBS%g
1343 s%@exec_prefix@%$exec_prefix%g
1344 s%@prefix@%$prefix%g
1345 s%@program_transform_name@%$program_transform_name%g
1346 s%@bindir@%$bindir%g
1347 s%@sbindir@%$sbindir%g
1348 s%@libexecdir@%$libexecdir%g
1349 s%@datadir@%$datadir%g
1350 s%@sysconfdir@%$sysconfdir%g
1351 s%@sharedstatedir@%$sharedstatedir%g
1352 s%@localstatedir@%$localstatedir%g
1353 s%@libdir@%$libdir%g
1354 s%@includedir@%$includedir%g
1355 s%@oldincludedir@%$oldincludedir%g
1356 s%@infodir@%$infodir%g
1357 s%@mandir@%$mandir%g
1358 s%@host@%$host%g
1359 s%@host_alias@%$host_alias%g
1360 s%@host_cpu@%$host_cpu%g
1361 s%@host_vendor@%$host_vendor%g
1362 s%@host_os@%$host_os%g
1363 s%@target@%$target%g
1364 s%@target_alias@%$target_alias%g
1365 s%@target_cpu@%$target_cpu%g
1366 s%@target_vendor@%$target_vendor%g
1367 s%@target_os@%$target_os%g
1368 s%@build@%$build%g
1369 s%@build_alias@%$build_alias%g
1370 s%@build_cpu@%$build_cpu%g
1371 s%@build_vendor@%$build_vendor%g
1372 s%@build_os@%$build_os%g
1373 s%@CC@%$CC%g
1374 s%@HDEFINES@%$HDEFINES%g
1375 s%@AR@%$AR%g
1376 s%@RANLIB@%$RANLIB%g
1377 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1378 s%@INSTALL_DATA@%$INSTALL_DATA%g
1379 s%@ALLLIBS@%$ALLLIBS%g
1380 s%@PICFLAG@%$PICFLAG%g
1381 s%@SHLIB@%$SHLIB%g
1382 s%@SHLIB_CC@%$SHLIB_CC%g
1383 s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
1384 s%@COMMON_SHLIB@%$COMMON_SHLIB%g
1385 s%@SHLIB_DEP@%$SHLIB_DEP%g
1386 s%@BFD_PICLIST@%$BFD_PICLIST%g
1387 s%@SHLINK@%$SHLINK%g
1388 s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
1389 s%@CPP@%$CPP%g
1390 s%@archdefs@%$archdefs%g
1391 s%@BFD_MACHINES@%$BFD_MACHINES%g
1392
1393 CEOF
1394 EOF
1395 cat >> $CONFIG_STATUS <<EOF
1396
1397 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1398 EOF
1399 cat >> $CONFIG_STATUS <<\EOF
1400 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1401 # Support "outfile[:infile]", defaulting infile="outfile.in".
1402 case "$ac_file" in
1403 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1404 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1405 *) ac_file_in="${ac_file}.in" ;;
1406 esac
1407
1408 # Adjust relative srcdir, etc. for subdirectories.
1409
1410 # Remove last slash and all that follows it. Not all systems have dirname.
1411 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1412 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1413 # The file is in a subdirectory.
1414 test ! -d "$ac_dir" && mkdir "$ac_dir"
1415 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1416 # A "../" for each directory in $ac_dir_suffix.
1417 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1418 else
1419 ac_dir_suffix= ac_dots=
1420 fi
1421
1422 case "$ac_given_srcdir" in
1423 .) srcdir=.
1424 if test -z "$ac_dots"; then top_srcdir=.
1425 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1426 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1427 *) # Relative path.
1428 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1429 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1430 esac
1431
1432 case "$ac_given_INSTALL" in
1433 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1434 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1435 esac
1436 echo creating "$ac_file"
1437 rm -f "$ac_file"
1438 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1439 case "$ac_file" in
1440 *Makefile*) ac_comsub="1i\\
1441 # $configure_input" ;;
1442 *) ac_comsub= ;;
1443 esac
1444 sed -e "$ac_comsub
1445 s%@configure_input@%$configure_input%g
1446 s%@srcdir@%$srcdir%g
1447 s%@top_srcdir@%$top_srcdir%g
1448 s%@INSTALL@%$INSTALL%g
1449 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1450 fi; done
1451 rm -f conftest.subs
1452
1453 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1454 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1455 #
1456 # ac_d sets the value in "#define NAME VALUE" lines.
1457 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1458 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1459 ac_dC='\3'
1460 ac_dD='%g'
1461 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1462 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1463 ac_uB='\([ ]\)%\1#\2define\3'
1464 ac_uC=' '
1465 ac_uD='\4%g'
1466 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1467 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1468 ac_eB='$%\1#\2define\3'
1469 ac_eC=' '
1470 ac_eD='%g'
1471
1472 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config.in"}
1473 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1474 # Support "outfile[:infile]", defaulting infile="outfile.in".
1475 case "$ac_file" in
1476 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1477 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1478 *) ac_file_in="${ac_file}.in" ;;
1479 esac
1480
1481 echo creating $ac_file
1482
1483 rm -f conftest.frag conftest.in conftest.out
1484 cp $ac_given_srcdir/$ac_file_in conftest.in
1485
1486 EOF
1487
1488 # Transform confdefs.h into a sed script conftest.vals that substitutes
1489 # the proper values into config.h.in to produce config.h. And first:
1490 # Protect against being on the right side of a sed subst in config.status.
1491 # Protect against being in an unquoted here document in config.status.
1492 rm -f conftest.vals
1493 cat > conftest.hdr <<\EOF
1494 s/[\\&%]/\\&/g
1495 s%[\\$`]%\\&%g
1496 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1497 s%ac_d%ac_u%gp
1498 s%ac_u%ac_e%gp
1499 EOF
1500 sed -n -f conftest.hdr confdefs.h > conftest.vals
1501 rm -f conftest.hdr
1502
1503 # This sed command replaces #undef with comments. This is necessary, for
1504 # example, in the case of _POSIX_SOURCE, which is predefined and required
1505 # on some systems where configure will not decide to define it.
1506 cat >> conftest.vals <<\EOF
1507 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1508 EOF
1509
1510 # Break up conftest.vals because some shells have a limit on
1511 # the size of here documents, and old seds have small limits too.
1512 # Maximum number of lines to put in a single here document.
1513 ac_max_here_lines=12
1514
1515 rm -f conftest.tail
1516 while :
1517 do
1518 ac_lines=`grep -c . conftest.vals`
1519 # grep -c gives empty output for an empty file on some AIX systems.
1520 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1521 # Write a limited-size here document to conftest.frag.
1522 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1523 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1524 echo 'CEOF
1525 sed -f conftest.frag conftest.in > conftest.out
1526 rm -f conftest.in
1527 mv conftest.out conftest.in
1528 ' >> $CONFIG_STATUS
1529 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1530 rm -f conftest.vals
1531 mv conftest.tail conftest.vals
1532 done
1533 rm -f conftest.vals
1534
1535 cat >> $CONFIG_STATUS <<\EOF
1536 rm -f conftest.frag conftest.h
1537 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1538 cat conftest.in >> conftest.h
1539 rm -f conftest.in
1540 if cmp -s $ac_file conftest.h 2>/dev/null; then
1541 echo "$ac_file is unchanged"
1542 rm -f conftest.h
1543 else
1544 # Remove last slash and all that follows it. Not all systems have dirname.
1545 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1546 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1547 # The file is in a subdirectory.
1548 test ! -d "$ac_dir" && mkdir "$ac_dir"
1549 fi
1550 rm -f $ac_file
1551 mv conftest.h $ac_file
1552 fi
1553 fi; done
1554
1555
1556 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
1557 exit 0
1558 EOF
1559 chmod +x $CONFIG_STATUS
1560 rm -fr confdefs* $ac_clean_files
1561 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1562
This page took 0.067752 seconds and 4 git commands to generate.