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