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