OSDN Git Service

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