]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/igen/configure
This commit was generated by cvs2svn to track changes on a CVS vendor
[thirdparty/binutils-gdb.git] / sim / igen / configure
1 #! /bin/sh
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 sim_inline="-DDEFAULT_INLINE=0"
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81 # This file is derived from `gettext.m4'. The difference is that the
82 # included macros assume Cygnus-style source and build trees.
83
84 # Macro to add for using GNU gettext.
85 # Ulrich Drepper <drepper@cygnus.com>, 1995.
86 #
87 # This file file be copied and used freely without restrictions. It can
88 # be used in projects which are not available under the GNU Public License
89 # but which still want to provide support for the GNU gettext functionality.
90 # Please note that the actual code is *not* freely available.
91
92 # serial 3
93
94
95
96
97
98 # Search path for a program which passes the given test.
99 # Ulrich Drepper <drepper@cygnus.com>, 1996.
100 #
101 # This file file be copied and used freely without restrictions. It can
102 # be used in projects which are not available under the GNU Public License
103 # but which still want to provide support for the GNU gettext functionality.
104 # Please note that the actual code is *not* freely available.
105
106 # serial 1
107
108
109
110 # Check whether LC_MESSAGES is available in <locale.h>.
111 # Ulrich Drepper <drepper@cygnus.com>, 1995.
112 #
113 # This file file be copied and used freely without restrictions. It can
114 # be used in projects which are not available under the GNU Public License
115 # but which still want to provide support for the GNU gettext functionality.
116 # Please note that the actual code is *not* freely available.
117
118 # serial 1
119
120
121
122
123
124
125 # Guess values for system-dependent variables and create Makefiles.
126 # Generated automatically using autoconf version 2.13
127 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
128 #
129 # This configure script is free software; the Free Software Foundation
130 # gives unlimited permission to copy, distribute and modify it.
131
132 # Defaults:
133 ac_help=
134 ac_default_prefix=/usr/local
135 # Any additions from configure.in:
136 ac_help="$ac_help
137 --enable-build-warnings[=LIST] Enable build-time compiler warnings"
138
139 # Initialize some variables set by options.
140 # The variables have the same names as the options, with
141 # dashes changed to underlines.
142 build=NONE
143 cache_file=./config.cache
144 exec_prefix=NONE
145 host=NONE
146 no_create=
147 nonopt=NONE
148 no_recursion=
149 prefix=NONE
150 program_prefix=NONE
151 program_suffix=NONE
152 program_transform_name=s,x,x,
153 silent=
154 site=
155 sitefile=
156 srcdir=
157 target=NONE
158 verbose=
159 x_includes=NONE
160 x_libraries=NONE
161 bindir='${exec_prefix}/bin'
162 sbindir='${exec_prefix}/sbin'
163 libexecdir='${exec_prefix}/libexec'
164 datadir='${prefix}/share'
165 sysconfdir='${prefix}/etc'
166 sharedstatedir='${prefix}/com'
167 localstatedir='${prefix}/var'
168 libdir='${exec_prefix}/lib'
169 includedir='${prefix}/include'
170 oldincludedir='/usr/include'
171 infodir='${prefix}/info'
172 mandir='${prefix}/man'
173
174 # Initialize some other variables.
175 subdirs=
176 MFLAGS= MAKEFLAGS=
177 SHELL=${CONFIG_SHELL-/bin/sh}
178 # Maximum number of lines to put in a shell here document.
179 ac_max_here_lines=12
180
181 ac_prev=
182 for ac_option
183 do
184
185 # If the previous option needs an argument, assign it.
186 if test -n "$ac_prev"; then
187 eval "$ac_prev=\$ac_option"
188 ac_prev=
189 continue
190 fi
191
192 case "$ac_option" in
193 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
194 *) ac_optarg= ;;
195 esac
196
197 # Accept the important Cygnus configure options, so we can diagnose typos.
198
199 case "$ac_option" in
200
201 -bindir | --bindir | --bindi | --bind | --bin | --bi)
202 ac_prev=bindir ;;
203 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
204 bindir="$ac_optarg" ;;
205
206 -build | --build | --buil | --bui | --bu)
207 ac_prev=build ;;
208 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
209 build="$ac_optarg" ;;
210
211 -cache-file | --cache-file | --cache-fil | --cache-fi \
212 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
213 ac_prev=cache_file ;;
214 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
215 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
216 cache_file="$ac_optarg" ;;
217
218 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
219 ac_prev=datadir ;;
220 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
221 | --da=*)
222 datadir="$ac_optarg" ;;
223
224 -disable-* | --disable-*)
225 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
226 # Reject names that are not valid shell variable names.
227 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
228 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
229 fi
230 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
231 eval "enable_${ac_feature}=no" ;;
232
233 -enable-* | --enable-*)
234 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
235 # Reject names that are not valid shell variable names.
236 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
237 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
238 fi
239 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
240 case "$ac_option" in
241 *=*) ;;
242 *) ac_optarg=yes ;;
243 esac
244 eval "enable_${ac_feature}='$ac_optarg'" ;;
245
246 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
247 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
248 | --exec | --exe | --ex)
249 ac_prev=exec_prefix ;;
250 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
251 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
252 | --exec=* | --exe=* | --ex=*)
253 exec_prefix="$ac_optarg" ;;
254
255 -gas | --gas | --ga | --g)
256 # Obsolete; use --with-gas.
257 with_gas=yes ;;
258
259 -help | --help | --hel | --he)
260 # Omit some internal or obsolete options to make the list less imposing.
261 # This message is too long to be a string in the A/UX 3.1 sh.
262 cat << EOF
263 Usage: configure [options] [host]
264 Options: [defaults in brackets after descriptions]
265 Configuration:
266 --cache-file=FILE cache test results in FILE
267 --help print this message
268 --no-create do not create output files
269 --quiet, --silent do not print \`checking...' messages
270 --site-file=FILE use FILE as the site file
271 --version print the version of autoconf that created configure
272 Directory and file names:
273 --prefix=PREFIX install architecture-independent files in PREFIX
274 [$ac_default_prefix]
275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
276 [same as prefix]
277 --bindir=DIR user executables in DIR [EPREFIX/bin]
278 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
279 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
280 --datadir=DIR read-only architecture-independent data in DIR
281 [PREFIX/share]
282 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
283 --sharedstatedir=DIR modifiable architecture-independent data in DIR
284 [PREFIX/com]
285 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
286 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
287 --includedir=DIR C header files in DIR [PREFIX/include]
288 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
289 --infodir=DIR info documentation in DIR [PREFIX/info]
290 --mandir=DIR man documentation in DIR [PREFIX/man]
291 --srcdir=DIR find the sources in DIR [configure dir or ..]
292 --program-prefix=PREFIX prepend PREFIX to installed program names
293 --program-suffix=SUFFIX append SUFFIX to installed program names
294 --program-transform-name=PROGRAM
295 run sed PROGRAM on installed program names
296 EOF
297 cat << EOF
298 Host type:
299 --build=BUILD configure for building on BUILD [BUILD=HOST]
300 --host=HOST configure for HOST [guessed]
301 --target=TARGET configure for TARGET [TARGET=HOST]
302 Features and packages:
303 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
304 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
305 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
306 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
307 --x-includes=DIR X include files are in DIR
308 --x-libraries=DIR X library files are in DIR
309 EOF
310 if test -n "$ac_help"; then
311 echo "--enable and --with options recognized:$ac_help"
312 fi
313 exit 0 ;;
314
315 -host | --host | --hos | --ho)
316 ac_prev=host ;;
317 -host=* | --host=* | --hos=* | --ho=*)
318 host="$ac_optarg" ;;
319
320 -includedir | --includedir | --includedi | --included | --include \
321 | --includ | --inclu | --incl | --inc)
322 ac_prev=includedir ;;
323 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
324 | --includ=* | --inclu=* | --incl=* | --inc=*)
325 includedir="$ac_optarg" ;;
326
327 -infodir | --infodir | --infodi | --infod | --info | --inf)
328 ac_prev=infodir ;;
329 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
330 infodir="$ac_optarg" ;;
331
332 -libdir | --libdir | --libdi | --libd)
333 ac_prev=libdir ;;
334 -libdir=* | --libdir=* | --libdi=* | --libd=*)
335 libdir="$ac_optarg" ;;
336
337 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
338 | --libexe | --libex | --libe)
339 ac_prev=libexecdir ;;
340 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
341 | --libexe=* | --libex=* | --libe=*)
342 libexecdir="$ac_optarg" ;;
343
344 -localstatedir | --localstatedir | --localstatedi | --localstated \
345 | --localstate | --localstat | --localsta | --localst \
346 | --locals | --local | --loca | --loc | --lo)
347 ac_prev=localstatedir ;;
348 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
349 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
350 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
351 localstatedir="$ac_optarg" ;;
352
353 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
354 ac_prev=mandir ;;
355 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
356 mandir="$ac_optarg" ;;
357
358 -nfp | --nfp | --nf)
359 # Obsolete; use --without-fp.
360 with_fp=no ;;
361
362 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
363 | --no-cr | --no-c)
364 no_create=yes ;;
365
366 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
367 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
368 no_recursion=yes ;;
369
370 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
371 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
372 | --oldin | --oldi | --old | --ol | --o)
373 ac_prev=oldincludedir ;;
374 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
375 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
376 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
377 oldincludedir="$ac_optarg" ;;
378
379 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
380 ac_prev=prefix ;;
381 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
382 prefix="$ac_optarg" ;;
383
384 -program-prefix | --program-prefix | --program-prefi | --program-pref \
385 | --program-pre | --program-pr | --program-p)
386 ac_prev=program_prefix ;;
387 -program-prefix=* | --program-prefix=* | --program-prefi=* \
388 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
389 program_prefix="$ac_optarg" ;;
390
391 -program-suffix | --program-suffix | --program-suffi | --program-suff \
392 | --program-suf | --program-su | --program-s)
393 ac_prev=program_suffix ;;
394 -program-suffix=* | --program-suffix=* | --program-suffi=* \
395 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
396 program_suffix="$ac_optarg" ;;
397
398 -program-transform-name | --program-transform-name \
399 | --program-transform-nam | --program-transform-na \
400 | --program-transform-n | --program-transform- \
401 | --program-transform | --program-transfor \
402 | --program-transfo | --program-transf \
403 | --program-trans | --program-tran \
404 | --progr-tra | --program-tr | --program-t)
405 ac_prev=program_transform_name ;;
406 -program-transform-name=* | --program-transform-name=* \
407 | --program-transform-nam=* | --program-transform-na=* \
408 | --program-transform-n=* | --program-transform-=* \
409 | --program-transform=* | --program-transfor=* \
410 | --program-transfo=* | --program-transf=* \
411 | --program-trans=* | --program-tran=* \
412 | --progr-tra=* | --program-tr=* | --program-t=*)
413 program_transform_name="$ac_optarg" ;;
414
415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
416 | -silent | --silent | --silen | --sile | --sil)
417 silent=yes ;;
418
419 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
420 ac_prev=sbindir ;;
421 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
422 | --sbi=* | --sb=*)
423 sbindir="$ac_optarg" ;;
424
425 -sharedstatedir | --sharedstatedir | --sharedstatedi \
426 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
427 | --sharedst | --shareds | --shared | --share | --shar \
428 | --sha | --sh)
429 ac_prev=sharedstatedir ;;
430 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
431 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
432 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
433 | --sha=* | --sh=*)
434 sharedstatedir="$ac_optarg" ;;
435
436 -site | --site | --sit)
437 ac_prev=site ;;
438 -site=* | --site=* | --sit=*)
439 site="$ac_optarg" ;;
440
441 -site-file | --site-file | --site-fil | --site-fi | --site-f)
442 ac_prev=sitefile ;;
443 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
444 sitefile="$ac_optarg" ;;
445
446 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
447 ac_prev=srcdir ;;
448 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
449 srcdir="$ac_optarg" ;;
450
451 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
452 | --syscon | --sysco | --sysc | --sys | --sy)
453 ac_prev=sysconfdir ;;
454 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
455 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
456 sysconfdir="$ac_optarg" ;;
457
458 -target | --target | --targe | --targ | --tar | --ta | --t)
459 ac_prev=target ;;
460 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
461 target="$ac_optarg" ;;
462
463 -v | -verbose | --verbose | --verbos | --verbo | --verb)
464 verbose=yes ;;
465
466 -version | --version | --versio | --versi | --vers)
467 echo "configure generated by autoconf version 2.13"
468 exit 0 ;;
469
470 -with-* | --with-*)
471 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
472 # Reject names that are not valid shell variable names.
473 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
474 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
475 fi
476 ac_package=`echo $ac_package| sed 's/-/_/g'`
477 case "$ac_option" in
478 *=*) ;;
479 *) ac_optarg=yes ;;
480 esac
481 eval "with_${ac_package}='$ac_optarg'" ;;
482
483 -without-* | --without-*)
484 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
485 # Reject names that are not valid shell variable names.
486 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
487 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
488 fi
489 ac_package=`echo $ac_package| sed 's/-/_/g'`
490 eval "with_${ac_package}=no" ;;
491
492 --x)
493 # Obsolete; use --with-x.
494 with_x=yes ;;
495
496 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
497 | --x-incl | --x-inc | --x-in | --x-i)
498 ac_prev=x_includes ;;
499 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
500 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
501 x_includes="$ac_optarg" ;;
502
503 -x-libraries | --x-libraries | --x-librarie | --x-librari \
504 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
505 ac_prev=x_libraries ;;
506 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
507 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
508 x_libraries="$ac_optarg" ;;
509
510 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
511 ;;
512
513 *)
514 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
515 echo "configure: warning: $ac_option: invalid host type" 1>&2
516 fi
517 if test "x$nonopt" != xNONE; then
518 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
519 fi
520 nonopt="$ac_option"
521 ;;
522
523 esac
524 done
525
526 if test -n "$ac_prev"; then
527 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
528 fi
529
530 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
531
532 # File descriptor usage:
533 # 0 standard input
534 # 1 file creation
535 # 2 errors and warnings
536 # 3 some systems may open it to /dev/tty
537 # 4 used on the Kubota Titan
538 # 6 checking for... messages and results
539 # 5 compiler messages saved in config.log
540 if test "$silent" = yes; then
541 exec 6>/dev/null
542 else
543 exec 6>&1
544 fi
545 exec 5>./config.log
546
547 echo "\
548 This file contains any messages produced by compilers while
549 running configure, to aid debugging if configure makes a mistake.
550 " 1>&5
551
552 # Strip out --no-create and --no-recursion so they do not pile up.
553 # Also quote any args containing shell metacharacters.
554 ac_configure_args=
555 for ac_arg
556 do
557 case "$ac_arg" in
558 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
559 | --no-cr | --no-c) ;;
560 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
561 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
562 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
563 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
564 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
565 esac
566 done
567
568 # NLS nuisances.
569 # Only set these to C if already set. These must not be set unconditionally
570 # because not all systems understand e.g. LANG=C (notably SCO).
571 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
572 # Non-C LC_CTYPE values break the ctype check.
573 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
574 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
575 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
576 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
577
578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
579 rm -rf conftest* confdefs.h
580 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
581 echo > confdefs.h
582
583 # A filename unique to this package, relative to the directory that
584 # configure is in, which we can look for to find out if srcdir is correct.
585 ac_unique_file=table.h
586
587 # Find the source files, if location was not specified.
588 if test -z "$srcdir"; then
589 ac_srcdir_defaulted=yes
590 # Try the directory containing this script, then its parent.
591 ac_prog=$0
592 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
593 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
594 srcdir=$ac_confdir
595 if test ! -r $srcdir/$ac_unique_file; then
596 srcdir=..
597 fi
598 else
599 ac_srcdir_defaulted=no
600 fi
601 if test ! -r $srcdir/$ac_unique_file; then
602 if test "$ac_srcdir_defaulted" = yes; then
603 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
604 else
605 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
606 fi
607 fi
608 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
609
610 # Prefer explicitly selected file to automatically selected ones.
611 if test -z "$sitefile"; then
612 if test -z "$CONFIG_SITE"; then
613 if test "x$prefix" != xNONE; then
614 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
615 else
616 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
617 fi
618 fi
619 else
620 CONFIG_SITE="$sitefile"
621 fi
622 for ac_site_file in $CONFIG_SITE; do
623 if test -r "$ac_site_file"; then
624 echo "loading site script $ac_site_file"
625 . "$ac_site_file"
626 fi
627 done
628
629 if test -r "$cache_file"; then
630 echo "loading cache $cache_file"
631 . $cache_file
632 else
633 echo "creating cache $cache_file"
634 > $cache_file
635 fi
636
637 ac_ext=c
638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
639 ac_cpp='$CPP $CPPFLAGS'
640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
642 cross_compiling=$ac_cv_prog_cc_cross
643
644 ac_exeext=
645 ac_objext=o
646 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
647 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
648 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
649 ac_n= ac_c='
650 ' ac_t=' '
651 else
652 ac_n=-n ac_c= ac_t=
653 fi
654 else
655 ac_n= ac_c='\c' ac_t=
656 fi
657
658
659
660 ac_aux_dir=
661 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
662 if test -f $ac_dir/install-sh; then
663 ac_aux_dir=$ac_dir
664 ac_install_sh="$ac_aux_dir/install-sh -c"
665 break
666 elif test -f $ac_dir/install.sh; then
667 ac_aux_dir=$ac_dir
668 ac_install_sh="$ac_aux_dir/install.sh -c"
669 break
670 fi
671 done
672 if test -z "$ac_aux_dir"; then
673 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
674 fi
675 ac_config_guess=$ac_aux_dir/config.guess
676 ac_config_sub=$ac_aux_dir/config.sub
677 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
678
679 # Find a good install program. We prefer a C program (faster),
680 # so one script is as good as another. But avoid the broken or
681 # incompatible versions:
682 # SysV /etc/install, /usr/sbin/install
683 # SunOS /usr/etc/install
684 # IRIX /sbin/install
685 # AIX /bin/install
686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
689 # ./install, which can be erroneously created by make from ./install.sh.
690 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
691 echo "configure:692: checking for a BSD compatible install" >&5
692 if test -z "$INSTALL"; then
693 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
695 else
696 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
697 for ac_dir in $PATH; do
698 # Account for people who put trailing slashes in PATH elements.
699 case "$ac_dir/" in
700 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
701 *)
702 # OSF1 and SCO ODT 3.0 have their own names for install.
703 # Don't use installbsd from OSF since it installs stuff as root
704 # by default.
705 for ac_prog in ginstall scoinst install; do
706 if test -f $ac_dir/$ac_prog; then
707 if test $ac_prog = install &&
708 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
709 # AIX install. It has an incompatible calling convention.
710 :
711 else
712 ac_cv_path_install="$ac_dir/$ac_prog -c"
713 break 2
714 fi
715 fi
716 done
717 ;;
718 esac
719 done
720 IFS="$ac_save_IFS"
721
722 fi
723 if test "${ac_cv_path_install+set}" = set; then
724 INSTALL="$ac_cv_path_install"
725 else
726 # As a last resort, use the slow shell script. We don't cache a
727 # path for INSTALL within a source directory, because that will
728 # break other packages using the cache if that directory is
729 # removed, or if the path is relative.
730 INSTALL="$ac_install_sh"
731 fi
732 fi
733 echo "$ac_t""$INSTALL" 1>&6
734
735 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
736 # It thinks the first close brace ends the variable substitution.
737 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
738
739 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
740
741 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
742
743 # Extract the first word of "gcc", so it can be a program name with args.
744 set dummy gcc; ac_word=$2
745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
746 echo "configure:747: checking for $ac_word" >&5
747 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
749 else
750 if test -n "$CC"; then
751 ac_cv_prog_CC="$CC" # Let the user override the test.
752 else
753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
754 ac_dummy="$PATH"
755 for ac_dir in $ac_dummy; do
756 test -z "$ac_dir" && ac_dir=.
757 if test -f $ac_dir/$ac_word; then
758 ac_cv_prog_CC="gcc"
759 break
760 fi
761 done
762 IFS="$ac_save_ifs"
763 fi
764 fi
765 CC="$ac_cv_prog_CC"
766 if test -n "$CC"; then
767 echo "$ac_t""$CC" 1>&6
768 else
769 echo "$ac_t""no" 1>&6
770 fi
771
772 if test -z "$CC"; then
773 # Extract the first word of "cc", so it can be a program name with args.
774 set dummy cc; ac_word=$2
775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
776 echo "configure:777: checking for $ac_word" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
779 else
780 if test -n "$CC"; then
781 ac_cv_prog_CC="$CC" # Let the user override the test.
782 else
783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
784 ac_prog_rejected=no
785 ac_dummy="$PATH"
786 for ac_dir in $ac_dummy; do
787 test -z "$ac_dir" && ac_dir=.
788 if test -f $ac_dir/$ac_word; then
789 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
790 ac_prog_rejected=yes
791 continue
792 fi
793 ac_cv_prog_CC="cc"
794 break
795 fi
796 done
797 IFS="$ac_save_ifs"
798 if test $ac_prog_rejected = yes; then
799 # We found a bogon in the path, so make sure we never use it.
800 set dummy $ac_cv_prog_CC
801 shift
802 if test $# -gt 0; then
803 # We chose a different compiler from the bogus one.
804 # However, it has the same basename, so the bogon will be chosen
805 # first if we set CC to just the basename; use the full file name.
806 shift
807 set dummy "$ac_dir/$ac_word" "$@"
808 shift
809 ac_cv_prog_CC="$@"
810 fi
811 fi
812 fi
813 fi
814 CC="$ac_cv_prog_CC"
815 if test -n "$CC"; then
816 echo "$ac_t""$CC" 1>&6
817 else
818 echo "$ac_t""no" 1>&6
819 fi
820
821 if test -z "$CC"; then
822 case "`uname -s`" in
823 *win32* | *WIN32*)
824 # Extract the first word of "cl", so it can be a program name with args.
825 set dummy cl; ac_word=$2
826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
827 echo "configure:828: checking for $ac_word" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
830 else
831 if test -n "$CC"; then
832 ac_cv_prog_CC="$CC" # Let the user override the test.
833 else
834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
835 ac_dummy="$PATH"
836 for ac_dir in $ac_dummy; do
837 test -z "$ac_dir" && ac_dir=.
838 if test -f $ac_dir/$ac_word; then
839 ac_cv_prog_CC="cl"
840 break
841 fi
842 done
843 IFS="$ac_save_ifs"
844 fi
845 fi
846 CC="$ac_cv_prog_CC"
847 if test -n "$CC"; then
848 echo "$ac_t""$CC" 1>&6
849 else
850 echo "$ac_t""no" 1>&6
851 fi
852 ;;
853 esac
854 fi
855 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
856 fi
857
858 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
859 echo "configure:860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
860
861 ac_ext=c
862 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
863 ac_cpp='$CPP $CPPFLAGS'
864 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
865 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
866 cross_compiling=$ac_cv_prog_cc_cross
867
868 cat > conftest.$ac_ext << EOF
869
870 #line 871 "configure"
871 #include "confdefs.h"
872
873 main(){return(0);}
874 EOF
875 if { (eval echo configure:876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
876 ac_cv_prog_cc_works=yes
877 # If we can't run a trivial program, we are probably using a cross compiler.
878 if (./conftest; exit) 2>/dev/null; then
879 ac_cv_prog_cc_cross=no
880 else
881 ac_cv_prog_cc_cross=yes
882 fi
883 else
884 echo "configure: failed program was:" >&5
885 cat conftest.$ac_ext >&5
886 ac_cv_prog_cc_works=no
887 fi
888 rm -fr conftest*
889 ac_ext=c
890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
891 ac_cpp='$CPP $CPPFLAGS'
892 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
893 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
894 cross_compiling=$ac_cv_prog_cc_cross
895
896 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
897 if test $ac_cv_prog_cc_works = no; then
898 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
899 fi
900 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
901 echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
902 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
903 cross_compiling=$ac_cv_prog_cc_cross
904
905 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
906 echo "configure:907: checking whether we are using GNU C" >&5
907 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
909 else
910 cat > conftest.c <<EOF
911 #ifdef __GNUC__
912 yes;
913 #endif
914 EOF
915 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
916 ac_cv_prog_gcc=yes
917 else
918 ac_cv_prog_gcc=no
919 fi
920 fi
921
922 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
923
924 if test $ac_cv_prog_gcc = yes; then
925 GCC=yes
926 else
927 GCC=
928 fi
929
930 ac_test_CFLAGS="${CFLAGS+set}"
931 ac_save_CFLAGS="$CFLAGS"
932 CFLAGS=
933 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
934 echo "configure:935: checking whether ${CC-cc} accepts -g" >&5
935 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
937 else
938 echo 'void f(){}' > conftest.c
939 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
940 ac_cv_prog_cc_g=yes
941 else
942 ac_cv_prog_cc_g=no
943 fi
944 rm -f conftest*
945
946 fi
947
948 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
949 if test "$ac_test_CFLAGS" = set; then
950 CFLAGS="$ac_save_CFLAGS"
951 elif test $ac_cv_prog_cc_g = yes; then
952 if test "$GCC" = yes; then
953 CFLAGS="-g -O2"
954 else
955 CFLAGS="-g"
956 fi
957 else
958 if test "$GCC" = yes; then
959 CFLAGS="-O2"
960 else
961 CFLAGS=
962 fi
963 fi
964
965
966
967 # Check whether --enable-build-warnings or --disable-build-warnings was given.
968 if test "${enable_build_warnings+set}" = set; then
969 enableval="$enable_build_warnings"
970 build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
971 case "${enableval}" in
972 yes) ;;
973 no) build_warnings="-w";;
974 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
975 build_warnings="${build_warnings} ${t}";;
976 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
977 build_warnings="${t} ${build_warnings}";;
978 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
979 esac
980 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
981 echo "Setting warning flags = $build_warnings" 6>&1
982 fi
983 else
984 build_warnings=""
985 fi
986
987
988 # Put a plausible default for CC_FOR_BUILD in Makefile.
989 if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
990 AR_FOR_BUILD='$(AR)'
991 AR_FLAGS_FOR_BUILD='$(AR_FLAGS)'
992 CC_FOR_BUILD='$(CC)'
993 CFLAGS_FOR_BUILD='$(CFLAGS)'
994 RANLIB_FOR_BUILD='$(RANLIB)'
995 LIBIBERTY_LIB=../../libiberty/libiberty.a
996 else
997 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
998 AR_FLAGS_FOR_BUILD=${AR_FLAGS_FOR_BUILD-rc}
999 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1000 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
1001 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
1002 LIBIBERTY_LIB=
1003 fi
1004
1005
1006 ac_aux_dir=
1007 for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
1008 if test -f $ac_dir/install-sh; then
1009 ac_aux_dir=$ac_dir
1010 ac_install_sh="$ac_aux_dir/install-sh -c"
1011 break
1012 elif test -f $ac_dir/install.sh; then
1013 ac_aux_dir=$ac_dir
1014 ac_install_sh="$ac_aux_dir/install.sh -c"
1015 break
1016 fi
1017 done
1018 if test -z "$ac_aux_dir"; then
1019 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../.." 1>&2; exit 1; }
1020 fi
1021 ac_config_guess=$ac_aux_dir/config.guess
1022 ac_config_sub=$ac_aux_dir/config.sub
1023 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1024
1025
1026 # Do some error checking and defaulting for the host and target type.
1027 # The inputs are:
1028 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1029 #
1030 # The rules are:
1031 # 1. You are not allowed to specify --host, --target, and nonopt at the
1032 # same time.
1033 # 2. Host defaults to nonopt.
1034 # 3. If nonopt is not specified, then host defaults to the current host,
1035 # as determined by config.guess.
1036 # 4. Target and build default to nonopt.
1037 # 5. If nonopt is not specified, then target and build default to host.
1038
1039 # The aliases save the names the user supplied, while $host etc.
1040 # will get canonicalized.
1041 case $host---$target---$nonopt in
1042 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1043 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1044 esac
1045
1046
1047 # Make sure we can run config.sub.
1048 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1049 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1050 fi
1051
1052 echo $ac_n "checking host system type""... $ac_c" 1>&6
1053 echo "configure:1054: checking host system type" >&5
1054
1055 host_alias=$host
1056 case "$host_alias" in
1057 NONE)
1058 case $nonopt in
1059 NONE)
1060 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1061 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1062 fi ;;
1063 *) host_alias=$nonopt ;;
1064 esac ;;
1065 esac
1066
1067 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1068 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1071 echo "$ac_t""$host" 1>&6
1072
1073 echo $ac_n "checking target system type""... $ac_c" 1>&6
1074 echo "configure:1075: checking target system type" >&5
1075
1076 target_alias=$target
1077 case "$target_alias" in
1078 NONE)
1079 case $nonopt in
1080 NONE) target_alias=$host_alias ;;
1081 *) target_alias=$nonopt ;;
1082 esac ;;
1083 esac
1084
1085 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1086 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1087 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1088 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1089 echo "$ac_t""$target" 1>&6
1090
1091 echo $ac_n "checking build system type""... $ac_c" 1>&6
1092 echo "configure:1093: checking build system type" >&5
1093
1094 build_alias=$build
1095 case "$build_alias" in
1096 NONE)
1097 case $nonopt in
1098 NONE) build_alias=$host_alias ;;
1099 *) build_alias=$nonopt ;;
1100 esac ;;
1101 esac
1102
1103 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1104 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1105 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1106 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1107 echo "$ac_t""$build" 1>&6
1108
1109 test "$host_alias" != "$target_alias" &&
1110 test "$program_prefix$program_suffix$program_transform_name" = \
1111 NONENONEs,x,x, &&
1112 program_prefix=${target_alias}-
1113
1114 if test "$program_transform_name" = s,x,x,; then
1115 program_transform_name=
1116 else
1117 # Double any \ or $. echo might interpret backslashes.
1118 cat <<\EOF_SED > conftestsed
1119 s,\\,\\\\,g; s,\$,$$,g
1120 EOF_SED
1121 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1122 rm -f conftestsed
1123 fi
1124 test "$program_prefix" != NONE &&
1125 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1126 # Use a double $ so make ignores it.
1127 test "$program_suffix" != NONE &&
1128 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1129
1130 # sed with no file args requires a program.
1131 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1132
1133
1134 . ${srcdir}/../../bfd/configure.host
1135
1136
1137
1138 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1139 echo "configure:1140: checking how to run the C preprocessor" >&5
1140 # On Suns, sometimes $CPP names a directory.
1141 if test -n "$CPP" && test -d "$CPP"; then
1142 CPP=
1143 fi
1144 if test -z "$CPP"; then
1145 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148 # This must be in double quotes, not single quotes, because CPP may get
1149 # substituted into the Makefile and "${CC-cc}" will confuse make.
1150 CPP="${CC-cc} -E"
1151 # On the NeXT, cc -E runs the code through the compiler's parser,
1152 # not just through cpp.
1153 cat > conftest.$ac_ext <<EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1156 #include <assert.h>
1157 Syntax Error
1158 EOF
1159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1160 { (eval echo configure:1161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1162 if test -z "$ac_err"; then
1163 :
1164 else
1165 echo "$ac_err" >&5
1166 echo "configure: failed program was:" >&5
1167 cat conftest.$ac_ext >&5
1168 rm -rf conftest*
1169 CPP="${CC-cc} -E -traditional-cpp"
1170 cat > conftest.$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1173 #include <assert.h>
1174 Syntax Error
1175 EOF
1176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1177 { (eval echo configure:1178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1179 if test -z "$ac_err"; then
1180 :
1181 else
1182 echo "$ac_err" >&5
1183 echo "configure: failed program was:" >&5
1184 cat conftest.$ac_ext >&5
1185 rm -rf conftest*
1186 CPP="${CC-cc} -nologo -E"
1187 cat > conftest.$ac_ext <<EOF
1188 #line 1189 "configure"
1189 #include "confdefs.h"
1190 #include <assert.h>
1191 Syntax Error
1192 EOF
1193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1194 { (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1196 if test -z "$ac_err"; then
1197 :
1198 else
1199 echo "$ac_err" >&5
1200 echo "configure: failed program was:" >&5
1201 cat conftest.$ac_ext >&5
1202 rm -rf conftest*
1203 CPP=/lib/cpp
1204 fi
1205 rm -f conftest*
1206 fi
1207 rm -f conftest*
1208 fi
1209 rm -f conftest*
1210 ac_cv_prog_CPP="$CPP"
1211 fi
1212 CPP="$ac_cv_prog_CPP"
1213 else
1214 ac_cv_prog_CPP="$CPP"
1215 fi
1216 echo "$ac_t""$CPP" 1>&6
1217
1218 for ac_hdr in stdlib.h string.h strings.h sys/stat.h sys/types.h unistd.h
1219 do
1220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1222 echo "configure:1223: checking for $ac_hdr" >&5
1223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1225 else
1226 cat > conftest.$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1229 #include <$ac_hdr>
1230 EOF
1231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1232 { (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1234 if test -z "$ac_err"; then
1235 rm -rf conftest*
1236 eval "ac_cv_header_$ac_safe=yes"
1237 else
1238 echo "$ac_err" >&5
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1241 rm -rf conftest*
1242 eval "ac_cv_header_$ac_safe=no"
1243 fi
1244 rm -f conftest*
1245 fi
1246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1247 echo "$ac_t""yes" 1>&6
1248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1249 cat >> confdefs.h <<EOF
1250 #define $ac_tr_hdr 1
1251 EOF
1252
1253 else
1254 echo "$ac_t""no" 1>&6
1255 fi
1256 done
1257
1258 ac_header_dirent=no
1259 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1260 do
1261 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1262 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1263 echo "configure:1264: checking for $ac_hdr that defines DIR" >&5
1264 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1267 cat > conftest.$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1270 #include <sys/types.h>
1271 #include <$ac_hdr>
1272 int main() {
1273 DIR *dirp = 0;
1274 ; return 0; }
1275 EOF
1276 if { (eval echo configure:1277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1277 rm -rf conftest*
1278 eval "ac_cv_header_dirent_$ac_safe=yes"
1279 else
1280 echo "configure: failed program was:" >&5
1281 cat conftest.$ac_ext >&5
1282 rm -rf conftest*
1283 eval "ac_cv_header_dirent_$ac_safe=no"
1284 fi
1285 rm -f conftest*
1286 fi
1287 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1288 echo "$ac_t""yes" 1>&6
1289 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1290 cat >> confdefs.h <<EOF
1291 #define $ac_tr_hdr 1
1292 EOF
1293 ac_header_dirent=$ac_hdr; break
1294 else
1295 echo "$ac_t""no" 1>&6
1296 fi
1297 done
1298 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1299 if test $ac_header_dirent = dirent.h; then
1300 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1301 echo "configure:1302: checking for opendir in -ldir" >&5
1302 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1305 else
1306 ac_save_LIBS="$LIBS"
1307 LIBS="-ldir $LIBS"
1308 cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311 /* Override any gcc2 internal prototype to avoid an error. */
1312 /* We use char because int might match the return type of a gcc2
1313 builtin and then its argument prototype would still apply. */
1314 char opendir();
1315
1316 int main() {
1317 opendir()
1318 ; return 0; }
1319 EOF
1320 if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1321 rm -rf conftest*
1322 eval "ac_cv_lib_$ac_lib_var=yes"
1323 else
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1326 rm -rf conftest*
1327 eval "ac_cv_lib_$ac_lib_var=no"
1328 fi
1329 rm -f conftest*
1330 LIBS="$ac_save_LIBS"
1331
1332 fi
1333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1334 echo "$ac_t""yes" 1>&6
1335 LIBS="$LIBS -ldir"
1336 else
1337 echo "$ac_t""no" 1>&6
1338 fi
1339
1340 else
1341 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1342 echo "configure:1343: checking for opendir in -lx" >&5
1343 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1346 else
1347 ac_save_LIBS="$LIBS"
1348 LIBS="-lx $LIBS"
1349 cat > conftest.$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1352 /* Override any gcc2 internal prototype to avoid an error. */
1353 /* We use char because int might match the return type of a gcc2
1354 builtin and then its argument prototype would still apply. */
1355 char opendir();
1356
1357 int main() {
1358 opendir()
1359 ; return 0; }
1360 EOF
1361 if { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1362 rm -rf conftest*
1363 eval "ac_cv_lib_$ac_lib_var=yes"
1364 else
1365 echo "configure: failed program was:" >&5
1366 cat conftest.$ac_ext >&5
1367 rm -rf conftest*
1368 eval "ac_cv_lib_$ac_lib_var=no"
1369 fi
1370 rm -f conftest*
1371 LIBS="$ac_save_LIBS"
1372
1373 fi
1374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1375 echo "$ac_t""yes" 1>&6
1376 LIBS="$LIBS -lx"
1377 else
1378 echo "$ac_t""no" 1>&6
1379 fi
1380
1381 fi
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393 # Extract the first word of "ranlib", so it can be a program name with args.
1394 set dummy ranlib; ac_word=$2
1395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1396 echo "configure:1397: checking for $ac_word" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1399 else
1400 if test -n "$RANLIB"; then
1401 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1402 else
1403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1404 ac_dummy="$PATH"
1405 for ac_dir in $ac_dummy; do
1406 test -z "$ac_dir" && ac_dir=.
1407 if test -f $ac_dir/$ac_word; then
1408 ac_cv_prog_RANLIB="ranlib"
1409 break
1410 fi
1411 done
1412 IFS="$ac_save_ifs"
1413 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1414 fi
1415 fi
1416 RANLIB="$ac_cv_prog_RANLIB"
1417 if test -n "$RANLIB"; then
1418 echo "$ac_t""$RANLIB" 1>&6
1419 else
1420 echo "$ac_t""no" 1>&6
1421 fi
1422
1423
1424 trap '' 1 2 15
1425 cat > confcache <<\EOF
1426 # This file is a shell script that caches the results of configure
1427 # tests run on this system so they can be shared between configure
1428 # scripts and configure runs. It is not useful on other systems.
1429 # If it contains results you don't want to keep, you may remove or edit it.
1430 #
1431 # By default, configure uses ./config.cache as the cache file,
1432 # creating it if it does not exist already. You can give configure
1433 # the --cache-file=FILE option to use a different cache file; that is
1434 # what configure does when it calls configure scripts in
1435 # subdirectories, so they share the cache.
1436 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1437 # config.status only pays attention to the cache file if you give it the
1438 # --recheck option to rerun configure.
1439 #
1440 EOF
1441 # The following way of writing the cache mishandles newlines in values,
1442 # but we know of no workaround that is simple, portable, and efficient.
1443 # So, don't put newlines in cache variables' values.
1444 # Ultrix sh set writes to stderr and can't be redirected directly,
1445 # and sets the high bit in the cache file unless we assign to the vars.
1446 (set) 2>&1 |
1447 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1448 *ac_space=\ *)
1449 # `set' does not quote correctly, so add quotes (double-quote substitution
1450 # turns \\\\ into \\, and sed turns \\ into \).
1451 sed -n \
1452 -e "s/'/'\\\\''/g" \
1453 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1454 ;;
1455 *)
1456 # `set' quotes correctly as required by POSIX, so do not add quotes.
1457 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1458 ;;
1459 esac >> confcache
1460 if cmp -s $cache_file confcache; then
1461 :
1462 else
1463 if test -w $cache_file; then
1464 echo "updating cache $cache_file"
1465 cat confcache > $cache_file
1466 else
1467 echo "not updating unwritable cache $cache_file"
1468 fi
1469 fi
1470 rm -f confcache
1471
1472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1473
1474 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1475 # Let make expand exec_prefix.
1476 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1477
1478 # Any assignment to VPATH causes Sun make to only execute
1479 # the first set of double-colon rules, so remove it if not needed.
1480 # If there is a colon in the path, we need to keep it.
1481 if test "x$srcdir" = x.; then
1482 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1483 fi
1484
1485 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1486
1487 DEFS=-DHAVE_CONFIG_H
1488
1489 # Without the "./", some shells look in PATH for config.status.
1490 : ${CONFIG_STATUS=./config.status}
1491
1492 echo creating $CONFIG_STATUS
1493 rm -f $CONFIG_STATUS
1494 cat > $CONFIG_STATUS <<EOF
1495 #! /bin/sh
1496 # Generated automatically by configure.
1497 # Run this file to recreate the current configuration.
1498 # This directory was configured as follows,
1499 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1500 #
1501 # $0 $ac_configure_args
1502 #
1503 # Compiler output produced by configure, useful for debugging
1504 # configure, is in ./config.log if it exists.
1505
1506 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1507 for ac_option
1508 do
1509 case "\$ac_option" in
1510 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1511 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1512 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1513 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1514 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1515 exit 0 ;;
1516 -help | --help | --hel | --he | --h)
1517 echo "\$ac_cs_usage"; exit 0 ;;
1518 *) echo "\$ac_cs_usage"; exit 1 ;;
1519 esac
1520 done
1521
1522 ac_given_srcdir=$srcdir
1523 ac_given_INSTALL="$INSTALL"
1524
1525 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1526 EOF
1527 cat >> $CONFIG_STATUS <<EOF
1528
1529 # Protect against being on the right side of a sed subst in config.status.
1530 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1531 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1532 $ac_vpsub
1533 $extrasub
1534 s%@sim_environment@%$sim_environment%g
1535 s%@sim_alignment@%$sim_alignment%g
1536 s%@sim_assert@%$sim_assert%g
1537 s%@sim_bitsize@%$sim_bitsize%g
1538 s%@sim_endian@%$sim_endian%g
1539 s%@sim_hostendian@%$sim_hostendian%g
1540 s%@sim_float@%$sim_float%g
1541 s%@sim_scache@%$sim_scache%g
1542 s%@sim_default_model@%$sim_default_model%g
1543 s%@sim_hw_cflags@%$sim_hw_cflags%g
1544 s%@sim_hw_objs@%$sim_hw_objs%g
1545 s%@sim_hw@%$sim_hw%g
1546 s%@sim_inline@%$sim_inline%g
1547 s%@sim_packages@%$sim_packages%g
1548 s%@sim_regparm@%$sim_regparm%g
1549 s%@sim_reserved_bits@%$sim_reserved_bits%g
1550 s%@sim_smp@%$sim_smp%g
1551 s%@sim_stdcall@%$sim_stdcall%g
1552 s%@sim_xor_endian@%$sim_xor_endian%g
1553 s%@build_warnings@%$build_warnings%g
1554 s%@SHELL@%$SHELL%g
1555 s%@CFLAGS@%$CFLAGS%g
1556 s%@CPPFLAGS@%$CPPFLAGS%g
1557 s%@CXXFLAGS@%$CXXFLAGS%g
1558 s%@FFLAGS@%$FFLAGS%g
1559 s%@DEFS@%$DEFS%g
1560 s%@LDFLAGS@%$LDFLAGS%g
1561 s%@LIBS@%$LIBS%g
1562 s%@exec_prefix@%$exec_prefix%g
1563 s%@prefix@%$prefix%g
1564 s%@program_transform_name@%$program_transform_name%g
1565 s%@bindir@%$bindir%g
1566 s%@sbindir@%$sbindir%g
1567 s%@libexecdir@%$libexecdir%g
1568 s%@datadir@%$datadir%g
1569 s%@sysconfdir@%$sysconfdir%g
1570 s%@sharedstatedir@%$sharedstatedir%g
1571 s%@localstatedir@%$localstatedir%g
1572 s%@libdir@%$libdir%g
1573 s%@includedir@%$includedir%g
1574 s%@oldincludedir@%$oldincludedir%g
1575 s%@infodir@%$infodir%g
1576 s%@mandir@%$mandir%g
1577 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1578 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1579 s%@INSTALL_DATA@%$INSTALL_DATA%g
1580 s%@CC@%$CC%g
1581 s%@host@%$host%g
1582 s%@host_alias@%$host_alias%g
1583 s%@host_cpu@%$host_cpu%g
1584 s%@host_vendor@%$host_vendor%g
1585 s%@host_os@%$host_os%g
1586 s%@target@%$target%g
1587 s%@target_alias@%$target_alias%g
1588 s%@target_cpu@%$target_cpu%g
1589 s%@target_vendor@%$target_vendor%g
1590 s%@target_os@%$target_os%g
1591 s%@build@%$build%g
1592 s%@build_alias@%$build_alias%g
1593 s%@build_cpu@%$build_cpu%g
1594 s%@build_vendor@%$build_vendor%g
1595 s%@build_os@%$build_os%g
1596 s%@CPP@%$CPP%g
1597 s%@AR_FOR_BUILD@%$AR_FOR_BUILD%g
1598 s%@AR_FLAGS_FOR_BUILD@%$AR_FLAGS_FOR_BUILD%g
1599 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1600 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
1601 s%@RANLIB_FOR_BUILD@%$RANLIB_FOR_BUILD%g
1602 s%@LIBIBERTY_LIB@%$LIBIBERTY_LIB%g
1603 s%@AR@%$AR%g
1604 s%@RANLIB@%$RANLIB%g
1605
1606 CEOF
1607 EOF
1608
1609 cat >> $CONFIG_STATUS <<\EOF
1610
1611 # Split the substitutions into bite-sized pieces for seds with
1612 # small command number limits, like on Digital OSF/1 and HP-UX.
1613 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1614 ac_file=1 # Number of current file.
1615 ac_beg=1 # First line for current file.
1616 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1617 ac_more_lines=:
1618 ac_sed_cmds=""
1619 while $ac_more_lines; do
1620 if test $ac_beg -gt 1; then
1621 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1622 else
1623 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1624 fi
1625 if test ! -s conftest.s$ac_file; then
1626 ac_more_lines=false
1627 rm -f conftest.s$ac_file
1628 else
1629 if test -z "$ac_sed_cmds"; then
1630 ac_sed_cmds="sed -f conftest.s$ac_file"
1631 else
1632 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1633 fi
1634 ac_file=`expr $ac_file + 1`
1635 ac_beg=$ac_end
1636 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1637 fi
1638 done
1639 if test -z "$ac_sed_cmds"; then
1640 ac_sed_cmds=cat
1641 fi
1642 EOF
1643
1644 cat >> $CONFIG_STATUS <<EOF
1645
1646 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1647 EOF
1648 cat >> $CONFIG_STATUS <<\EOF
1649 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1650 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1651 case "$ac_file" in
1652 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1653 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1654 *) ac_file_in="${ac_file}.in" ;;
1655 esac
1656
1657 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1658
1659 # Remove last slash and all that follows it. Not all systems have dirname.
1660 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1661 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1662 # The file is in a subdirectory.
1663 test ! -d "$ac_dir" && mkdir "$ac_dir"
1664 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1665 # A "../" for each directory in $ac_dir_suffix.
1666 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1667 else
1668 ac_dir_suffix= ac_dots=
1669 fi
1670
1671 case "$ac_given_srcdir" in
1672 .) srcdir=.
1673 if test -z "$ac_dots"; then top_srcdir=.
1674 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1675 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1676 *) # Relative path.
1677 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1678 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1679 esac
1680
1681 case "$ac_given_INSTALL" in
1682 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1683 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1684 esac
1685
1686 echo creating "$ac_file"
1687 rm -f "$ac_file"
1688 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1689 case "$ac_file" in
1690 *Makefile*) ac_comsub="1i\\
1691 # $configure_input" ;;
1692 *) ac_comsub= ;;
1693 esac
1694
1695 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1696 sed -e "$ac_comsub
1697 s%@configure_input@%$configure_input%g
1698 s%@srcdir@%$srcdir%g
1699 s%@top_srcdir@%$top_srcdir%g
1700 s%@INSTALL@%$INSTALL%g
1701 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1702 fi; done
1703 rm -f conftest.s*
1704
1705 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1706 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1707 #
1708 # ac_d sets the value in "#define NAME VALUE" lines.
1709 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1710 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1711 ac_dC='\3'
1712 ac_dD='%g'
1713 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1714 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1715 ac_uB='\([ ]\)%\1#\2define\3'
1716 ac_uC=' '
1717 ac_uD='\4%g'
1718 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1719 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1720 ac_eB='$%\1#\2define\3'
1721 ac_eC=' '
1722 ac_eD='%g'
1723
1724 if test "${CONFIG_HEADERS+set}" != set; then
1725 EOF
1726 cat >> $CONFIG_STATUS <<EOF
1727 CONFIG_HEADERS="config.h:config.in"
1728 EOF
1729 cat >> $CONFIG_STATUS <<\EOF
1730 fi
1731 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1732 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1733 case "$ac_file" in
1734 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1735 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1736 *) ac_file_in="${ac_file}.in" ;;
1737 esac
1738
1739 echo creating $ac_file
1740
1741 rm -f conftest.frag conftest.in conftest.out
1742 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1743 cat $ac_file_inputs > conftest.in
1744
1745 EOF
1746
1747 # Transform confdefs.h into a sed script conftest.vals that substitutes
1748 # the proper values into config.h.in to produce config.h. And first:
1749 # Protect against being on the right side of a sed subst in config.status.
1750 # Protect against being in an unquoted here document in config.status.
1751 rm -f conftest.vals
1752 cat > conftest.hdr <<\EOF
1753 s/[\\&%]/\\&/g
1754 s%[\\$`]%\\&%g
1755 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1756 s%ac_d%ac_u%gp
1757 s%ac_u%ac_e%gp
1758 EOF
1759 sed -n -f conftest.hdr confdefs.h > conftest.vals
1760 rm -f conftest.hdr
1761
1762 # This sed command replaces #undef with comments. This is necessary, for
1763 # example, in the case of _POSIX_SOURCE, which is predefined and required
1764 # on some systems where configure will not decide to define it.
1765 cat >> conftest.vals <<\EOF
1766 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1767 EOF
1768
1769 # Break up conftest.vals because some shells have a limit on
1770 # the size of here documents, and old seds have small limits too.
1771
1772 rm -f conftest.tail
1773 while :
1774 do
1775 ac_lines=`grep -c . conftest.vals`
1776 # grep -c gives empty output for an empty file on some AIX systems.
1777 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1778 # Write a limited-size here document to conftest.frag.
1779 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1780 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1781 echo 'CEOF
1782 sed -f conftest.frag conftest.in > conftest.out
1783 rm -f conftest.in
1784 mv conftest.out conftest.in
1785 ' >> $CONFIG_STATUS
1786 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1787 rm -f conftest.vals
1788 mv conftest.tail conftest.vals
1789 done
1790 rm -f conftest.vals
1791
1792 cat >> $CONFIG_STATUS <<\EOF
1793 rm -f conftest.frag conftest.h
1794 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1795 cat conftest.in >> conftest.h
1796 rm -f conftest.in
1797 if cmp -s $ac_file conftest.h 2>/dev/null; then
1798 echo "$ac_file is unchanged"
1799 rm -f conftest.h
1800 else
1801 # Remove last slash and all that follows it. Not all systems have dirname.
1802 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1803 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1804 # The file is in a subdirectory.
1805 test ! -d "$ac_dir" && mkdir "$ac_dir"
1806 fi
1807 rm -f $ac_file
1808 mv conftest.h $ac_file
1809 fi
1810 fi; done
1811
1812 EOF
1813 cat >> $CONFIG_STATUS <<EOF
1814
1815 EOF
1816 cat >> $CONFIG_STATUS <<\EOF
1817 case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac
1818 exit 0
1819 EOF
1820 chmod +x $CONFIG_STATUS
1821 rm -fr confdefs* $ac_clean_files
1822 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1823