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