* Makefile.am (libopcodes_la_LDFLAGS): Define.
[deliverable/binutils-gdb.git] / opcodes / configure
CommitLineData
c62d1274
ILT
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
a3515171 4# Generated automatically using autoconf version 2.12.1
e3659cbf 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
c62d1274
ILT
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
1daed53f
ILT
15 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
16ac_help="$ac_help
17 --enable-shared build shared libraries [default=yes]"
e0bf1022 18ac_help="$ac_help
1daed53f
ILT
19 --enable-static build static libraries [default=yes]"
20ac_help="$ac_help
21 --enable-targets alternative target configurations"
e0bf1022
ILT
22ac_help="$ac_help
23 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
1daed53f
ILT
24ac_help="$ac_help
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
c62d1274
ILT
27
28# Initialize some variables set by options.
29# The variables have the same names as the options, with
30# dashes changed to underlines.
31build=NONE
32cache_file=./config.cache
33exec_prefix=NONE
34host=NONE
35no_create=
36nonopt=NONE
37no_recursion=
38prefix=NONE
39program_prefix=NONE
40program_suffix=NONE
41program_transform_name=s,x,x,
42silent=
43site=
44srcdir=
45target=NONE
46verbose=
47x_includes=NONE
48x_libraries=NONE
00103dfa
ILT
49bindir='${exec_prefix}/bin'
50sbindir='${exec_prefix}/sbin'
51libexecdir='${exec_prefix}/libexec'
52datadir='${prefix}/share'
53sysconfdir='${prefix}/etc'
54sharedstatedir='${prefix}/com'
55localstatedir='${prefix}/var'
56libdir='${exec_prefix}/lib'
57includedir='${prefix}/include'
58oldincludedir='/usr/include'
59infodir='${prefix}/info'
60mandir='${prefix}/man'
c62d1274
ILT
61
62# Initialize some other variables.
63subdirs=
00103dfa 64MFLAGS= MAKEFLAGS=
cd66558c 65SHELL=${CONFIG_SHELL-/bin/sh}
9c03036a
DE
66# Maximum number of lines to put in a shell here document.
67ac_max_here_lines=12
c62d1274
ILT
68
69ac_prev=
70for ac_option
71do
72
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
76 ac_prev=
77 continue
78 fi
79
80 case "$ac_option" in
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 *) ac_optarg= ;;
83 esac
84
85 # Accept the important Cygnus configure options, so we can diagnose typos.
86
87 case "$ac_option" in
88
00103dfa
ILT
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 ac_prev=bindir ;;
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
93
94 -build | --build | --buil | --bui | --bu)
c62d1274 95 ac_prev=build ;;
00103dfa 96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c62d1274
ILT
97 build="$ac_optarg" ;;
98
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
105
00103dfa
ILT
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 ac_prev=datadir ;;
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 | --da=*)
110 datadir="$ac_optarg" ;;
111
c62d1274
ILT
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 fi
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
120
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 fi
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 case "$ac_option" in
129 *=*) ;;
130 *) ac_optarg=yes ;;
131 esac
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
133
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
142
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
145 with_gas=yes ;;
146
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
150 cat << EOF
151Usage: configure [options] [host]
152Options: [defaults in brackets after descriptions]
153Configuration:
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
161 [$ac_default_prefix]
00103dfa 162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
c62d1274 163 [same as prefix]
00103dfa
ILT
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
168 [PREFIX/share]
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 [PREFIX/com]
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
c62d1274
ILT
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
00103dfa
ILT
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
183EOF
184 cat << EOF
c62d1274
ILT
185Host type:
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
c62d1274 196EOF
00103dfa
ILT
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
199 fi
c62d1274
ILT
200 exit 0 ;;
201
202 -host | --host | --hos | --ho)
203 ac_prev=host ;;
204 -host=* | --host=* | --hos=* | --ho=*)
205 host="$ac_optarg" ;;
206
00103dfa
ILT
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
213
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 ac_prev=infodir ;;
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
218
219 -libdir | --libdir | --libdi | --libd)
220 ac_prev=libdir ;;
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
223
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
230
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
239
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 ac_prev=mandir ;;
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
244
c62d1274
ILT
245 -nfp | --nfp | --nf)
246 # Obsolete; use --without-fp.
247 with_fp=no ;;
248
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 | --no-cr | --no-c)
251 no_create=yes ;;
252
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255 no_recursion=yes ;;
256
00103dfa
ILT
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
265
c62d1274
ILT
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 ac_prev=prefix ;;
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
270
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
277
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
284
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
301
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
304 silent=yes ;;
305
00103dfa
ILT
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 ac_prev=sbindir ;;
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 | --sbi=* | --sb=*)
310 sbindir="$ac_optarg" ;;
311
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
315 | --sha | --sh)
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 | --sha=* | --sh=*)
321 sharedstatedir="$ac_optarg" ;;
322
c62d1274
ILT
323 -site | --site | --sit)
324 ac_prev=site ;;
325 -site=* | --site=* | --sit=*)
326 site="$ac_optarg" ;;
327
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 ac_prev=srcdir ;;
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
332
00103dfa
ILT
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
339
c62d1274
ILT
340 -target | --target | --targe | --targ | --tar | --ta | --t)
341 ac_prev=target ;;
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
344
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 verbose=yes ;;
347
348 -version | --version | --versio | --versi | --vers)
a3515171 349 echo "configure generated by autoconf version 2.12.1"
c62d1274
ILT
350 exit 0 ;;
351
352 -with-* | --with-*)
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 fi
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 case "$ac_option" in
360 *=*) ;;
361 *) ac_optarg=yes ;;
362 esac
363 eval "with_${ac_package}='$ac_optarg'" ;;
364
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 fi
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
373
374 --x)
375 # Obsolete; use --with-x.
376 with_x=yes ;;
377
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
384
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
391
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 ;;
394
00103dfa 395 *)
c62d1274
ILT
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 fi
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 fi
402 nonopt="$ac_option"
403 ;;
404
405 esac
406done
407
408if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410fi
411
412trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
414# File descriptor usage:
415# 0 standard input
416# 1 file creation
417# 2 errors and warnings
418# 3 some systems may open it to /dev/tty
419# 4 used on the Kubota Titan
420# 6 checking for... messages and results
421# 5 compiler messages saved in config.log
422if test "$silent" = yes; then
423 exec 6>/dev/null
424else
425 exec 6>&1
426fi
427exec 5>./config.log
428
429echo "\
430This file contains any messages produced by compilers while
431running configure, to aid debugging if configure makes a mistake.
432" 1>&5
433
434# Strip out --no-create and --no-recursion so they do not pile up.
435# Also quote any args containing shell metacharacters.
436ac_configure_args=
437for ac_arg
438do
439 case "$ac_arg" in
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 esac
448done
449
450# NLS nuisances.
9c03036a
DE
451# Only set these to C if already set. These must not be set unconditionally
452# because not all systems understand e.g. LANG=C (notably SCO).
453# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454# Non-C LC_CTYPE values break the ctype check.
c62d1274 455if test "${LANG+set}" = set; then LANG=C; export LANG; fi
9c03036a
DE
456if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
c62d1274
ILT
459
460# confdefs.h avoids OS command line length limits that DEFS can exceed.
461rm -rf conftest* confdefs.h
462# AIX cpp loses on an empty file, so make sure it contains at least a newline.
463echo > confdefs.h
464
465# A filename unique to this package, relative to the directory that
466# configure is in, which we can look for to find out if srcdir is correct.
467ac_unique_file=z8k-dis.c
468
469# Find the source files, if location was not specified.
470if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
473 ac_prog=$0
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 srcdir=$ac_confdir
477 if test ! -r $srcdir/$ac_unique_file; then
478 srcdir=..
479 fi
480else
481 ac_srcdir_defaulted=no
482fi
483if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 else
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488 fi
489fi
490srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492# Prefer explicitly selected file to automatically selected ones.
493if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 else
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498 fi
499fi
500for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
503 . "$ac_site_file"
504 fi
505done
506
1daed53f
ILT
507if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
509 . $cache_file
510else
511 echo "creating cache $cache_file"
512 > $cache_file
513fi
514
515ac_ext=c
516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517ac_cpp='$CPP $CPPFLAGS'
518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520cross_compiling=$ac_cv_prog_cc_cross
521
522if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
525 ac_n= ac_c='
526' ac_t=' '
527 else
528 ac_n=-n ac_c= ac_t=
529 fi
530else
531 ac_n= ac_c='\c' ac_t=
532fi
533
534
535
536ac_aux_dir=
537for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538 if test -f $ac_dir/install-sh; then
539 ac_aux_dir=$ac_dir
540 ac_install_sh="$ac_aux_dir/install-sh -c"
541 break
542 elif test -f $ac_dir/install.sh; then
543 ac_aux_dir=$ac_dir
544 ac_install_sh="$ac_aux_dir/install.sh -c"
545 break
546 fi
547done
548if test -z "$ac_aux_dir"; then
549 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550fi
551ac_config_guess=$ac_aux_dir/config.guess
552ac_config_sub=$ac_aux_dir/config.sub
553ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554
555
556# Do some error checking and defaulting for the host and target type.
557# The inputs are:
558# configure --host=HOST --target=TARGET --build=BUILD NONOPT
559#
560# The rules are:
561# 1. You are not allowed to specify --host, --target, and nonopt at the
562# same time.
563# 2. Host defaults to nonopt.
564# 3. If nonopt is not specified, then host defaults to the current host,
565# as determined by config.guess.
566# 4. Target and build default to nonopt.
567# 5. If nonopt is not specified, then target and build default to host.
568
569# The aliases save the names the user supplied, while $host etc.
570# will get canonicalized.
571case $host---$target---$nonopt in
572NONE---*---* | *---NONE---* | *---*---NONE) ;;
573*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
574esac
575
576
577# Make sure we can run config.sub.
a3515171 578if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1daed53f
ILT
579else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
580fi
581
582echo $ac_n "checking host system type""... $ac_c" 1>&6
788e3f91 583echo "configure:584: checking host system type" >&5
1daed53f
ILT
584
585host_alias=$host
586case "$host_alias" in
587NONE)
588 case $nonopt in
589 NONE)
a3515171 590 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1daed53f
ILT
591 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
592 fi ;;
593 *) host_alias=$nonopt ;;
594 esac ;;
595esac
596
a3515171 597host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1daed53f
ILT
598host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
599host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
600host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
601echo "$ac_t""$host" 1>&6
602
603echo $ac_n "checking target system type""... $ac_c" 1>&6
788e3f91 604echo "configure:605: checking target system type" >&5
1daed53f
ILT
605
606target_alias=$target
607case "$target_alias" in
608NONE)
609 case $nonopt in
610 NONE) target_alias=$host_alias ;;
611 *) target_alias=$nonopt ;;
612 esac ;;
613esac
614
a3515171 615target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1daed53f
ILT
616target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
617target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
618target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
619echo "$ac_t""$target" 1>&6
620
621echo $ac_n "checking build system type""... $ac_c" 1>&6
788e3f91 622echo "configure:623: checking build system type" >&5
1daed53f
ILT
623
624build_alias=$build
625case "$build_alias" in
626NONE)
627 case $nonopt in
628 NONE) build_alias=$host_alias ;;
629 *) build_alias=$nonopt ;;
630 esac ;;
631esac
632
a3515171 633build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1daed53f
ILT
634build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
635build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
636build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
637echo "$ac_t""$build" 1>&6
638
639test "$host_alias" != "$target_alias" &&
640 test "$program_prefix$program_suffix$program_transform_name" = \
641 NONENONEs,x,x, &&
642 program_prefix=${target_alias}-
643
644
645# Find a good install program. We prefer a C program (faster),
646# so one script is as good as another. But avoid the broken or
647# incompatible versions:
648# SysV /etc/install, /usr/sbin/install
649# SunOS /usr/etc/install
650# IRIX /sbin/install
651# AIX /bin/install
cd66558c 652# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1daed53f
ILT
653# AFS /usr/afsws/bin/install, which mishandles nonexistent args
654# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
655# ./install, which can be erroneously created by make from ./install.sh.
656echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
788e3f91 657echo "configure:658: checking for a BSD compatible install" >&5
1daed53f
ILT
658if test -z "$INSTALL"; then
659if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
661else
662 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
663 for ac_dir in $PATH; do
664 # Account for people who put trailing slashes in PATH elements.
665 case "$ac_dir/" in
666 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
667 *)
668 # OSF1 and SCO ODT 3.0 have their own names for install.
cd66558c
NC
669 # Don't use installbsd from OSF since it installs stuff as root
670 # by default.
671 for ac_prog in ginstall scoinst install; do
1daed53f
ILT
672 if test -f $ac_dir/$ac_prog; then
673 if test $ac_prog = install &&
674 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
675 # AIX install. It has an incompatible calling convention.
1daed53f
ILT
676 :
677 else
678 ac_cv_path_install="$ac_dir/$ac_prog -c"
679 break 2
680 fi
681 fi
682 done
683 ;;
684 esac
685 done
686 IFS="$ac_save_IFS"
687
688fi
689 if test "${ac_cv_path_install+set}" = set; then
690 INSTALL="$ac_cv_path_install"
691 else
692 # As a last resort, use the slow shell script. We don't cache a
693 # path for INSTALL within a source directory, because that will
694 # break other packages using the cache if that directory is
695 # removed, or if the path is relative.
696 INSTALL="$ac_install_sh"
697 fi
698fi
699echo "$ac_t""$INSTALL" 1>&6
700
701# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
702# It thinks the first close brace ends the variable substitution.
703test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
704
705test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
706
707
708test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
709
710
711PACKAGE=opcodes
712
713VERSION=2.8.2
714
715if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
716 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
717fi
718cat >> confdefs.h <<EOF
719#define PACKAGE "$PACKAGE"
720EOF
721
722cat >> confdefs.h <<EOF
723#define VERSION "$VERSION"
724EOF
725
726echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
788e3f91 727echo "configure:728: checking whether build environment is sane" >&5
1daed53f
ILT
728# Just in case
729sleep 1
730echo timestamp > conftestfile
731# Do `set' in a subshell so we don't clobber the current shell's
732# arguments. Must try -L first in case configure is actually a
733# symlink; some systems play weird games with the mod time of symlinks
734# (eg FreeBSD returns the mod time of the symlink's containing
735# directory).
736if (
737 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
738 if test "" = "X"; then
739 # -L didn't work.
740 set X `ls -t $srcdir/configure conftestfile`
741 fi
742 test "$2" = conftestfile
743 )
744then
745 # Ok.
746 :
747else
748 { echo "configure: error: newly created file is older than distributed files!
749Check your system clock" 1>&2; exit 1; }
750fi
751rm -f conftest*
752echo "$ac_t""yes" 1>&6
753if test "$program_transform_name" = s,x,x,; then
754 program_transform_name=
755else
756 # Double any \ or $. echo might interpret backslashes.
757 cat <<\EOF_SED > conftestsed
758s,\\,\\\\,g; s,\$,$$,g
759EOF_SED
760 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
761 rm -f conftestsed
762fi
763test "$program_prefix" != NONE &&
764 program_transform_name="s,^,${program_prefix},; $program_transform_name"
765# Use a double $ so make ignores it.
766test "$program_suffix" != NONE &&
767 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
768
769# sed with no file args requires a program.
770test "$program_transform_name" = "" && program_transform_name="s,x,x,"
771
772missing_dir=`cd $ac_aux_dir && pwd`
773echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
788e3f91 774echo "configure:775: checking for working aclocal" >&5
1daed53f
ILT
775# Run test in a subshell; some versions of sh will print an error if
776# an executable is not found, even if stderr is redirected.
777# Redirect stdin to placate older versions of autoconf. Sigh.
778if (aclocal --version) < /dev/null > /dev/null 2>&1; then
779 ACLOCAL=aclocal
780 echo "$ac_t""found" 1>&6
781else
782 ACLOCAL="$missing_dir/missing aclocal"
783 echo "$ac_t""missing" 1>&6
784fi
785
786echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
788e3f91 787echo "configure:788: checking for working autoconf" >&5
1daed53f
ILT
788# Run test in a subshell; some versions of sh will print an error if
789# an executable is not found, even if stderr is redirected.
790# Redirect stdin to placate older versions of autoconf. Sigh.
791if (autoconf --version) < /dev/null > /dev/null 2>&1; then
792 AUTOCONF=autoconf
793 echo "$ac_t""found" 1>&6
794else
795 AUTOCONF="$missing_dir/missing autoconf"
796 echo "$ac_t""missing" 1>&6
797fi
798
799echo $ac_n "checking for working automake""... $ac_c" 1>&6
788e3f91 800echo "configure:801: checking for working automake" >&5
1daed53f
ILT
801# Run test in a subshell; some versions of sh will print an error if
802# an executable is not found, even if stderr is redirected.
803# Redirect stdin to placate older versions of autoconf. Sigh.
804if (automake --version) < /dev/null > /dev/null 2>&1; then
805 AUTOMAKE=automake
806 echo "$ac_t""found" 1>&6
807else
808 AUTOMAKE="$missing_dir/missing automake"
809 echo "$ac_t""missing" 1>&6
810fi
811
812echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
788e3f91 813echo "configure:814: checking for working autoheader" >&5
1daed53f
ILT
814# Run test in a subshell; some versions of sh will print an error if
815# an executable is not found, even if stderr is redirected.
816# Redirect stdin to placate older versions of autoconf. Sigh.
817if (autoheader --version) < /dev/null > /dev/null 2>&1; then
818 AUTOHEADER=autoheader
819 echo "$ac_t""found" 1>&6
820else
821 AUTOHEADER="$missing_dir/missing autoheader"
822 echo "$ac_t""missing" 1>&6
823fi
824
825echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
788e3f91 826echo "configure:827: checking for working makeinfo" >&5
1daed53f
ILT
827# Run test in a subshell; some versions of sh will print an error if
828# an executable is not found, even if stderr is redirected.
829# Redirect stdin to placate older versions of autoconf. Sigh.
830if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
831 MAKEINFO=makeinfo
832 echo "$ac_t""found" 1>&6
833else
834 MAKEINFO="$missing_dir/missing makeinfo"
835 echo "$ac_t""missing" 1>&6
836fi
837
838echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
788e3f91 839echo "configure:840: checking whether ${MAKE-make} sets \${MAKE}" >&5
1daed53f
ILT
840set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
841if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
843else
844 cat > conftestmake <<\EOF
845all:
846 @echo 'ac_maketemp="${MAKE}"'
847EOF
848# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
849eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
850if test -n "$ac_maketemp"; then
851 eval ac_cv_prog_make_${ac_make}_set=yes
852else
853 eval ac_cv_prog_make_${ac_make}_set=no
854fi
855rm -f conftestmake
856fi
857if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
858 echo "$ac_t""yes" 1>&6
859 SET_MAKE=
860else
861 echo "$ac_t""no" 1>&6
862 SET_MAKE="MAKE=${MAKE-make}"
863fi
864
865
cd66558c
NC
866if test $host != $build; then
867 ac_tool_prefix=${host_alias}-
868else
869 ac_tool_prefix=
870fi
871
872# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
873set dummy ${ac_tool_prefix}ar; ac_word=$2
874echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
788e3f91 875echo "configure:876: checking for $ac_word" >&5
cd66558c
NC
876if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
878else
879 if test -n "$AR"; then
880 ac_cv_prog_AR="$AR" # Let the user override the test.
881else
882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
883 for ac_dir in $PATH; do
884 test -z "$ac_dir" && ac_dir=.
885 if test -f $ac_dir/$ac_word; then
886 ac_cv_prog_AR="${ac_tool_prefix}ar"
887 break
888 fi
889 done
890 IFS="$ac_save_ifs"
891 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
892fi
893fi
894AR="$ac_cv_prog_AR"
895if test -n "$AR"; then
896 echo "$ac_t""$AR" 1>&6
897else
898 echo "$ac_t""no" 1>&6
899fi
900
901
902
903# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
904set dummy ${ac_tool_prefix}ranlib; ac_word=$2
905echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
788e3f91 906echo "configure:907: checking for $ac_word" >&5
cd66558c
NC
907if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
909else
910 if test -n "$RANLIB"; then
911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
912else
913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
914 for ac_dir in $PATH; do
915 test -z "$ac_dir" && ac_dir=.
916 if test -f $ac_dir/$ac_word; then
917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
918 break
919 fi
920 done
921 IFS="$ac_save_ifs"
922fi
923fi
924RANLIB="$ac_cv_prog_RANLIB"
925if test -n "$RANLIB"; then
926 echo "$ac_t""$RANLIB" 1>&6
927else
928 echo "$ac_t""no" 1>&6
929fi
930
931
932if test -z "$ac_cv_prog_RANLIB"; then
933if test -n "$ac_tool_prefix"; then
934 # Extract the first word of "ranlib", so it can be a program name with args.
935set dummy ranlib; ac_word=$2
936echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
788e3f91 937echo "configure:938: checking for $ac_word" >&5
cd66558c
NC
938if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
940else
941 if test -n "$RANLIB"; then
942 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
943else
944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
945 for ac_dir in $PATH; do
946 test -z "$ac_dir" && ac_dir=.
947 if test -f $ac_dir/$ac_word; then
948 ac_cv_prog_RANLIB="ranlib"
949 break
950 fi
951 done
952 IFS="$ac_save_ifs"
953 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
954fi
955fi
956RANLIB="$ac_cv_prog_RANLIB"
957if test -n "$RANLIB"; then
958 echo "$ac_t""$RANLIB" 1>&6
959else
960 echo "$ac_t""no" 1>&6
961fi
962
963else
964 RANLIB=":"
965fi
966fi
967
968
788e3f91
ILT
969libtool_enable_shared=no
970
971# Extract the first word of "ranlib", so it can be a program name with args.
972set dummy ranlib; ac_word=$2
973echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974echo "configure:975: checking for $ac_word" >&5
975if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
977else
978 if test -n "$RANLIB"; then
979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
980else
981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
982 for ac_dir in $PATH; do
983 test -z "$ac_dir" && ac_dir=.
984 if test -f $ac_dir/$ac_word; then
985 ac_cv_prog_RANLIB="ranlib"
986 break
987 fi
988 done
989 IFS="$ac_save_ifs"
990 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
991fi
992fi
993RANLIB="$ac_cv_prog_RANLIB"
994if test -n "$RANLIB"; then
995 echo "$ac_t""$RANLIB" 1>&6
996else
997 echo "$ac_t""no" 1>&6
998fi
999
1daed53f
ILT
1000# Extract the first word of "gcc", so it can be a program name with args.
1001set dummy gcc; ac_word=$2
1002echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
788e3f91 1003echo "configure:1004: checking for $ac_word" >&5
1daed53f
ILT
1004if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1005 echo $ac_n "(cached) $ac_c" 1>&6
1006else
1007 if test -n "$CC"; then
1008 ac_cv_prog_CC="$CC" # Let the user override the test.
1009else
1010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1011 for ac_dir in $PATH; do
1012 test -z "$ac_dir" && ac_dir=.
1013 if test -f $ac_dir/$ac_word; then
1014 ac_cv_prog_CC="gcc"
1015 break
1016 fi
1017 done
1018 IFS="$ac_save_ifs"
1019fi
1020fi
1021CC="$ac_cv_prog_CC"
1022if test -n "$CC"; then
1023 echo "$ac_t""$CC" 1>&6
1024else
1025 echo "$ac_t""no" 1>&6
1026fi
1027
1028if test -z "$CC"; then
1029 # Extract the first word of "cc", so it can be a program name with args.
1030set dummy cc; ac_word=$2
1031echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
788e3f91 1032echo "configure:1033: checking for $ac_word" >&5
1daed53f
ILT
1033if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1035else
1036 if test -n "$CC"; then
1037 ac_cv_prog_CC="$CC" # Let the user override the test.
1038else
1039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1040 ac_prog_rejected=no
1041 for ac_dir in $PATH; do
1042 test -z "$ac_dir" && ac_dir=.
1043 if test -f $ac_dir/$ac_word; then
1044 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1045 ac_prog_rejected=yes
1046 continue
1047 fi
1048 ac_cv_prog_CC="cc"
1049 break
1050 fi
1051 done
1052 IFS="$ac_save_ifs"
1053if test $ac_prog_rejected = yes; then
1054 # We found a bogon in the path, so make sure we never use it.
1055 set dummy $ac_cv_prog_CC
1056 shift
1057 if test $# -gt 0; then
1058 # We chose a different compiler from the bogus one.
1059 # However, it has the same basename, so the bogon will be chosen
1060 # first if we set CC to just the basename; use the full file name.
1061 shift
1062 set dummy "$ac_dir/$ac_word" "$@"
1063 shift
1064 ac_cv_prog_CC="$@"
1065 fi
1066fi
1067fi
1068fi
1069CC="$ac_cv_prog_CC"
1070if test -n "$CC"; then
1071 echo "$ac_t""$CC" 1>&6
1072else
1073 echo "$ac_t""no" 1>&6
1074fi
1075
1076 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1077fi
1078
1079echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
788e3f91 1080echo "configure:1081: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1daed53f
ILT
1081
1082ac_ext=c
1083# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1084ac_cpp='$CPP $CPPFLAGS'
1085ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1086ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1087cross_compiling=$ac_cv_prog_cc_cross
1088
1089cat > conftest.$ac_ext <<EOF
788e3f91 1090#line 1091 "configure"
1daed53f
ILT
1091#include "confdefs.h"
1092main(){return(0);}
1093EOF
788e3f91 1094if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1daed53f
ILT
1095 ac_cv_prog_cc_works=yes
1096 # If we can't run a trivial program, we are probably using a cross compiler.
1097 if (./conftest; exit) 2>/dev/null; then
1098 ac_cv_prog_cc_cross=no
1099 else
1100 ac_cv_prog_cc_cross=yes
1101 fi
1102else
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1105 ac_cv_prog_cc_works=no
1106fi
1107rm -fr conftest*
1108
1109echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1110if test $ac_cv_prog_cc_works = no; then
1111 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1112fi
1113echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
788e3f91 1114echo "configure:1115: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1daed53f
ILT
1115echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1116cross_compiling=$ac_cv_prog_cc_cross
1117
1118echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
788e3f91 1119echo "configure:1120: checking whether we are using GNU C" >&5
1daed53f
ILT
1120if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1122else
1123 cat > conftest.c <<EOF
1124#ifdef __GNUC__
1125 yes;
1126#endif
1127EOF
788e3f91 1128if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1daed53f
ILT
1129 ac_cv_prog_gcc=yes
1130else
1131 ac_cv_prog_gcc=no
1132fi
1133fi
1134
1135echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1136
1137if test $ac_cv_prog_gcc = yes; then
1138 GCC=yes
1139 ac_test_CFLAGS="${CFLAGS+set}"
1140 ac_save_CFLAGS="$CFLAGS"
1141 CFLAGS=
1142 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
788e3f91 1143echo "configure:1144: checking whether ${CC-cc} accepts -g" >&5
1daed53f
ILT
1144if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1146else
1147 echo 'void f(){}' > conftest.c
1148if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1149 ac_cv_prog_cc_g=yes
1150else
1151 ac_cv_prog_cc_g=no
1152fi
1153rm -f conftest*
1154
1155fi
1156
1157echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1158 if test "$ac_test_CFLAGS" = set; then
1159 CFLAGS="$ac_save_CFLAGS"
1160 elif test $ac_cv_prog_cc_g = yes; then
1161 CFLAGS="-g -O2"
1162 else
1163 CFLAGS="-O2"
1164 fi
1165else
1166 GCC=
1167 test "${CFLAGS+set}" = set || CFLAGS="-g"
1168fi
1169
1daed53f
ILT
1170# Check whether --with-gnu-ld or --without-gnu-ld was given.
1171if test "${with_gnu_ld+set}" = set; then
1172 withval="$with_gnu_ld"
1173 test "$withval" = no || with_gnu_ld=yes
1174else
1175 with_gnu_ld=no
1176fi
1177
788e3f91
ILT
1178
1179ac_prog=ld
1180if test "$ac_cv_prog_gcc" = yes; then
1181 # Check if gcc -print-prog-name=ld gives a path.
1182 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1183echo "configure:1184: checking for ld used by GCC" >&5
1184 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1185 case "$ac_prog" in
1186 # Accept absolute paths.
1187 /*)
1188 test -z "$LD" && LD="$ac_prog"
1189 ;;
1190 "")
1191 # If it fails, then pretend we aren't using GCC.
1192 ac_prog=ld
1193 ;;
1194 *)
1195 # If it is relative, then search for the first ld in PATH.
1196 with_gnu_ld=unknown
1197 ;;
1198 esac
1199elif test "$with_gnu_ld" = yes; then
1daed53f 1200 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
788e3f91 1201echo "configure:1202: checking for GNU ld" >&5
1daed53f
ILT
1202else
1203 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
788e3f91 1204echo "configure:1205: checking for non-GNU ld" >&5
1daed53f
ILT
1205fi
1206if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1208else
788e3f91 1209 if test -z "$LD"; then
1daed53f
ILT
1210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1211 for ac_dir in $PATH; do
1212 test -z "$ac_dir" && ac_dir=.
788e3f91
ILT
1213 if test -f "$ac_dir/$ac_prog"; then
1214 ac_cv_path_LD="$ac_dir/$ac_prog"
1daed53f
ILT
1215 # Check to see if the program is GNU ld. I'd rather use --version,
1216 # but apparently some GNU ld's only accept -v.
1217 # Break only if it was the GNU/non-GNU ld that we prefer.
788e3f91
ILT
1218 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1219 test "$with_gnu_ld" != no && break
1daed53f
ILT
1220 else
1221 test "$with_gnu_ld" != yes && break
1222 fi
1223 fi
1224 done
1225 IFS="$ac_save_ifs"
788e3f91 1226else
af36ce35 1227 ac_cv_path_LD="$LD" # Let the user override the test with a path.
788e3f91 1228fi
1daed53f
ILT
1229fi
1230
1231LD="$ac_cv_path_LD"
1232if test -n "$LD"; then
1233 echo "$ac_t""$LD" 1>&6
1234else
1235 echo "$ac_t""no" 1>&6
1236fi
1237test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1238
788e3f91
ILT
1239echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1240echo "configure:1241: checking if the linker ($LD) is GNU ld" >&5
1daed53f
ILT
1241if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1243else
1244 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
788e3f91 1245if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1daed53f
ILT
1246 ac_cv_prog_gnu_ld=yes
1247else
1248 ac_cv_prog_gnu_ld=no
1249fi
1250fi
1251
1252echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1253
1254
788e3f91
ILT
1255echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1256echo "configure:1257: checking for BSD-compatible nm" >&5
1257if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1259else
1260 case "$NM" in
1261/*)
1262 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1263 ;;
1264*)
1265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1266 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1267 test -z "$ac_dir" && dir=.
1268 if test -f $ac_dir/nm; then
1269 # Check to see if the nm accepts a BSD-compat flag.
1270 # Adding the `sed 1!d' prevents false positives on HP-UX, which says:
1271 # nm: unknown option "B" ignored
1272 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1!d'; exit 0) | egrep /dev/null >/dev/null; then
1273 ac_cv_path_NM="$ac_dir/nm -B"
1274 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1!d'; exit 0) | egrep /dev/null >/dev/null; then
1275 ac_cv_path_NM="$ac_dir/nm -p"
1276 else
1277 ac_cv_path_NM="$ac_dir/nm"
1278 fi
1279 break
1280 fi
1281 done
1282 IFS="$ac_save_ifs"
1283 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1284 ;;
1285esac
1286fi
1287
1288NM="$ac_cv_path_NM"
1289echo "$ac_t""$NM" 1>&6
1290
1291
1daed53f 1292echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
788e3f91 1293echo "configure:1294: checking whether ln -s works" >&5
1daed53f
ILT
1294if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1296else
1297 rm -f conftestdata
1298if ln -s X conftestdata 2>/dev/null
1299then
1300 rm -f conftestdata
1301 ac_cv_prog_LN_S="ln -s"
1302else
1303 ac_cv_prog_LN_S=ln
1304fi
1305fi
1306LN_S="$ac_cv_prog_LN_S"
1307if test "$ac_cv_prog_LN_S" = "ln -s"; then
1308 echo "$ac_t""yes" 1>&6
1309else
1310 echo "$ac_t""no" 1>&6
1311fi
1312
1313
1314
1315
1316
1317
1318
788e3f91 1319
1daed53f 1320# Always use our own libtool.
bfc10abe 1321LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1daed53f
ILT
1322
1323
1324# Check whether --enable-shared or --disable-shared was given.
1325if test "${enable_shared+set}" = set; then
1326 enableval="$enable_shared"
ea0c3c6c
DE
1327 p=${PACKAGE-bogus-package-name}
1328 case "$enableval" in
788e3f91
ILT
1329 yes) libtool_enable_shared=yes ;;
1330 no) libtool_enable_shared=no ;;
ea0c3c6c
DE
1331 # The value of $p (aka $PACKAGE) is assumed to come from AM_INIT_AUTOMAKE.
1332 # If it didn't, it'll be `bogus-package-name', thus making this condition
1333 # not be used.
788e3f91
ILT
1334 *$p*) libtool_enable_shared=yes ;;
1335 *) libtool_enable_shared=no ;;
ea0c3c6c 1336esac
c62d1274
ILT
1337fi
1338
788e3f91 1339test -n "$libtool_enable_shared" && enable_shared="$libtool_enable_shared"
2f403ada
ILT
1340libtool_shared=
1341test "$enable_shared" = no && libtool_shared=" --disable-shared"
c62d1274 1342
1daed53f
ILT
1343# Check whether --enable-static or --disable-static was given.
1344if test "${enable_static+set}" = set; then
1345 enableval="$enable_static"
2f403ada 1346 if test "$enableval" = no; then
788e3f91 1347 libtool_enable_static=no
c62d1274 1348else
788e3f91 1349 libtool_enable_static=yes
2f403ada 1350fi
c62d1274
ILT
1351fi
1352
788e3f91 1353test -n "$libtool_enable_static" && enable_static="$libtool_enable_static"
2f403ada
ILT
1354libtool_static=
1355test "$enable_static" = no && libtool_static=" --disable-static"
c62d1274 1356
1daed53f
ILT
1357libtool_flags="$libtool_shared$libtool_static"
1358test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1359test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1360test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1361
1362# Some flags need to be propagated to the compiler or linker for good
1363# libtool support.
1364case "$host" in
1365*-*-irix6*)
2f403ada 1366 ac_save_CFLAGS="$CFLAGS"
788e3f91
ILT
1367 flag_passed=no
1368 for f in -32 -64 -n32 ABI -cckr -mips1 -mips2 -mips3 -mips4; do
1369 case "$f" in
1370 ABI)
1371 test -n "$SGI_ABI" && flag_passed=yes
1372 if test "$flag_passed" = no && test "$ac_cv_prog_gcc" = yes; then
1373 # Choose the ABI flag according to GCC's specs.
1374 if $CC -dumpspecs 2>&1 | sed '/^\*link:$/,/^$/!d' | egrep -e '[ ]-32' >/dev/null; then
1375 LD="${LD-ld} -32"
1376 else
1377 LD="${LD-ld} -n32"
1378 fi
1379 fi
1380 ;;
1381
1382 *)
1383 if echo " $CC $CFLAGS " | egrep -e "[ ]$f[ ]" > /dev/null; then
1384 flag_passed=yes
1385 LD="${LD-ld} $f"
1386 fi
1387 ;;
1388 esac
1daed53f 1389 done
2f403ada 1390 CFLAGS="$ac_save_CFLAGS"
1daed53f
ILT
1391 ;;
1392
1393*-*-sco3.2v5*)
1394 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1395 CFLAGS="$CFLAGS -belf"
1396 ;;
1397esac
1398
1399# Actually configure libtool. ac_aux_dir is where install-sh is found.
1400CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
788e3f91 1401LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1daed53f
ILT
1402${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1403$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1404|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1405
c62d1274
ILT
1406
1407# Check whether --enable-targets or --disable-targets was given.
00103dfa
ILT
1408if test "${enable_targets+set}" = set; then
1409 enableval="$enable_targets"
c62d1274
ILT
1410 case "${enableval}" in
1411 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1412 ;;
1413 no) enable_targets= ;;
1414 *) enable_targets=$enableval ;;
1415esac
1416fi
e0bf1022
ILT
1417# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1418if test "${enable_commonbfdlib+set}" = set; then
1419 enableval="$enable_commonbfdlib"
1420 case "${enableval}" in
1421 yes) commonbfdlib=true ;;
1422 no) commonbfdlib=false ;;
1423 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
1424esac
1425fi
c62d1274 1426
824155e8
ILT
1427
1428
824155e8 1429
824155e8
ILT
1430
1431if test -z "$target" ; then
1432 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1433fi
46bcd2ec
ILT
1434if test "$program_transform_name" = s,x,x,; then
1435 program_transform_name=
1436else
1437 # Double any \ or $. echo might interpret backslashes.
1438 cat <<\EOF_SED > conftestsed
1439s,\\,\\\\,g; s,\$,$$,g
1440EOF_SED
1441 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1442 rm -f conftestsed
1443fi
1444test "$program_prefix" != NONE &&
1445 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1446# Use a double $ so make ignores it.
1447test "$program_suffix" != NONE &&
1448 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1449
1450# sed with no file args requires a program.
1451test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1452
824155e8 1453
1daed53f 1454echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
788e3f91 1455echo "configure:1456: checking whether to enable maintainer-specific portions of Makefiles" >&5
1daed53f
ILT
1456 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1457if test "${enable_maintainer_mode+set}" = set; then
1458 enableval="$enable_maintainer_mode"
1459 USE_MAINTAINER_MODE=$enableval
1460else
1461 USE_MAINTAINER_MODE=no
1462fi
c62d1274 1463
1daed53f
ILT
1464 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1465 if test $USE_MAINTAINER_MODE = yes; then
1466 MAINT=
e0bf1022 1467 else
1daed53f 1468 MAINT='#M#'
e0bf1022 1469 fi
1daed53f
ILT
1470
1471
1472echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
788e3f91 1473echo "configure:1474: checking for Cygwin32 environment" >&5
1daed53f
ILT
1474if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1476else
1477 cat > conftest.$ac_ext <<EOF
788e3f91 1478#line 1479 "configure"
1daed53f
ILT
1479#include "confdefs.h"
1480
1481int main() {
af36ce35 1482return __CYGWIN32__;
1daed53f
ILT
1483; return 0; }
1484EOF
788e3f91 1485if { (eval echo configure:1486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1daed53f
ILT
1486 rm -rf conftest*
1487 am_cv_cygwin32=yes
1488else
1489 echo "configure: failed program was:" >&5
1490 cat conftest.$ac_ext >&5
1491 rm -rf conftest*
1492 am_cv_cygwin32=no
e0bf1022 1493fi
1daed53f
ILT
1494rm -f conftest*
1495rm -f conftest*
1496fi
1497
1498echo "$ac_t""$am_cv_cygwin32" 1>&6
1499CYGWIN32=
1500test "$am_cv_cygwin32" = yes && CYGWIN32=yes
af36ce35 1501echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
788e3f91 1502echo "configure:1503: checking for Mingw32 environment" >&5
af36ce35
ILT
1503if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1505else
1506 cat > conftest.$ac_ext <<EOF
788e3f91 1507#line 1508 "configure"
af36ce35
ILT
1508#include "confdefs.h"
1509
1510int main() {
1511return __MINGW32__;
1512; return 0; }
1513EOF
788e3f91 1514if { (eval echo configure:1515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af36ce35
ILT
1515 rm -rf conftest*
1516 am_cv_mingw32=yes
1517else
1518 echo "configure: failed program was:" >&5
1519 cat conftest.$ac_ext >&5
1520 rm -rf conftest*
1521 am_cv_mingw32=no
1522fi
1523rm -f conftest*
1524rm -f conftest*
1525fi
1526
1527echo "$ac_t""$am_cv_mingw32" 1>&6
1528MINGW32=
1529test "$am_cv_mingw32" = yes && MINGW32=yes
1530
2b0c643b 1531
1daed53f 1532echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
788e3f91 1533echo "configure:1534: checking for executable suffix" >&5
1daed53f
ILT
1534if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1536else
af36ce35
ILT
1537
1538if test "$CYGWIN32" = yes -o "$MINGW32" = yes; then
1daed53f
ILT
1539am_cv_exeext=.exe
1540else
1541cat > am_c_test.c << 'EOF'
1542int main() {
1543/* Nothing needed here */
1544}
1545EOF
1546${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
2b0c643b 1547am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1daed53f
ILT
1548rm -f am_c_test*
1549fi
1550
1551test x"${am_cv_exeext}" = x && am_cv_exeext=no
1552fi
1553EXEEXT=""
1554test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1555echo "$ac_t""${am_cv_exeext}" 1>&6
1556
1557
1558# host-specific stuff:
e0bf1022 1559
00103dfa
ILT
1560# Extract the first word of "gcc", so it can be a program name with args.
1561set dummy gcc; ac_word=$2
1562echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
788e3f91 1563echo "configure:1564: checking for $ac_word" >&5
00103dfa
ILT
1564if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1566else
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1569else
1570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1571 for ac_dir in $PATH; do
1572 test -z "$ac_dir" && ac_dir=.
1573 if test -f $ac_dir/$ac_word; then
1574 ac_cv_prog_CC="gcc"
1575 break
1576 fi
1577 done
1578 IFS="$ac_save_ifs"
00103dfa
ILT
1579fi
1580fi
1581CC="$ac_cv_prog_CC"
1582if test -n "$CC"; then
1583 echo "$ac_t""$CC" 1>&6
1584else
1585 echo "$ac_t""no" 1>&6
1586fi
1587
7919b9ec
ILT
1588if test -z "$CC"; then
1589 # Extract the first word of "cc", so it can be a program name with args.
1590set dummy cc; ac_word=$2
1591echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
788e3f91 1592echo "configure:1593: checking for $ac_word" >&5
7919b9ec
ILT
1593if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1595else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598else
1599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1600 ac_prog_rejected=no
1601 for ac_dir in $PATH; do
1602 test -z "$ac_dir" && ac_dir=.
1603 if test -f $ac_dir/$ac_word; then
1604 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1605 ac_prog_rejected=yes
1606 continue
1607 fi
1608 ac_cv_prog_CC="cc"
1609 break
1610 fi
1611 done
1612 IFS="$ac_save_ifs"
1613if test $ac_prog_rejected = yes; then
1614 # We found a bogon in the path, so make sure we never use it.
1615 set dummy $ac_cv_prog_CC
1616 shift
1617 if test $# -gt 0; then
1618 # We chose a different compiler from the bogus one.
1619 # However, it has the same basename, so the bogon will be chosen
1620 # first if we set CC to just the basename; use the full file name.
1621 shift
1622 set dummy "$ac_dir/$ac_word" "$@"
1623 shift
1624 ac_cv_prog_CC="$@"
1625 fi
1626fi
1627fi
1628fi
1629CC="$ac_cv_prog_CC"
1630if test -n "$CC"; then
1631 echo "$ac_t""$CC" 1>&6
1632else
1633 echo "$ac_t""no" 1>&6
1634fi
1635
1636 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1637fi
c62d1274 1638
9c03036a 1639echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
788e3f91 1640echo "configure:1641: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9c03036a
DE
1641
1642ac_ext=c
1643# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1644ac_cpp='$CPP $CPPFLAGS'
1645ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1646ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1647cross_compiling=$ac_cv_prog_cc_cross
1648
1649cat > conftest.$ac_ext <<EOF
788e3f91 1650#line 1651 "configure"
9c03036a
DE
1651#include "confdefs.h"
1652main(){return(0);}
1653EOF
788e3f91 1654if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9c03036a
DE
1655 ac_cv_prog_cc_works=yes
1656 # If we can't run a trivial program, we are probably using a cross compiler.
1657 if (./conftest; exit) 2>/dev/null; then
1658 ac_cv_prog_cc_cross=no
1659 else
1660 ac_cv_prog_cc_cross=yes
1661 fi
1662else
1663 echo "configure: failed program was:" >&5
1664 cat conftest.$ac_ext >&5
1665 ac_cv_prog_cc_works=no
1666fi
1667rm -fr conftest*
1668
1669echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1670if test $ac_cv_prog_cc_works = no; then
1671 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1672fi
1673echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
788e3f91 1674echo "configure:1675: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9c03036a
DE
1675echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1676cross_compiling=$ac_cv_prog_cc_cross
1677
00103dfa 1678echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
788e3f91 1679echo "configure:1680: checking whether we are using GNU C" >&5
00103dfa
ILT
1680if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1682else
1683 cat > conftest.c <<EOF
c62d1274
ILT
1684#ifdef __GNUC__
1685 yes;
1686#endif
1687EOF
788e3f91 1688if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
00103dfa
ILT
1689 ac_cv_prog_gcc=yes
1690else
1691 ac_cv_prog_gcc=no
1692fi
1693fi
1694
1695echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9c03036a 1696
00103dfa 1697if test $ac_cv_prog_gcc = yes; then
c62d1274 1698 GCC=yes
9c03036a
DE
1699 ac_test_CFLAGS="${CFLAGS+set}"
1700 ac_save_CFLAGS="$CFLAGS"
1701 CFLAGS=
1702 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
788e3f91 1703echo "configure:1704: checking whether ${CC-cc} accepts -g" >&5
9c03036a 1704if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
00103dfa
ILT
1705 echo $ac_n "(cached) $ac_c" 1>&6
1706else
1707 echo 'void f(){}' > conftest.c
1708if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9c03036a 1709 ac_cv_prog_cc_g=yes
00103dfa 1710else
9c03036a 1711 ac_cv_prog_cc_g=no
00103dfa
ILT
1712fi
1713rm -f conftest*
1714
1715fi
1716
9c03036a
DE
1717echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1718 if test "$ac_test_CFLAGS" = set; then
1719 CFLAGS="$ac_save_CFLAGS"
1720 elif test $ac_cv_prog_cc_g = yes; then
1721 CFLAGS="-g -O2"
1722 else
1723 CFLAGS="-O2"
c62d1274
ILT
1724 fi
1725else
1726 GCC=
1727 test "${CFLAGS+set}" = set || CFLAGS="-g"
1728fi
9b65d522
ILT
1729
1730
46bcd2ec
ILT
1731. ${srcdir}/../bfd/configure.host
1732
40db6118 1733
7919b9ec 1734
1daed53f 1735test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
e3659cbf 1736
e7c50cef 1737
c62d1274 1738echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
788e3f91 1739echo "configure:1740: checking how to run the C preprocessor" >&5
c62d1274
ILT
1740# On Suns, sometimes $CPP names a directory.
1741if test -n "$CPP" && test -d "$CPP"; then
1742 CPP=
1743fi
1744if test -z "$CPP"; then
1745if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1747else
1748 # This must be in double quotes, not single quotes, because CPP may get
1749 # substituted into the Makefile and "${CC-cc}" will confuse make.
1750 CPP="${CC-cc} -E"
1751 # On the NeXT, cc -E runs the code through the compiler's parser,
1752 # not just through cpp.
1753 cat > conftest.$ac_ext <<EOF
788e3f91 1754#line 1755 "configure"
c62d1274
ILT
1755#include "confdefs.h"
1756#include <assert.h>
1757Syntax Error
1758EOF
7919b9ec 1759ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
788e3f91 1760{ (eval echo configure:1761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c62d1274
ILT
1761ac_err=`grep -v '^ *+' conftest.out`
1762if test -z "$ac_err"; then
1763 :
1764else
1765 echo "$ac_err" >&5
9c03036a
DE
1766 echo "configure: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
c62d1274
ILT
1768 rm -rf conftest*
1769 CPP="${CC-cc} -E -traditional-cpp"
1770 cat > conftest.$ac_ext <<EOF
788e3f91 1771#line 1772 "configure"
c62d1274
ILT
1772#include "confdefs.h"
1773#include <assert.h>
1774Syntax Error
1775EOF
7919b9ec 1776ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
788e3f91 1777{ (eval echo configure:1778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c62d1274
ILT
1778ac_err=`grep -v '^ *+' conftest.out`
1779if test -z "$ac_err"; then
1780 :
1781else
1782 echo "$ac_err" >&5
9c03036a
DE
1783 echo "configure: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
c62d1274
ILT
1785 rm -rf conftest*
1786 CPP=/lib/cpp
1787fi
1788rm -f conftest*
1789fi
1790rm -f conftest*
1791 ac_cv_prog_CPP="$CPP"
1792fi
1793 CPP="$ac_cv_prog_CPP"
1794else
1795 ac_cv_prog_CPP="$CPP"
1796fi
1797echo "$ac_t""$CPP" 1>&6
1798
9c03036a 1799for ac_hdr in string.h strings.h stdlib.h
c62d1274 1800do
9c03036a 1801ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
c62d1274 1802echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
788e3f91 1803echo "configure:1804: checking for $ac_hdr" >&5
c62d1274
ILT
1804if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1806else
1807 cat > conftest.$ac_ext <<EOF
788e3f91 1808#line 1809 "configure"
c62d1274
ILT
1809#include "confdefs.h"
1810#include <$ac_hdr>
1811EOF
7919b9ec 1812ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
788e3f91 1813{ (eval echo configure:1814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c62d1274
ILT
1814ac_err=`grep -v '^ *+' conftest.out`
1815if test -z "$ac_err"; then
1816 rm -rf conftest*
1817 eval "ac_cv_header_$ac_safe=yes"
1818else
1819 echo "$ac_err" >&5
9c03036a
DE
1820 echo "configure: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
c62d1274
ILT
1822 rm -rf conftest*
1823 eval "ac_cv_header_$ac_safe=no"
1824fi
1825rm -f conftest*
1826fi
1827if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1828 echo "$ac_t""yes" 1>&6
9c03036a 1829 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
c62d1274
ILT
1830 cat >> confdefs.h <<EOF
1831#define $ac_tr_hdr 1
1832EOF
1833
1834else
1835 echo "$ac_t""no" 1>&6
1836fi
1837done
1838
1839
bfc10abe
DE
1840# start-sanitize-cygnus
1841use_cgen=no
1842if test ${USE_MAINTAINER_MODE} = yes ; then
1843 for targ in $target $canon_targets
1844 do
1845 case $targ in
1846 all) use_cgen=yes ;;
1847 m32r-*-*) use_cgen=yes ;;
1848 esac
1849 done
1850fi
1851if test $use_cgen = yes ; then
1852 # Extract the first word of "guile", so it can be a program name with args.
1853set dummy guile; ac_word=$2
1854echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
788e3f91 1855echo "configure:1856: checking for $ac_word" >&5
bfc10abe
DE
1856if eval "test \"`echo '$''{'ac_cv_prog_SCHEME'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1858else
1859 if test -n "$SCHEME"; then
1860 ac_cv_prog_SCHEME="$SCHEME" # Let the user override the test.
1861else
1862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1863 for ac_dir in $PATH; do
1864 test -z "$ac_dir" && ac_dir=.
1865 if test -f $ac_dir/$ac_word; then
1866 ac_cv_prog_SCHEME="guile"
1867 break
1868 fi
1869 done
1870 IFS="$ac_save_ifs"
1871 test -z "$ac_cv_prog_SCHEME" && ac_cv_prog_SCHEME="guile"
1872fi
1873fi
1874SCHEME="$ac_cv_prog_SCHEME"
1875if test -n "$SCHEME"; then
1876 echo "$ac_t""$SCHEME" 1>&6
1877else
1878 echo "$ac_t""no" 1>&6
1879fi
1880
1881fi
1882# end-sanitize-cygnus
1883
c62d1274
ILT
1884# target-specific stuff:
1885
1886# Canonicalize the secondary target names.
1887if test -n "$enable_targets" ; then
1888 for targ in `echo $enable_targets | sed 's/,/ /g'`
1889 do
1daed53f 1890 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
c62d1274
ILT
1891 if test -n "$result" ; then
1892 canon_targets="$canon_targets $result"
1893 else
1894 # Allow targets that config.sub doesn't recognize, like "all".
1895 canon_targets="$canon_targets $targ"
1896 fi
1897 done
1898fi
1899
1900all_targets=false
1901selarchs=
1902for targ in $target $canon_targets
1903do
1904 if test "x$targ" = "xall" ; then
1905 all_targets=true
1906 else
1907 . $srcdir/../bfd/config.bfd
1908 selarchs="$selarchs $targ_archs"
1909 fi
1910done
1911
9c03036a
DE
1912# Utility var, documents generic cgen support files.
1913
1daed53f 1914cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
9c03036a 1915
c62d1274
ILT
1916# We don't do any links based on the target system, just makefile config.
1917
1918if test x${all_targets} = xfalse ; then
1919
1920 # Target architecture .o files.
1921 ta=
1922
1923 for arch in $selarchs
1924 do
1925 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
1926 archdefs="$archdefs -DARCH_$ad"
1927 case "$arch" in
1daed53f 1928 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
00103dfa 1929 bfd_alliant_arch) ;;
1daed53f 1930 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
1daed53f 1931 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo" ;;
1daed53f 1932 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
00103dfa 1933 bfd_convex_arch) ;;
1daed53f 1934 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
b2e3f844 1935# start-sanitize-d30v
1daed53f 1936 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
b2e3f844 1937# end-sanitize-d30v
1daed53f
ILT
1938 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
1939 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
1940 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
1941 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
f98c3369 1942 bfd_i860_arch) ;;
1daed53f
ILT
1943 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
1944 bfd_m32r_arch) ta="$ta $cgen_files m32r-opc.lo m32r-asm.lo m32r-dis.lo" ;;
1945 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
1946 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
1947 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
1948 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
1949 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
1950 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
1951 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
00103dfa
ILT
1952 bfd_pyramid_arch) ;;
1953 bfd_romp_arch) ;;
1daed53f
ILT
1954 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
1955 bfd_sh_arch) ta="$ta sh-dis.lo" ;;
1956 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
00103dfa 1957 bfd_tahoe_arch) ;;
788e3f91 1958 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
b2e3f844 1959# start-sanitize-tic80
1daed53f 1960 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
b2e3f844 1961# end-sanitize-tic80
80c396f6 1962# start-sanitize-sky
37130f11 1963 bfd_dvp_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo dvp-dis.lo dvp-opc.lo" ;;
80c396f6 1964# end-sanitize-sky
1daed53f 1965 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
a3515171
CP
1966# start-sanitize-v850e
1967 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
cd66558c 1968 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
a3515171 1969# end-sanitize-v850e
c62d1274 1970 bfd_vax_arch) ;;
1daed53f 1971 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
c62d1274 1972 bfd_we32k_arch) ;;
1daed53f 1973 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
c62d1274
ILT
1974
1975 "") ;;
1976 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
1977 esac
1978 done
1979
1980 # Weed out duplicate .o files.
1981 f=""
1982 for i in $ta ; do
1983 case " $f " in
1984 *" $i "*) ;;
1985 *) f="$f $i" ;;
1986 esac
1987 done
1988 ta="$f"
1989
1990 # And duplicate -D flags.
1991 f=""
1992 for i in $archdefs ; do
1993 case " $f " in
1994 *" $i "*) ;;
1995 *) f="$f $i" ;;
1996 esac
1997 done
1998 archdefs="$f"
1999
2000 BFD_MACHINES="$ta"
2001
2002else # all_targets is true
2003 archdefs=-DARCH_all
2004 BFD_MACHINES='$(ALL_MACHINES)'
2005fi
2006
2007
2008
2009
c62d1274
ILT
2010trap '' 1 2 15
2011cat > confcache <<\EOF
2012# This file is a shell script that caches the results of configure
2013# tests run on this system so they can be shared between configure
2014# scripts and configure runs. It is not useful on other systems.
2015# If it contains results you don't want to keep, you may remove or edit it.
2016#
2017# By default, configure uses ./config.cache as the cache file,
2018# creating it if it does not exist already. You can give configure
2019# the --cache-file=FILE option to use a different cache file; that is
2020# what configure does when it calls configure scripts in
2021# subdirectories, so they share the cache.
2022# Giving --cache-file=/dev/null disables caching, for debugging configure.
2023# config.status only pays attention to the cache file if you give it the
2024# --recheck option to rerun configure.
2025#
2026EOF
9c03036a
DE
2027# The following way of writing the cache mishandles newlines in values,
2028# but we know of no workaround that is simple, portable, and efficient.
2029# So, don't put newlines in cache variables' values.
c62d1274
ILT
2030# Ultrix sh set writes to stderr and can't be redirected directly,
2031# and sets the high bit in the cache file unless we assign to the vars.
2032(set) 2>&1 |
3b1e6264 2033 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
9c03036a
DE
2034 *ac_space=\ *)
2035 # `set' does not quote correctly, so add quotes (double-quote substitution
2036 # turns \\\\ into \\, and sed turns \\ into \).
2037 sed -n \
2038 -e "s/'/'\\\\''/g" \
2039 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2040 ;;
2041 *)
2042 # `set' quotes correctly as required by POSIX, so do not add quotes.
2043 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2044 ;;
2045 esac >> confcache
c62d1274
ILT
2046if cmp -s $cache_file confcache; then
2047 :
2048else
2049 if test -w $cache_file; then
2050 echo "updating cache $cache_file"
2051 cat confcache > $cache_file
2052 else
2053 echo "not updating unwritable cache $cache_file"
2054 fi
2055fi
2056rm -f confcache
2057
2058trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2059
2060test "x$prefix" = xNONE && prefix=$ac_default_prefix
2061# Let make expand exec_prefix.
2062test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2063
2064# Any assignment to VPATH causes Sun make to only execute
2065# the first set of double-colon rules, so remove it if not needed.
2066# If there is a colon in the path, we need to keep it.
2067if test "x$srcdir" = x.; then
2068 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2069fi
2070
2071trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2072
2073DEFS=-DHAVE_CONFIG_H
2074
2075# Without the "./", some shells look in PATH for config.status.
2076: ${CONFIG_STATUS=./config.status}
2077
2078echo creating $CONFIG_STATUS
2079rm -f $CONFIG_STATUS
2080cat > $CONFIG_STATUS <<EOF
2081#! /bin/sh
2082# Generated automatically by configure.
2083# Run this file to recreate the current configuration.
2084# This directory was configured as follows,
2085# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2086#
2087# $0 $ac_configure_args
2088#
2089# Compiler output produced by configure, useful for debugging
2090# configure, is in ./config.log if it exists.
2091
2092ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2093for ac_option
2094do
2095 case "\$ac_option" in
2096 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2097 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2098 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2099 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
a3515171 2100 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
c62d1274
ILT
2101 exit 0 ;;
2102 -help | --help | --hel | --he | --h)
2103 echo "\$ac_cs_usage"; exit 0 ;;
2104 *) echo "\$ac_cs_usage"; exit 1 ;;
2105 esac
2106done
2107
2108ac_given_srcdir=$srcdir
9b65d522 2109ac_given_INSTALL="$INSTALL"
c62d1274
ILT
2110
2111trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
e0bf1022
ILT
2112EOF
2113cat >> $CONFIG_STATUS <<EOF
c62d1274 2114
00103dfa 2115# Protect against being on the right side of a sed subst in config.status.
e0bf1022
ILT
2116sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2117 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
c62d1274
ILT
2118$ac_vpsub
2119$extrasub
cd66558c 2120s%@SHELL@%$SHELL%g
c62d1274
ILT
2121s%@CFLAGS@%$CFLAGS%g
2122s%@CPPFLAGS@%$CPPFLAGS%g
2123s%@CXXFLAGS@%$CXXFLAGS%g
2124s%@DEFS@%$DEFS%g
2125s%@LDFLAGS@%$LDFLAGS%g
2126s%@LIBS@%$LIBS%g
2127s%@exec_prefix@%$exec_prefix%g
2128s%@prefix@%$prefix%g
2129s%@program_transform_name@%$program_transform_name%g
00103dfa
ILT
2130s%@bindir@%$bindir%g
2131s%@sbindir@%$sbindir%g
2132s%@libexecdir@%$libexecdir%g
2133s%@datadir@%$datadir%g
2134s%@sysconfdir@%$sysconfdir%g
2135s%@sharedstatedir@%$sharedstatedir%g
2136s%@localstatedir@%$localstatedir%g
2137s%@libdir@%$libdir%g
2138s%@includedir@%$includedir%g
2139s%@oldincludedir@%$oldincludedir%g
2140s%@infodir@%$infodir%g
2141s%@mandir@%$mandir%g
c62d1274
ILT
2142s%@host@%$host%g
2143s%@host_alias@%$host_alias%g
2144s%@host_cpu@%$host_cpu%g
2145s%@host_vendor@%$host_vendor%g
2146s%@host_os@%$host_os%g
2147s%@target@%$target%g
2148s%@target_alias@%$target_alias%g
2149s%@target_cpu@%$target_cpu%g
2150s%@target_vendor@%$target_vendor%g
2151s%@target_os@%$target_os%g
2152s%@build@%$build%g
2153s%@build_alias@%$build_alias%g
2154s%@build_cpu@%$build_cpu%g
2155s%@build_vendor@%$build_vendor%g
2156s%@build_os@%$build_os%g
1daed53f
ILT
2157s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2158s%@INSTALL_DATA@%$INSTALL_DATA%g
2159s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2160s%@PACKAGE@%$PACKAGE%g
2161s%@VERSION@%$VERSION%g
2162s%@ACLOCAL@%$ACLOCAL%g
2163s%@AUTOCONF@%$AUTOCONF%g
2164s%@AUTOMAKE@%$AUTOMAKE%g
2165s%@AUTOHEADER@%$AUTOHEADER%g
2166s%@MAKEINFO@%$MAKEINFO%g
2167s%@SET_MAKE@%$SET_MAKE%g
cd66558c 2168s%@AR@%$AR%g
1daed53f 2169s%@RANLIB@%$RANLIB%g
cd66558c 2170s%@CC@%$CC%g
1daed53f 2171s%@LD@%$LD%g
788e3f91 2172s%@NM@%$NM%g
1daed53f
ILT
2173s%@LN_S@%$LN_S%g
2174s%@LIBTOOL@%$LIBTOOL%g
2175s%@MAINT@%$MAINT%g
2176s%@EXEEXT@%$EXEEXT%g
824155e8 2177s%@HDEFINES@%$HDEFINES%g
824155e8 2178s%@CPP@%$CPP%g
bfc10abe 2179s%@SCHEME@%$SCHEME%g
c62d1274
ILT
2180s%@archdefs@%$archdefs%g
2181s%@BFD_MACHINES@%$BFD_MACHINES%g
2182
2183CEOF
2184EOF
9c03036a
DE
2185
2186cat >> $CONFIG_STATUS <<\EOF
2187
2188# Split the substitutions into bite-sized pieces for seds with
2189# small command number limits, like on Digital OSF/1 and HP-UX.
2190ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2191ac_file=1 # Number of current file.
2192ac_beg=1 # First line for current file.
2193ac_end=$ac_max_sed_cmds # Line after last line for current file.
2194ac_more_lines=:
2195ac_sed_cmds=""
2196while $ac_more_lines; do
2197 if test $ac_beg -gt 1; then
2198 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2199 else
2200 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2201 fi
2202 if test ! -s conftest.s$ac_file; then
2203 ac_more_lines=false
2204 rm -f conftest.s$ac_file
2205 else
2206 if test -z "$ac_sed_cmds"; then
2207 ac_sed_cmds="sed -f conftest.s$ac_file"
2208 else
2209 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2210 fi
2211 ac_file=`expr $ac_file + 1`
2212 ac_beg=$ac_end
2213 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2214 fi
2215done
2216if test -z "$ac_sed_cmds"; then
2217 ac_sed_cmds=cat
2218fi
2219EOF
2220
c62d1274
ILT
2221cat >> $CONFIG_STATUS <<EOF
2222
2223CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2224EOF
2225cat >> $CONFIG_STATUS <<\EOF
2226for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9c03036a 2227 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c62d1274 2228 case "$ac_file" in
9c03036a 2229 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
c62d1274
ILT
2230 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2231 *) ac_file_in="${ac_file}.in" ;;
2232 esac
2233
9c03036a 2234 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
c62d1274
ILT
2235
2236 # Remove last slash and all that follows it. Not all systems have dirname.
2237 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2238 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2239 # The file is in a subdirectory.
2240 test ! -d "$ac_dir" && mkdir "$ac_dir"
2241 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2242 # A "../" for each directory in $ac_dir_suffix.
2243 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2244 else
2245 ac_dir_suffix= ac_dots=
2246 fi
2247
2248 case "$ac_given_srcdir" in
2249 .) srcdir=.
2250 if test -z "$ac_dots"; then top_srcdir=.
2251 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2252 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2253 *) # Relative path.
2254 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2255 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2256 esac
2257
9b65d522
ILT
2258 case "$ac_given_INSTALL" in
2259 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2260 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2261 esac
9c03036a 2262
c62d1274
ILT
2263 echo creating "$ac_file"
2264 rm -f "$ac_file"
2265 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2266 case "$ac_file" in
2267 *Makefile*) ac_comsub="1i\\
2268# $configure_input" ;;
2269 *) ac_comsub= ;;
2270 esac
9c03036a
DE
2271
2272 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
c62d1274
ILT
2273 sed -e "$ac_comsub
2274s%@configure_input@%$configure_input%g
2275s%@srcdir@%$srcdir%g
2276s%@top_srcdir@%$top_srcdir%g
9b65d522 2277s%@INSTALL@%$INSTALL%g
9c03036a 2278" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
c62d1274 2279fi; done
9c03036a 2280rm -f conftest.s*
c62d1274
ILT
2281
2282# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2283# NAME is the cpp macro being defined and VALUE is the value it is being given.
2284#
2285# ac_d sets the value in "#define NAME VALUE" lines.
2286ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2287ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2288ac_dC='\3'
2289ac_dD='%g'
2290# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2291ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2292ac_uB='\([ ]\)%\1#\2define\3'
2293ac_uC=' '
2294ac_uD='\4%g'
2295# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2296ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2297ac_eB='$%\1#\2define\3'
2298ac_eC=' '
2299ac_eD='%g'
2300
9c03036a
DE
2301if test "${CONFIG_HEADERS+set}" != set; then
2302EOF
2303cat >> $CONFIG_STATUS <<EOF
2304 CONFIG_HEADERS="config.h:config.in"
2305EOF
2306cat >> $CONFIG_STATUS <<\EOF
2307fi
c62d1274 2308for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9c03036a 2309 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c62d1274 2310 case "$ac_file" in
9c03036a 2311 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
c62d1274
ILT
2312 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2313 *) ac_file_in="${ac_file}.in" ;;
2314 esac
2315
2316 echo creating $ac_file
2317
2318 rm -f conftest.frag conftest.in conftest.out
9c03036a
DE
2319 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2320 cat $ac_file_inputs > conftest.in
c62d1274
ILT
2321
2322EOF
2323
2324# Transform confdefs.h into a sed script conftest.vals that substitutes
2325# the proper values into config.h.in to produce config.h. And first:
00103dfa 2326# Protect against being on the right side of a sed subst in config.status.
c62d1274
ILT
2327# Protect against being in an unquoted here document in config.status.
2328rm -f conftest.vals
2329cat > conftest.hdr <<\EOF
2330s/[\\&%]/\\&/g
2331s%[\\$`]%\\&%g
e3659cbf 2332s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
c62d1274
ILT
2333s%ac_d%ac_u%gp
2334s%ac_u%ac_e%gp
2335EOF
2336sed -n -f conftest.hdr confdefs.h > conftest.vals
2337rm -f conftest.hdr
2338
2339# This sed command replaces #undef with comments. This is necessary, for
2340# example, in the case of _POSIX_SOURCE, which is predefined and required
2341# on some systems where configure will not decide to define it.
2342cat >> conftest.vals <<\EOF
2343s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2344EOF
2345
2346# Break up conftest.vals because some shells have a limit on
2347# the size of here documents, and old seds have small limits too.
c62d1274
ILT
2348
2349rm -f conftest.tail
2350while :
2351do
2352 ac_lines=`grep -c . conftest.vals`
2353 # grep -c gives empty output for an empty file on some AIX systems.
2354 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2355 # Write a limited-size here document to conftest.frag.
2356 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2357 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2358 echo 'CEOF
2359 sed -f conftest.frag conftest.in > conftest.out
2360 rm -f conftest.in
2361 mv conftest.out conftest.in
2362' >> $CONFIG_STATUS
2363 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2364 rm -f conftest.vals
2365 mv conftest.tail conftest.vals
2366done
2367rm -f conftest.vals
2368
2369cat >> $CONFIG_STATUS <<\EOF
2370 rm -f conftest.frag conftest.h
2371 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2372 cat conftest.in >> conftest.h
2373 rm -f conftest.in
2374 if cmp -s $ac_file conftest.h 2>/dev/null; then
2375 echo "$ac_file is unchanged"
2376 rm -f conftest.h
2377 else
e3659cbf
MH
2378 # Remove last slash and all that follows it. Not all systems have dirname.
2379 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2380 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2381 # The file is in a subdirectory.
2382 test ! -d "$ac_dir" && mkdir "$ac_dir"
2383 fi
c62d1274
ILT
2384 rm -f $ac_file
2385 mv conftest.h $ac_file
2386 fi
2387fi; done
2388
9c03036a
DE
2389EOF
2390cat >> $CONFIG_STATUS <<EOF
c62d1274 2391
a3515171 2392
9c03036a
DE
2393EOF
2394cat >> $CONFIG_STATUS <<\EOF
1daed53f
ILT
2395test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2396
c62d1274
ILT
2397exit 0
2398EOF
2399chmod +x $CONFIG_STATUS
2400rm -fr confdefs* $ac_clean_files
2401test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2402
This page took 0.220561 seconds and 4 git commands to generate.