Added explanatory comment
[automake.git] / configure
blob94e0faed50faa0b5072a00f58377b2e871c9225a
2 #! /bin/sh
5 # Guess values for system-dependent variables and create Makefiles.
6 # Generated automatically using autoconf version 2.14.1 
7 # Copyright (C) 1992, 93, 94, 95, 96, 98, 1999 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Defaults:
13 ac_help=
14 ac_default_prefix=/usr/local
15 # Any additions from configure.in:
18 # Initialize some variables set by options.
19 # The variables have the same names as the options, with
20 # dashes changed to underlines.
21 build=NONE
22 cache_file=./config.cache
23 exec_prefix=NONE
24 host=NONE
25 no_create=
26 nonopt=NONE
27 no_recursion=
28 prefix=NONE
29 program_prefix=NONE
30 program_suffix=NONE
31 program_transform_name=s,x,x,
32 silent=
33 site=
34 srcdir=
35 target=NONE
36 verbose=
37 x_includes=NONE
38 x_libraries=NONE
39 bindir='${exec_prefix}/bin'
40 sbindir='${exec_prefix}/sbin'
41 libexecdir='${exec_prefix}/libexec'
42 datadir='${prefix}/share'
43 sysconfdir='${prefix}/etc'
44 sharedstatedir='${prefix}/com'
45 localstatedir='${prefix}/var'
46 libdir='${exec_prefix}/lib'
47 includedir='${prefix}/include'
48 oldincludedir='/usr/include'
49 infodir='${prefix}/info'
50 mandir='${prefix}/man'
52 # Initialize some other variables.
53 subdirs=
54 MFLAGS= MAKEFLAGS=
55 SHELL=${CONFIG_SHELL-/bin/sh}
56 # Maximum number of lines to put in a shell here document.
57 ac_max_here_lines=12
58 # Sed expression to map a string onto a valid sh variable name
59 ac_tr_sh='sed -e y%*+%pp%;s%[^a-zA-Z0-9_]%_%g'
61 ac_prev=
62 for ac_option
65   # If the previous option needs an argument, assign it.
66   if test -n "$ac_prev"; then
67     eval "$ac_prev=\$ac_option"
68     ac_prev=
69     continue
70   fi
72   case "$ac_option" in
73   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
74   *) ac_optarg= ;;
75   esac
77   # Accept the important Cygnus configure options, so we can diagnose typos.
79   case "$ac_option" in
81   -bindir | --bindir | --bindi | --bind | --bin | --bi)
82     ac_prev=bindir ;;
83   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
84     bindir="$ac_optarg" ;;
86   -build | --build | --buil | --bui | --bu)
87     ac_prev=build ;;
88   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
89     build="$ac_optarg" ;;
91   -cache-file | --cache-file | --cache-fil | --cache-fi \
92   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93     ac_prev=cache_file ;;
94   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
95   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
96     cache_file="$ac_optarg" ;;
98   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99     ac_prev=datadir ;;
100   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101   | --da=*)
102     datadir="$ac_optarg" ;;
104   -disable-* | --disable-*)
105     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
106     # Reject names that are not valid shell variable names.
107     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
108       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109     fi
110     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
111     eval "enable_${ac_feature}=no" ;;
113   -enable-* | --enable-*)
114     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
115     # Reject names that are not valid shell variable names.
116     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
117       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118     fi
119     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120     case "$ac_option" in
121       *=*) ;;
122       *) ac_optarg=yes ;;
123     esac
124     eval "enable_${ac_feature}='$ac_optarg'" ;;
126   -env-* | --env-*)
127     ac_envvar=`echo $ac_option|sed -e 's/^-*env-//' -e 's/=.*//'`
128     # Reject names that are not valid shell variable names.
129     if test -n "`echo $ac_envvar| sed 's/[_a-zA-Z0-9]//g'`"; then
130       { echo "configure: error: $ac_envvar: invalid variable name" 1>&2; exit 1; }
131     fi
132     case "$ac_option" in
133       *=*) ;;
134       *) { echo "configure: error: $ac_envvar: missing value" 1>&2; exit 1; } ;;
135     esac
136     eval "${ac_envvar}='$ac_optarg'"
137     export $ac_envvar ;;
139   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141   | --exec | --exe | --ex)
142     ac_prev=exec_prefix ;;
143   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145   | --exec=* | --exe=* | --ex=*)
146     exec_prefix="$ac_optarg" ;;
148   -gas | --gas | --ga | --g)
149     # Obsolete; use --with-gas.
150     with_gas=yes ;;
152   -help | --help | --hel | --he)
153     # Omit some internal or obsolete options to make the list less imposing.
154     # This message is too long to be a string in the A/UX 3.1 sh.
155     cat << EOF
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
158 Configuration:
159   --cache-file=FILE       cache test results in FILE
160   [--env-]VAR=VALUE       set environment variable VAR to VALUE
161   --help                  print this message
162   --no-create             do not create output files
163   --quiet, --silent       do not print \`checking...' messages
164   --version               print the version of autoconf that created configure
165 Directory and file names:
166   --prefix=PREFIX         install architecture-independent files in PREFIX
167                           [$ac_default_prefix]
168   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
169                           [same as prefix]
170   --bindir=DIR            user executables in DIR [EPREFIX/bin]
171   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
172   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
173   --datadir=DIR           read-only architecture-independent data in DIR
174                           [PREFIX/share]
175   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
176   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
177                           [PREFIX/com]
178   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
179   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
180   --includedir=DIR        C header files in DIR [PREFIX/include]
181   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
182   --infodir=DIR           info documentation in DIR [PREFIX/info]
183   --mandir=DIR            man documentation in DIR [PREFIX/man]
184   --srcdir=DIR            find the sources in DIR [configure dir or ..]
185   --program-prefix=PREFIX prepend PREFIX to installed program names
186   --program-suffix=SUFFIX append SUFFIX to installed program names
187   --program-transform-name=PROGRAM
188                           run sed PROGRAM on installed program names
190     cat << EOF
191 Host type:
192   --build=BUILD           configure for building on BUILD [BUILD=HOST]
193   --host=HOST             configure for HOST [guessed]
194   --target=TARGET         configure for TARGET [TARGET=HOST]
195 Features and packages:
196   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
197   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
198   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
199   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
200   --x-includes=DIR        X include files are in DIR
201   --x-libraries=DIR       X library files are in DIR
203     if test -n "$ac_help"; then
204       echo "--enable and --with options recognized:$ac_help"
205     fi
206     exit 0 ;;
208   -host | --host | --hos | --ho)
209     ac_prev=host ;;
210   -host=* | --host=* | --hos=* | --ho=*)
211     host="$ac_optarg" ;;
213   -includedir | --includedir | --includedi | --included | --include \
214   | --includ | --inclu | --incl | --inc)
215     ac_prev=includedir ;;
216   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217   | --includ=* | --inclu=* | --incl=* | --inc=*)
218     includedir="$ac_optarg" ;;
220   -infodir | --infodir | --infodi | --infod | --info | --inf)
221     ac_prev=infodir ;;
222   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223     infodir="$ac_optarg" ;;
225   -libdir | --libdir | --libdi | --libd)
226     ac_prev=libdir ;;
227   -libdir=* | --libdir=* | --libdi=* | --libd=*)
228     libdir="$ac_optarg" ;;
230   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231   | --libexe | --libex | --libe)
232     ac_prev=libexecdir ;;
233   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234   | --libexe=* | --libex=* | --libe=*)
235     libexecdir="$ac_optarg" ;;
237   -localstatedir | --localstatedir | --localstatedi | --localstated \
238   | --localstate | --localstat | --localsta | --localst \
239   | --locals | --local | --loca | --loc | --lo)
240     ac_prev=localstatedir ;;
241   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244     localstatedir="$ac_optarg" ;;
246   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247     ac_prev=mandir ;;
248   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249     mandir="$ac_optarg" ;;
251   -nfp | --nfp | --nf)
252     # Obsolete; use --without-fp.
253     with_fp=no ;;
255   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256   | --no-cr | --no-c)
257     no_create=yes ;;
259   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261     no_recursion=yes ;;
263   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265   | --oldin | --oldi | --old | --ol | --o)
266     ac_prev=oldincludedir ;;
267   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270     oldincludedir="$ac_optarg" ;;
272   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273     ac_prev=prefix ;;
274   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275     prefix="$ac_optarg" ;;
277   -program-prefix | --program-prefix | --program-prefi | --program-pref \
278   | --program-pre | --program-pr | --program-p)
279     ac_prev=program_prefix ;;
280   -program-prefix=* | --program-prefix=* | --program-prefi=* \
281   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282     program_prefix="$ac_optarg" ;;
284   -program-suffix | --program-suffix | --program-suffi | --program-suff \
285   | --program-suf | --program-su | --program-s)
286     ac_prev=program_suffix ;;
287   -program-suffix=* | --program-suffix=* | --program-suffi=* \
288   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289     program_suffix="$ac_optarg" ;;
291   -program-transform-name | --program-transform-name \
292   | --program-transform-nam | --program-transform-na \
293   | --program-transform-n | --program-transform- \
294   | --program-transform | --program-transfor \
295   | --program-transfo | --program-transf \
296   | --program-trans | --program-tran \
297   | --progr-tra | --program-tr | --program-t)
298     ac_prev=program_transform_name ;;
299   -program-transform-name=* | --program-transform-name=* \
300   | --program-transform-nam=* | --program-transform-na=* \
301   | --program-transform-n=* | --program-transform-=* \
302   | --program-transform=* | --program-transfor=* \
303   | --program-transfo=* | --program-transf=* \
304   | --program-trans=* | --program-tran=* \
305   | --progr-tra=* | --program-tr=* | --program-t=*)
306     program_transform_name="$ac_optarg" ;;
308   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309   | -silent | --silent | --silen | --sile | --sil)
310     silent=yes ;;
312   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313     ac_prev=sbindir ;;
314   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315   | --sbi=* | --sb=*)
316     sbindir="$ac_optarg" ;;
318   -sharedstatedir | --sharedstatedir | --sharedstatedi \
319   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320   | --sharedst | --shareds | --shared | --share | --shar \
321   | --sha | --sh)
322     ac_prev=sharedstatedir ;;
323   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326   | --sha=* | --sh=*)
327     sharedstatedir="$ac_optarg" ;;
329   -site | --site | --sit)
330     ac_prev=site ;;
331   -site=* | --site=* | --sit=*)
332     site="$ac_optarg" ;;
334   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335     ac_prev=srcdir ;;
336   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337     srcdir="$ac_optarg" ;;
339   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340   | --syscon | --sysco | --sysc | --sys | --sy)
341     ac_prev=sysconfdir ;;
342   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344     sysconfdir="$ac_optarg" ;;
346   -target | --target | --targe | --targ | --tar | --ta | --t)
347     ac_prev=target ;;
348   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349     target="$ac_optarg" ;;
351   -v | -verbose | --verbose | --verbos | --verbo | --verb)
352     verbose=yes ;;
354   -version | --version | --versio | --versi | --vers)
355     echo "configure generated by autoconf version 2.14.1"
356     exit 0 ;;
358   -with-* | --with-*)
359     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360     # Reject names that are not valid shell variable names.
361     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363     fi
364     ac_package=`echo $ac_package| sed 's/-/_/g'`
365     case "$ac_option" in
366       *=*) ;;
367       *) ac_optarg=yes ;;
368     esac
369     eval "with_${ac_package}='$ac_optarg'" ;;
371   -without-* | --without-*)
372     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373     # Reject names that are not valid shell variable names.
374     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376     fi
377     ac_package=`echo $ac_package| sed 's/-/_/g'`
378     eval "with_${ac_package}=no" ;;
380   --x)
381     # Obsolete; use --with-x.
382     with_x=yes ;;
384   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385   | --x-incl | --x-inc | --x-in | --x-i)
386     ac_prev=x_includes ;;
387   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389     x_includes="$ac_optarg" ;;
391   -x-libraries | --x-libraries | --x-librarie | --x-librari \
392   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393     ac_prev=x_libraries ;;
394   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396     x_libraries="$ac_optarg" ;;
398   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399     ;;
401   *=*) 
402     ac_envvar=`echo $ac_option|sed -e 's/=.*//'`
403     # Reject names that are not valid shell variable names.
404     if test -n "`echo $ac_envvar| sed 's/[_a-zA-Z0-9]//g'`"; then
405       { echo "configure: error: $ac_envvar: invalid variable name" 1>&2; exit 1; }
406     fi
407     eval "${ac_envvar}='$ac_optarg'"
408     export $ac_envvar ;;
410   *)
411     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412       echo "configure: warning: $ac_option: invalid host type" 1>&2
413     fi
414     if test "x$nonopt" != xNONE; then
415       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416     fi
417     nonopt="$ac_option"
418     ;;
420   esac
421 done
423 if test -n "$ac_prev"; then
424   { echo "configure: error: missing argument to --\`echo $ac_prev | sed 's/_/-/g'\`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
431 # 0 standard input
432 # 1 file creation
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
439   exec 6>/dev/null
440 else
441   exec 6>&1
443 exec 5>./config.log
445 echo "\
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
448 " 1>&5
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
452 ac_configure_args=
453 for ac_arg
455   case "$ac_arg" in
456   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457   | --no-cr | --no-c) ;;
458   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
463   esac
464 done
466 # NLS nuisances.
467 # Only set these to C if already set.  These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
472 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 echo > confdefs.h
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file=automake.in
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487   ac_srcdir_defaulted=yes
488   # Try the directory containing this script, then its parent.
489   ac_prog=$0
490   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492   srcdir=$ac_confdir
493   if test ! -r $srcdir/$ac_unique_file; then
494     srcdir=..
495   fi
496 else
497   ac_srcdir_defaulted=no
499 if test ! -r $srcdir/$ac_unique_file; then
500   if test "$ac_srcdir_defaulted" = yes; then
501     { echo "configure: error: cannot find sources in $ac_confdir or .." 1>&2; exit 1; }
502   else
503     { echo "configure: error: cannot find sources in $srcdir" 1>&2; exit 1; }
504   fi
506 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510   if test "x$prefix" != xNONE; then
511     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512   else
513     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514   fi
516 for ac_site_file in $CONFIG_SITE; do
517   if test -r "$ac_site_file"; then
518     echo "loading site script $ac_site_file"
519     . "$ac_site_file"
520   fi
521 done
523 if test -r "$cache_file"; then
524   echo "loading cache $cache_file"
525       test -f "$cache_file" && . $cache_file
526 else
527   echo "creating cache $cache_file"
528   > $cache_file
532 ac_ext=c
533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
534 ac_cpp='$CPP $CPPFLAGS'
535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
537 cross_compiling=$ac_cv_prog_cc_cross
539 ac_exeext=
540 ac_objext=o
542 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545     ac_n= ac_c='
546 ' ac_t='        '
547   else
548     ac_n=-n ac_c= ac_t=
549   fi
550 else
551   ac_n= ac_c='\c' ac_t=
559 ac_aux_dir=
560 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
561   if test -f $ac_dir/install-sh; then
562     ac_aux_dir=$ac_dir
563     ac_install_sh="$ac_aux_dir/install-sh -c"
564     break
565   elif test -f $ac_dir/install.sh; then
566     ac_aux_dir=$ac_dir
567     ac_install_sh="$ac_aux_dir/install.sh -c"
568     break
569   fi
570 done
571 if test -z "$ac_aux_dir"; then
572   { echo "configure: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
579 # Find a good install program.  We prefer a C program (faster),
580 # so one script is as good as another.  But avoid the broken or
581 # incompatible versions:
582 # SysV /etc/install, /usr/sbin/install
583 # SunOS /usr/etc/install
584 # IRIX /sbin/install
585 # AIX /bin/install
586 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
587 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
588 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
589 # ./install, which can be erroneously created by make from ./install.sh.
590 echo $ac_n "checking for a BSD compatible install... $ac_c" 1>&6
591 echo "configure:592: checking for a BSD compatible install" 1>&5
592 if test -z "$INSTALL"; then
593 if test "${ac_cv_path_install+set}" = set; then
594   echo $ac_n "(cached) $ac_c" 1>&6
595 else
596     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
597   for ac_dir in $PATH; do
598     # Account for people who put trailing slashes in PATH elements.
599     case "$ac_dir/" in
600     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
601     *)
602       # OSF1 and SCO ODT 3.0 have their own names for install.
603       # Don't use installbsd from OSF since it installs stuff as root
604       # by default.
605       for ac_prog in ginstall scoinst install; do
606         if test -f $ac_dir/$ac_prog; then
607           if test $ac_prog = install &&
608             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
609             # AIX install.  It has an incompatible calling convention.
610             :
611           elif test $ac_prog = install &&
612             grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
613             # program-specific install script used by HP pwplus--don't use.
614             :
615           else
616             ac_cv_path_install="$ac_dir/$ac_prog -c"
617             break 2
618           fi
619         fi
620       done
621       ;;
622     esac
623   done
624   IFS="$ac_save_IFS"
627   if test "${ac_cv_path_install+set}" = set; then
628     INSTALL="$ac_cv_path_install"
629   else
630     # As a last resort, use the slow shell script.  We don't cache a
631     # path for INSTALL within a source directory, because that will
632     # break other packages using the cache if that directory is
633     # removed, or if the path is relative.
634     INSTALL="$ac_install_sh"
635   fi
637 echo "$ac_t""$INSTALL" 1>&6
639 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
640 # It thinks the first close brace ends the variable substitution.
641 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
643 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
645 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
648 echo $ac_n "checking whether build environment is sane... $ac_c" 1>&6
649 echo "configure:650: checking whether build environment is sane" 1>&5
650 # Just in case
651 sleep 1
652 echo timestamp > conftestfile
653 # Do `set' in a subshell so we don't clobber the current shell's
654 # arguments.  Must try -L first in case configure is actually a
655 # symlink; some systems play weird games with the mod time of symlinks
656 # (eg FreeBSD returns the mod time of the symlink's containing
657 # directory).
658 if (
659    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
660    if test "$*" = "X"; then
661       # -L didn't work.
662       set X `ls -t $srcdir/configure conftestfile`
663    fi
664    if test "$*" != "X $srcdir/configure conftestfile" \
665       && test "$*" != "X conftestfile $srcdir/configure"; then
667       # If neither matched, then we have a broken ls.  This can happen
668       # if, for instance, CONFIG_SHELL is bash and it inherits a
669       # broken ls alias from the environment.  This has actually
670       # happened.  Such a system could not be considered "sane".
671       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
672 alias in your environment" 1>&2; exit 1; }
673    fi
675    test "$2" = conftestfile
676    )
677 then
678    # Ok.
679    :
680 else
681    { echo "configure: error: newly created file is older than distributed files!
682 Check your system clock" 1>&2; exit 1; }
684 rm -f conftest*
685 echo "$ac_t""yes" 1>&6
687 if test "$program_transform_name" = s,x,x,; then
688   program_transform_name=
689 else
690   # Double any \ or $.  echo might interpret backslashes.
691   cat <<\EOF_SED > conftestsed
692 s,\\,\\\\,g; s,\$,$$,g
693 EOF_SED
694   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
695   rm -f conftestsed
697 test "$program_prefix" != NONE &&
698   program_transform_name="s,^,${program_prefix},;$program_transform_name"
699 # Use a double $ so make ignores it.
700 test "$program_suffix" != NONE &&
701   program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
703 # sed with no file args requires a program.
704 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
708 for ac_prog in mawk gawk nawk awk
711 # Extract the first word of "$ac_prog", so it can be a program name with args.
712 set dummy $ac_prog; ac_word=$2
713 echo $ac_n "checking for $ac_word... $ac_c" 1>&6
714 echo "configure:715: checking for $ac_word" 1>&5
715 if test "${ac_cv_prog_AWK+set}" = set; then
716   echo $ac_n "(cached) $ac_c" 1>&6
717 else
718   if test -n "$AWK"; then
719   ac_cv_prog_AWK="$AWK" # Let the user override the test.
720 else
721   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
722   ac_dummy="$PATH"
723   for ac_dir in $ac_dummy; do
724     test -z "$ac_dir" && ac_dir=.
725     if test -f $ac_dir/$ac_word; then
726       ac_cv_prog_AWK="$ac_prog"
727       break
728     fi
729   done
730   IFS="$ac_save_ifs"
733 AWK="$ac_cv_prog_AWK"
734 if test -n "$AWK"; then
735   echo "$ac_t""$AWK" 1>&6
736 else
737   echo "$ac_t""no" 1>&6
740 test -n "$AWK" && break
741 done
744 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}... $ac_c" 1>&6
745 echo "configure:746: checking whether ${MAKE-make} sets \${MAKE}" 1>&5
746 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
747 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
748   echo $ac_n "(cached) $ac_c" 1>&6
749 else
750   cat > conftestmake <<\EOF
751 all:
752         @echo 'ac_maketemp="${MAKE}"'
754 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
755 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
756 if test -n "$ac_maketemp"; then
757   eval ac_cv_prog_make_${ac_make}_set=yes
758 else
759   eval ac_cv_prog_make_${ac_make}_set=no
761 rm -f conftestmake
763 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
764   echo "$ac_t""yes" 1>&6
765   SET_MAKE=
766 else
767   echo "$ac_t""no" 1>&6
768   SET_MAKE="MAKE=${MAKE-make}"
773 PACKAGE=automake
775 VERSION=1.4a
777 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
778   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
780 cat >> confdefs.h <<EOF
781 #define PACKAGE "$PACKAGE"
784 cat >> confdefs.h <<EOF
785 #define VERSION "$VERSION"
790 missing_dir=`cd $ac_aux_dir && pwd`
792 echo $ac_n "checking for working aclocal... $ac_c" 1>&6
793 echo "configure:794: checking for working aclocal" 1>&5
794 # Run test in a subshell; some versions of sh will print an error if
795 # an executable is not found, even if stderr is redirected.
796 # Redirect stdin to placate older versions of autoconf.  Sigh.
797 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
798    ACLOCAL=aclocal
799    echo "$ac_t""found" 1>&6
800 else
801    ACLOCAL="$missing_dir/missing aclocal"
802    echo "$ac_t""missing" 1>&6
806 echo $ac_n "checking for working autoconf... $ac_c" 1>&6
807 echo "configure:808: checking for working autoconf" 1>&5
808 # Run test in a subshell; some versions of sh will print an error if
809 # an executable is not found, even if stderr is redirected.
810 # Redirect stdin to placate older versions of autoconf.  Sigh.
811 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
812    AUTOCONF=autoconf
813    echo "$ac_t""found" 1>&6
814 else
815    AUTOCONF="$missing_dir/missing autoconf"
816    echo "$ac_t""missing" 1>&6
820 echo $ac_n "checking for working automake... $ac_c" 1>&6
821 echo "configure:822: checking for working automake" 1>&5
822 # Run test in a subshell; some versions of sh will print an error if
823 # an executable is not found, even if stderr is redirected.
824 # Redirect stdin to placate older versions of autoconf.  Sigh.
825 if (automake --version) < /dev/null > /dev/null 2>&1; then
826    AUTOMAKE=automake
827    echo "$ac_t""found" 1>&6
828 else
829    AUTOMAKE="$missing_dir/missing automake"
830    echo "$ac_t""missing" 1>&6
834 echo $ac_n "checking for working autoheader... $ac_c" 1>&6
835 echo "configure:836: checking for working autoheader" 1>&5
836 # Run test in a subshell; some versions of sh will print an error if
837 # an executable is not found, even if stderr is redirected.
838 # Redirect stdin to placate older versions of autoconf.  Sigh.
839 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
840    AUTOHEADER=autoheader
841    echo "$ac_t""found" 1>&6
842 else
843    AUTOHEADER="$missing_dir/missing autoheader"
844    echo "$ac_t""missing" 1>&6
848 echo $ac_n "checking for working makeinfo... $ac_c" 1>&6
849 echo "configure:850: checking for working makeinfo" 1>&5
850 # Run test in a subshell; some versions of sh will print an error if
851 # an executable is not found, even if stderr is redirected.
852 # Redirect stdin to placate older versions of autoconf.  Sigh.
853 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
854    MAKEINFO=makeinfo
855    echo "$ac_t""found" 1>&6
856 else
857    MAKEINFO="$missing_dir/missing makeinfo"
858    echo "$ac_t""missing" 1>&6
861 install_sh="$missing_dir/install-sh"
862 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
865 for ac_prog in gnutar gtar tar
868 # Extract the first word of "$ac_prog", so it can be a program name with args.
869 set dummy $ac_prog; ac_word=$2
870 echo $ac_n "checking for $ac_word... $ac_c" 1>&6
871 echo "configure:872: checking for $ac_word" 1>&5
872 if test "${ac_cv_prog_AMTAR+set}" = set; then
873   echo $ac_n "(cached) $ac_c" 1>&6
874 else
875   if test -n "$AMTAR"; then
876   ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
877 else
878   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
879   ac_dummy="$PATH"
880   for ac_dir in $ac_dummy; do
881     test -z "$ac_dir" && ac_dir=.
882     if test -f $ac_dir/$ac_word; then
883       ac_cv_prog_AMTAR="$ac_prog"
884       break
885     fi
886   done
887   IFS="$ac_save_ifs"
890 AMTAR="$ac_cv_prog_AMTAR"
891 if test -n "$AMTAR"; then
892   echo "$ac_t""$AMTAR" 1>&6
893 else
894   echo "$ac_t""no" 1>&6
897 test -n "$AMTAR" && break
898 done
901 AMTARFLAGS=
902 if test -n "$AMTAR"; then
903   if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
904         AMTARFLAGS=o
905   fi
910 ACLOCAL="`pwd`/aclocal --acdir=m4"
911 AUTOMAKE="`pwd`/automake --amdir=."
914 # Extract the first word of "perl", so it can be a program name with args.
915 set dummy perl; ac_word=$2
916 echo $ac_n "checking for $ac_word... $ac_c" 1>&6
917 echo "configure:918: checking for $ac_word" 1>&5
918 if test "${ac_cv_path_PERL+set}" = set; then
919   echo $ac_n "(cached) $ac_c" 1>&6
920 else
921   case "$PERL" in
922   /*)
923   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
924   ;;
925   ?:/*)
926   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
927   ;;
928   *)
929   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
930   ac_dummy="$PATH"
931   for ac_dir in $ac_dummy; do
932     test -z "$ac_dir" && ac_dir=.
933     if test -f $ac_dir/$ac_word; then
934       ac_cv_path_PERL="$ac_dir/$ac_word"
935       break
936     fi
937   done
938   IFS="$ac_save_ifs"
939   ;;
940 esac
942 PERL="$ac_cv_path_PERL"
943 if test -n "$PERL"; then
944   echo "$ac_t""$PERL" 1>&6
945 else
946   echo "$ac_t""no" 1>&6
949 if test -z "$PERL"; then
950    { echo "configure: error: perl not found" 1>&2; exit 1; }
952 if test -n "`$PERL -v | fgrep 'version 5.001' 2> /dev/null`"; then
953    { echo "configure: error: perl 5.001 has bug which causes automake to fail" 1>&2; exit 1; }
956 trap '' 1 2 15
957 cat > confcache <<\EOF
958 # This file is a shell script that caches the results of configure
959 # tests run on this system so they can be shared between configure
960 # scripts and configure runs.  It is not useful on other systems.
961 # If it contains results you don't want to keep, you may remove or edit it.
963 # By default, configure uses ./config.cache as the cache file,
964 # creating it if it does not exist already.  You can give configure
965 # the --cache-file=FILE option to use a different cache file; that is
966 # what configure does when it calls configure scripts in
967 # subdirectories, so they share the cache.
968 # Giving --cache-file=/dev/null disables caching, for debugging configure.
969 # config.status only pays attention to the cache file if you give it the
970 # --recheck option to rerun configure.
973 # The following way of writing the cache mishandles newlines in values,
974 # but we know of no workaround that is simple, portable, and efficient.
975 # So, don't put newlines in cache variables' values.
976 # Ultrix sh set writes to stderr and can't be redirected directly,
977 # and sets the high bit in the cache file unless we assign to the vars.
978 (set) 2>&1 |
979   case `(ac_space=' '; set | grep ac_space) 2>&1` in
980   *ac_space=\ *)
981     # `set' does not quote correctly, so add quotes (double-quote substitution
982     # turns \\\\ into \\, and sed turns \\ into \).
983     sed -n \
984       -e "s/'/'\\\\''/g" \
985       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
986     ;;
987   *)
988     # `set' quotes correctly as required by POSIX, so do not add quotes.
989     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
990     ;;
991   esac >> confcache
992 if cmp -s $cache_file confcache; then
993   :
994 else
995   if test -w $cache_file; then
996     echo "updating cache $cache_file"
997     cat confcache > $cache_file
998   else
999     echo "not updating unwritable cache $cache_file"
1000   fi
1002 rm -f confcache
1004 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1006 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1007 # Let make expand exec_prefix.
1008 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1010 # Any assignment to VPATH causes Sun make to only execute
1011 # the first set of double-colon rules, so remove it if not needed.
1012 # If there is a colon in the path, we need to keep it.
1013 if test "x$srcdir" = x.; then
1014   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1017 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1019 # Transform confdefs.h into DEFS.
1020 # Protect against shell expansion while executing Makefile rules.
1021 # Protect against Makefile macro expansion.
1023 # If the first sed substitution is executed (which looks for macros that
1024 # take arguments), then we branch to the cleanup section.  Otherwise,
1025 # look for a macro that doesn't take arguments.
1026 cat > $conftest.defs <<\EOF
1027 s%^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)%-D\1=\2%g
1028 t cleanup
1029 s%^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)%-D\1=\2%g
1030 : cleanup
1031 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1032 s%\[%\\&%g
1033 s%\]%\\&%g
1034 s%\$%$$%g
1036 # We use echo to avoid assuming a particular line-breaking character.
1037 # The extra dot is to prevent the shell from consuming trailing
1038 # line-breaks from the sub-command output.  A line-break within
1039 # single-quotes doesn't work because, if this script is created in a
1040 # platform that uses two characters for line-breaks (e.g., DOS), tr
1041 # would break.
1042 ac_LF_and_DOT="`echo; echo .`"
1043 DEFS=`sed -f $conftest.defs confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1044 rm -f $conftest.defs
1047 # Without the "./", some shells look in PATH for config.status.
1048 : ${CONFIG_STATUS=./config.status}
1050 echo creating $CONFIG_STATUS
1051 rm -f $CONFIG_STATUS
1052 cat > $CONFIG_STATUS <<EOF
1053 #! /bin/sh
1054 # Generated automatically by configure.
1055 # Run this file to recreate the current configuration.
1056 # This directory was configured as follows,
1057 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1059 # $0 $ac_configure_args
1061 # Compiler output produced by configure, useful for debugging
1062 # configure, is in ./config.log if it exists.
1064 ac_cs_usage="\
1065 Usage: $CONFIG_STATUS [OPTIONS]
1066 Configure files from templates according to the current configuration.
1068   --recheck    Update $CONFIG_STATUS by reconfiguring in the same conditions
1069   --version    Print the version of Autoconf and exit
1070   --help       Display this help and exit
1072 By default the following files will updated.
1073   Configuration files:
1074     Makefile automake aclocal m4/Makefile tests/Makefile 
1076 In order to configure a list a specified FILES and HEADERS, run
1077   CONFIG_FILES=FILES CONFIG_HEADERS=HEADERS $CONFIG_STATUS
1079 Report bugs to <bug-autoconf@gnu.org>."
1081 ac_cs_version="\
1082 $CONFIG_STATUS generated by autoconf version 2.14.1.
1083 Configured on host `(hostname || uname -n) 2>/dev/null | sed 1q` by running
1084   $0 $ac_configure_args"
1086 for ac_option
1088   case "\$ac_option" in
1089   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1090     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1091     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1092   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1093     echo "\$ac_cs_version"; exit 0 ;;
1094   -help | --help | --hel | --he | --h)
1095     echo "\$ac_cs_usage"; exit 0 ;;
1096   *) echo "\$ac_cs_usage"; exit 1 ;;
1097   esac
1098 done
1100 ac_given_srcdir=$srcdir
1101 ac_given_INSTALL="$INSTALL"
1102 # Allow concurrent executions
1103 conftest=cft\$\$
1105 : \${CONFIG_FILES="Makefile automake aclocal m4/Makefile tests/Makefile"}
1106 rm -fr \`echo "\$CONFIG_FILES " | sed "s/:[^ ]*//g"\`
1107 trap 'rm -fr \$conftest*; exit 1' 1 2 15
1109 # Protect against being on the right side of a sed subst in config.status.
1110 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1111  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > \$conftest.subs <<\\CEOF
1112 $ac_vpsub
1113 $extrasub
1114 s%@SHELL@%$SHELL%g
1115 s%@CFLAGS@%$CFLAGS%g
1116 s%@CPPFLAGS@%$CPPFLAGS%g
1117 s%@CXXFLAGS@%$CXXFLAGS%g
1118 s%@FFLAGS@%$FFLAGS%g
1119 s%@DEFS@%$DEFS%g
1120 s%@LDFLAGS@%$LDFLAGS%g
1121 s%@LIBS@%$LIBS%g
1122 s%@exec_prefix@%$exec_prefix%g
1123 s%@prefix@%$prefix%g
1124 s%@program_transform_name@%$program_transform_name%g
1125 s%@bindir@%$bindir%g
1126 s%@sbindir@%$sbindir%g
1127 s%@libexecdir@%$libexecdir%g
1128 s%@datadir@%$datadir%g
1129 s%@sysconfdir@%$sysconfdir%g
1130 s%@sharedstatedir@%$sharedstatedir%g
1131 s%@localstatedir@%$localstatedir%g
1132 s%@libdir@%$libdir%g
1133 s%@includedir@%$includedir%g
1134 s%@oldincludedir@%$oldincludedir%g
1135 s%@infodir@%$infodir%g
1136 s%@mandir@%$mandir%g
1137 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1138 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1139 s%@INSTALL_DATA@%$INSTALL_DATA%g
1140 s%@PACKAGE@%$PACKAGE%g
1141 s%@VERSION@%$VERSION%g
1142 s%@ACLOCAL@%$ACLOCAL%g
1143 s%@AUTOCONF@%$AUTOCONF%g
1144 s%@AUTOMAKE@%$AUTOMAKE%g
1145 s%@AUTOHEADER@%$AUTOHEADER%g
1146 s%@MAKEINFO@%$MAKEINFO%g
1147 s%@install_sh@%$install_sh%g
1148 s%@AMTAR@%$AMTAR%g
1149 s%@AWK@%$AWK%g
1150 s%@AMTARFLAGS@%$AMTARFLAGS%g
1151 s%@SET_MAKE@%$SET_MAKE%g
1152 s%@PERL@%$PERL%g
1154 CEOF
1157 cat >> $CONFIG_STATUS <<\EOF
1159 # Split the substitutions into bite-sized pieces for seds with
1160 # small command number limits, like on Digital OSF/1 and HP-UX.
1161 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1162 ac_file=1 # Number of current file.
1163 ac_beg=1 # First line for current file.
1164 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1165 ac_more_lines=:
1166 ac_sed_cmds=""
1167 while $ac_more_lines; do
1168   if test $ac_beg -gt 1; then
1169     sed "1,${ac_beg}d; ${ac_end}q" $conftest.subs > $conftest.s$ac_file
1170   else
1171     sed "${ac_end}q" $conftest.subs > $conftest.s$ac_file
1172   fi
1173   if test ! -s $conftest.s$ac_file; then
1174     ac_more_lines=false
1175     rm -f $conftest.s$ac_file
1176   else
1177     if test -z "$ac_sed_cmds"; then
1178       ac_sed_cmds="sed -f $conftest.s$ac_file"
1179     else
1180       ac_sed_cmds="$ac_sed_cmds | sed -f $conftest.s$ac_file"
1181     fi
1182     ac_file=`expr $ac_file + 1`
1183     ac_beg=$ac_end
1184     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1185   fi
1186 done
1187 if test -z "$ac_sed_cmds"; then
1188   ac_sed_cmds=cat
1192 cat >> $CONFIG_STATUS <<\EOF
1193 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1194   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1195   case "$ac_file" in
1196   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1197        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1198   *) ac_file_in="${ac_file}.in" ;;
1199   esac
1201   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1203   # Remove last slash and all that follows it.  Not all systems have dirname.
1204   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1205   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1206     # The file is in a subdirectory.
1207     test ! -d "$ac_dir" && mkdir "$ac_dir"
1208     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1209     # A "../" for each directory in $ac_dir_suffix.
1210     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1211   else
1212     ac_dir_suffix= ac_dots=
1213   fi
1215   case "$ac_given_srcdir" in
1216   .)  srcdir=.
1217       if test -z "$ac_dots"; then top_srcdir=.
1218       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1219   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1220   *) # Relative path.
1221     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1222     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1223   esac
1225   case "$ac_given_INSTALL" in
1226   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1227   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1228   esac
1230   echo creating "$ac_file"
1231   rm -f "$ac_file"
1232   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1233   case "$ac_file" in
1234   *Makefile*) ac_comsub="1i\\
1235 # $configure_input" ;;
1236   *) ac_comsub= ;;
1237   esac
1239 # Don't redirect the output to AC_FILE directly: use `mv' so that updating
1240 # is atomic, and doesn't need trapping.
1241   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1242   sed -e "$ac_comsub
1243 s%@configure_input@%$configure_input%g
1244 s%@srcdir@%$srcdir%g
1245 s%@top_srcdir@%$top_srcdir%g
1246 s%@INSTALL@%$INSTALL%g
1247 " $ac_file_inputs | (eval "$ac_sed_cmds") > $conftest.out
1248   mv $conftest.out $ac_file
1249 fi; done
1250 rm -f $conftest.s*
1253 cat >> $CONFIG_STATUS <<EOF
1256 cat >> $CONFIG_STATUS <<\EOF
1257 chmod +x automake aclocal
1258 exit 0
1260 chmod +x $CONFIG_STATUS
1261 rm -fr confdefs* $ac_clean_files
1262 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1