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