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