Fix bug reported by Robert Boehne:
[platform/upstream/automake.git] / 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   --disable-dependency-tracking Speeds up one-time builds
16   --enable-dependency-tracking  Do not reject slow dependency extractors"
17
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'
51
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
59 ac_prev=
60 for ac_option
61 do
62
63   # If the previous option needs an argument, assign it.
64   if test -n "$ac_prev"; then
65     eval "$ac_prev=\$ac_option"
66     ac_prev=
67     continue
68   fi
69
70   case "$ac_option" in
71   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72   *) ac_optarg= ;;
73   esac
74
75   # Accept the important Cygnus configure options, so we can diagnose typos.
76
77   case "$ac_option" in
78
79   -bindir | --bindir | --bindi | --bind | --bin | --bi)
80     ac_prev=bindir ;;
81   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82     bindir="$ac_optarg" ;;
83
84   -build | --build | --buil | --bui | --bu)
85     ac_prev=build ;;
86   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87     build="$ac_optarg" ;;
88
89   -cache-file | --cache-file | --cache-fil | --cache-fi \
90   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
91     ac_prev=cache_file ;;
92   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
93   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
94     cache_file="$ac_optarg" ;;
95
96   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
97     ac_prev=datadir ;;
98   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
99   | --da=*)
100     datadir="$ac_optarg" ;;
101
102   -disable-* | --disable-*)
103     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
104     # Reject names that are not valid shell variable names.
105     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107     fi
108     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
109     eval "enable_${ac_feature}=no" ;;
110
111   -enable-* | --enable-*)
112     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
113     # Reject names that are not valid shell variable names.
114     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
115       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116     fi
117     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118     case "$ac_option" in
119       *=*) ;;
120       *) ac_optarg=yes ;;
121     esac
122     eval "enable_${ac_feature}='$ac_optarg'" ;;
123
124   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
125   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
126   | --exec | --exe | --ex)
127     ac_prev=exec_prefix ;;
128   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
129   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
130   | --exec=* | --exe=* | --ex=*)
131     exec_prefix="$ac_optarg" ;;
132
133   -gas | --gas | --ga | --g)
134     # Obsolete; use --with-gas.
135     with_gas=yes ;;
136
137   -help | --help | --hel | --he)
138     # Omit some internal or obsolete options to make the list less imposing.
139     # This message is too long to be a string in the A/UX 3.1 sh.
140     cat << EOF
141 Usage: configure [options] [host]
142 Options: [defaults in brackets after descriptions]
143 Configuration:
144   --cache-file=FILE       cache test results in FILE
145   --help                  print this message
146   --no-create             do not create output files
147   --quiet, --silent       do not print \`checking...' messages
148   --version               print the version of autoconf that created configure
149 Directory and file names:
150   --prefix=PREFIX         install architecture-independent files in PREFIX
151                           [$ac_default_prefix]
152   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
153                           [same as prefix]
154   --bindir=DIR            user executables in DIR [EPREFIX/bin]
155   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
156   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
157   --datadir=DIR           read-only architecture-independent data in DIR
158                           [PREFIX/share]
159   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
160   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
161                           [PREFIX/com]
162   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
163   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
164   --includedir=DIR        C header files in DIR [PREFIX/include]
165   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
166   --infodir=DIR           info documentation in DIR [PREFIX/info]
167   --mandir=DIR            man documentation in DIR [PREFIX/man]
168   --srcdir=DIR            find the sources in DIR [configure dir or ..]
169   --program-prefix=PREFIX prepend PREFIX to installed program names
170   --program-suffix=SUFFIX append SUFFIX to installed program names
171   --program-transform-name=PROGRAM
172                           run sed PROGRAM on installed program names
173 EOF
174     cat << EOF
175 Host type:
176   --build=BUILD           configure for building on BUILD [BUILD=HOST]
177   --host=HOST             configure for HOST [guessed]
178   --target=TARGET         configure for TARGET [TARGET=HOST]
179 Features and packages:
180   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
181   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
182   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
183   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
184   --x-includes=DIR        X include files are in DIR
185   --x-libraries=DIR       X library files are in DIR
186 EOF
187     if test -n "$ac_help"; then
188       echo "--enable and --with options recognized:$ac_help"
189     fi
190     exit 0 ;;
191
192   -host | --host | --hos | --ho)
193     ac_prev=host ;;
194   -host=* | --host=* | --hos=* | --ho=*)
195     host="$ac_optarg" ;;
196
197   -includedir | --includedir | --includedi | --included | --include \
198   | --includ | --inclu | --incl | --inc)
199     ac_prev=includedir ;;
200   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
201   | --includ=* | --inclu=* | --incl=* | --inc=*)
202     includedir="$ac_optarg" ;;
203
204   -infodir | --infodir | --infodi | --infod | --info | --inf)
205     ac_prev=infodir ;;
206   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
207     infodir="$ac_optarg" ;;
208
209   -libdir | --libdir | --libdi | --libd)
210     ac_prev=libdir ;;
211   -libdir=* | --libdir=* | --libdi=* | --libd=*)
212     libdir="$ac_optarg" ;;
213
214   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
215   | --libexe | --libex | --libe)
216     ac_prev=libexecdir ;;
217   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
218   | --libexe=* | --libex=* | --libe=*)
219     libexecdir="$ac_optarg" ;;
220
221   -localstatedir | --localstatedir | --localstatedi | --localstated \
222   | --localstate | --localstat | --localsta | --localst \
223   | --locals | --local | --loca | --loc | --lo)
224     ac_prev=localstatedir ;;
225   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
226   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
227   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
228     localstatedir="$ac_optarg" ;;
229
230   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
231     ac_prev=mandir ;;
232   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
233     mandir="$ac_optarg" ;;
234
235   -nfp | --nfp | --nf)
236     # Obsolete; use --without-fp.
237     with_fp=no ;;
238
239   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
240   | --no-cr | --no-c)
241     no_create=yes ;;
242
243   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
244   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
245     no_recursion=yes ;;
246
247   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
248   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
249   | --oldin | --oldi | --old | --ol | --o)
250     ac_prev=oldincludedir ;;
251   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
252   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
253   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
254     oldincludedir="$ac_optarg" ;;
255
256   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
257     ac_prev=prefix ;;
258   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
259     prefix="$ac_optarg" ;;
260
261   -program-prefix | --program-prefix | --program-prefi | --program-pref \
262   | --program-pre | --program-pr | --program-p)
263     ac_prev=program_prefix ;;
264   -program-prefix=* | --program-prefix=* | --program-prefi=* \
265   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
266     program_prefix="$ac_optarg" ;;
267
268   -program-suffix | --program-suffix | --program-suffi | --program-suff \
269   | --program-suf | --program-su | --program-s)
270     ac_prev=program_suffix ;;
271   -program-suffix=* | --program-suffix=* | --program-suffi=* \
272   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
273     program_suffix="$ac_optarg" ;;
274
275   -program-transform-name | --program-transform-name \
276   | --program-transform-nam | --program-transform-na \
277   | --program-transform-n | --program-transform- \
278   | --program-transform | --program-transfor \
279   | --program-transfo | --program-transf \
280   | --program-trans | --program-tran \
281   | --progr-tra | --program-tr | --program-t)
282     ac_prev=program_transform_name ;;
283   -program-transform-name=* | --program-transform-name=* \
284   | --program-transform-nam=* | --program-transform-na=* \
285   | --program-transform-n=* | --program-transform-=* \
286   | --program-transform=* | --program-transfor=* \
287   | --program-transfo=* | --program-transf=* \
288   | --program-trans=* | --program-tran=* \
289   | --progr-tra=* | --program-tr=* | --program-t=*)
290     program_transform_name="$ac_optarg" ;;
291
292   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
293   | -silent | --silent | --silen | --sile | --sil)
294     silent=yes ;;
295
296   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
297     ac_prev=sbindir ;;
298   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
299   | --sbi=* | --sb=*)
300     sbindir="$ac_optarg" ;;
301
302   -sharedstatedir | --sharedstatedir | --sharedstatedi \
303   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
304   | --sharedst | --shareds | --shared | --share | --shar \
305   | --sha | --sh)
306     ac_prev=sharedstatedir ;;
307   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
308   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
309   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
310   | --sha=* | --sh=*)
311     sharedstatedir="$ac_optarg" ;;
312
313   -site | --site | --sit)
314     ac_prev=site ;;
315   -site=* | --site=* | --sit=*)
316     site="$ac_optarg" ;;
317
318   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
319     ac_prev=srcdir ;;
320   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
321     srcdir="$ac_optarg" ;;
322
323   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
324   | --syscon | --sysco | --sysc | --sys | --sy)
325     ac_prev=sysconfdir ;;
326   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
327   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
328     sysconfdir="$ac_optarg" ;;
329
330   -target | --target | --targe | --targ | --tar | --ta | --t)
331     ac_prev=target ;;
332   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
333     target="$ac_optarg" ;;
334
335   -v | -verbose | --verbose | --verbos | --verbo | --verb)
336     verbose=yes ;;
337
338   -version | --version | --versio | --versi | --vers)
339     echo "configure generated by autoconf version 2.13"
340     exit 0 ;;
341
342   -with-* | --with-*)
343     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
344     # Reject names that are not valid shell variable names.
345     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
346       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347     fi
348     ac_package=`echo $ac_package| sed 's/-/_/g'`
349     case "$ac_option" in
350       *=*) ;;
351       *) ac_optarg=yes ;;
352     esac
353     eval "with_${ac_package}='$ac_optarg'" ;;
354
355   -without-* | --without-*)
356     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
357     # Reject names that are not valid shell variable names.
358     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
359       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360     fi
361     ac_package=`echo $ac_package| sed 's/-/_/g'`
362     eval "with_${ac_package}=no" ;;
363
364   --x)
365     # Obsolete; use --with-x.
366     with_x=yes ;;
367
368   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
369   | --x-incl | --x-inc | --x-in | --x-i)
370     ac_prev=x_includes ;;
371   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
372   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
373     x_includes="$ac_optarg" ;;
374
375   -x-libraries | --x-libraries | --x-librarie | --x-librari \
376   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
377     ac_prev=x_libraries ;;
378   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
379   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
380     x_libraries="$ac_optarg" ;;
381
382   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383     ;;
384
385   *)
386     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
387       echo "configure: warning: $ac_option: invalid host type" 1>&2
388     fi
389     if test "x$nonopt" != xNONE; then
390       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
391     fi
392     nonopt="$ac_option"
393     ;;
394
395   esac
396 done
397
398 if test -n "$ac_prev"; then
399   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
400 fi
401
402 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403
404 # File descriptor usage:
405 # 0 standard input
406 # 1 file creation
407 # 2 errors and warnings
408 # 3 some systems may open it to /dev/tty
409 # 4 used on the Kubota Titan
410 # 6 checking for... messages and results
411 # 5 compiler messages saved in config.log
412 if test "$silent" = yes; then
413   exec 6>/dev/null
414 else
415   exec 6>&1
416 fi
417 exec 5>./config.log
418
419 echo "\
420 This file contains any messages produced by compilers while
421 running configure, to aid debugging if configure makes a mistake.
422 " 1>&5
423
424 # Strip out --no-create and --no-recursion so they do not pile up.
425 # Also quote any args containing shell metacharacters.
426 ac_configure_args=
427 for ac_arg
428 do
429   case "$ac_arg" in
430   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
431   | --no-cr | --no-c) ;;
432   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
433   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
434   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
435   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
436   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
437   esac
438 done
439
440 # NLS nuisances.
441 # Only set these to C if already set.  These must not be set unconditionally
442 # because not all systems understand e.g. LANG=C (notably SCO).
443 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
444 # Non-C LC_CTYPE values break the ctype check.
445 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
446 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
447 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
448 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
449
450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
451 rm -rf conftest* confdefs.h
452 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
453 echo > confdefs.h
454
455 # A filename unique to this package, relative to the directory that
456 # configure is in, which we can look for to find out if srcdir is correct.
457 ac_unique_file=automake.in
458
459 # Find the source files, if location was not specified.
460 if test -z "$srcdir"; then
461   ac_srcdir_defaulted=yes
462   # Try the directory containing this script, then its parent.
463   ac_prog=$0
464   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
465   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
466   srcdir=$ac_confdir
467   if test ! -r $srcdir/$ac_unique_file; then
468     srcdir=..
469   fi
470 else
471   ac_srcdir_defaulted=no
472 fi
473 if test ! -r $srcdir/$ac_unique_file; then
474   if test "$ac_srcdir_defaulted" = yes; then
475     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476   else
477     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
478   fi
479 fi
480 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481
482 # Prefer explicitly selected file to automatically selected ones.
483 if test -z "$CONFIG_SITE"; then
484   if test "x$prefix" != xNONE; then
485     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
486   else
487     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
488   fi
489 fi
490 for ac_site_file in $CONFIG_SITE; do
491   if test -r "$ac_site_file"; then
492     echo "loading site script $ac_site_file"
493     . "$ac_site_file"
494   fi
495 done
496
497 if test -r "$cache_file"; then
498   echo "loading cache $cache_file"
499   . $cache_file
500 else
501   echo "creating cache $cache_file"
502   > $cache_file
503 fi
504
505 ac_ext=c
506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
507 ac_cpp='$CPP $CPPFLAGS'
508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
509 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
510 cross_compiling=$ac_cv_prog_cc_cross
511
512 ac_exeext=
513 ac_objext=o
514 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
515   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
517     ac_n= ac_c='
518 ' ac_t='        '
519   else
520     ac_n=-n ac_c= ac_t=
521   fi
522 else
523   ac_n= ac_c='\c' ac_t=
524 fi
525
526
527
528 ac_aux_dir=
529 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
530   if test -f $ac_dir/install-sh; then
531     ac_aux_dir=$ac_dir
532     ac_install_sh="$ac_aux_dir/install-sh -c"
533     break
534   elif test -f $ac_dir/install.sh; then
535     ac_aux_dir=$ac_dir
536     ac_install_sh="$ac_aux_dir/install.sh -c"
537     break
538   fi
539 done
540 if test -z "$ac_aux_dir"; then
541   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
542 fi
543 ac_config_guess=$ac_aux_dir/config.guess
544 ac_config_sub=$ac_aux_dir/config.sub
545 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
546
547 # Find a good install program.  We prefer a C program (faster),
548 # so one script is as good as another.  But avoid the broken or
549 # incompatible versions:
550 # SysV /etc/install, /usr/sbin/install
551 # SunOS /usr/etc/install
552 # IRIX /sbin/install
553 # AIX /bin/install
554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
557 # ./install, which can be erroneously created by make from ./install.sh.
558 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
559 echo "configure:560: checking for a BSD compatible install" >&5
560 if test -z "$INSTALL"; then
561 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
562   echo $ac_n "(cached) $ac_c" 1>&6
563 else
564     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
565   for ac_dir in $PATH; do
566     # Account for people who put trailing slashes in PATH elements.
567     case "$ac_dir/" in
568     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
569     *)
570       # OSF1 and SCO ODT 3.0 have their own names for install.
571       # Don't use installbsd from OSF since it installs stuff as root
572       # by default.
573       for ac_prog in ginstall scoinst install; do
574         if test -f $ac_dir/$ac_prog; then
575           if test $ac_prog = install &&
576             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
577             # AIX install.  It has an incompatible calling convention.
578             :
579           else
580             ac_cv_path_install="$ac_dir/$ac_prog -c"
581             break 2
582           fi
583         fi
584       done
585       ;;
586     esac
587   done
588   IFS="$ac_save_IFS"
589
590 fi
591   if test "${ac_cv_path_install+set}" = set; then
592     INSTALL="$ac_cv_path_install"
593   else
594     # As a last resort, use the slow shell script.  We don't cache a
595     # path for INSTALL within a source directory, because that will
596     # break other packages using the cache if that directory is
597     # removed, or if the path is relative.
598     INSTALL="$ac_install_sh"
599   fi
600 fi
601 echo "$ac_t""$INSTALL" 1>&6
602
603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
604 # It thinks the first close brace ends the variable substitution.
605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
606
607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
608
609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
610
611 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
612 echo "configure:613: checking whether build environment is sane" >&5
613 # Just in case
614 sleep 1
615 echo timestamp > conftest.file
616 # Do `set' in a subshell so we don't clobber the current shell's
617 # arguments.  Must try -L first in case configure is actually a
618 # symlink; some systems play weird games with the mod time of symlinks
619 # (eg FreeBSD returns the mod time of the symlink's containing
620 # directory).
621 if (
622    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
623    if test "$*" = "X"; then
624       # -L didn't work.
625       set X `ls -t $srcdir/configure conftest.file`
626    fi
627    rm -f conftest.file
628    if test "$*" != "X $srcdir/configure conftest.file" \
629       && test "$*" != "X conftest.file $srcdir/configure"; then
630
631       # If neither matched, then we have a broken ls.  This can happen
632       # if, for instance, CONFIG_SHELL is bash and it inherits a
633       # broken ls alias from the environment.  This has actually
634       # happened.  Such a system could not be considered "sane".
635       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
636 alias in your environment" 1>&2; exit 1; }
637    fi
638
639    test "$2" = conftest.file
640    )
641 then
642    # Ok.
643    :
644 else
645    { echo "configure: error: newly created file is older than distributed files!
646 Check your system clock" 1>&2; exit 1; }
647 fi
648 echo "$ac_t""yes" 1>&6
649 if test "$program_transform_name" = s,x,x,; then
650   program_transform_name=
651 else
652   # Double any \ or $.  echo might interpret backslashes.
653   cat <<\EOF_SED > conftestsed
654 s,\\,\\\\,g; s,\$,$$,g
655 EOF_SED
656   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
657   rm -f conftestsed
658 fi
659 test "$program_prefix" != NONE &&
660   program_transform_name="s,^,${program_prefix},; $program_transform_name"
661 # Use a double $ so make ignores it.
662 test "$program_suffix" != NONE &&
663   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
664
665 # sed with no file args requires a program.
666 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
667
668 test x"${MISSING+set}" = xset ||
669   MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
670 # Use eval to expand $SHELL
671 if eval "$MISSING --run true"; then
672   am_missing_run="$MISSING --run "
673 else
674   am_missing_run=
675   am_backtick='`'
676   echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
677 fi
678
679 for ac_prog in gawk mawk nawk awk
680 do
681 # Extract the first word of "$ac_prog", so it can be a program name with args.
682 set dummy $ac_prog; ac_word=$2
683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
684 echo "configure:685: checking for $ac_word" >&5
685 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
686   echo $ac_n "(cached) $ac_c" 1>&6
687 else
688   if test -n "$AWK"; then
689   ac_cv_prog_AWK="$AWK" # Let the user override the test.
690 else
691   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
692   ac_dummy="$PATH"
693   for ac_dir in $ac_dummy; do
694     test -z "$ac_dir" && ac_dir=.
695     if test -f $ac_dir/$ac_word; then
696       ac_cv_prog_AWK="$ac_prog"
697       break
698     fi
699   done
700   IFS="$ac_save_ifs"
701 fi
702 fi
703 AWK="$ac_cv_prog_AWK"
704 if test -n "$AWK"; then
705   echo "$ac_t""$AWK" 1>&6
706 else
707   echo "$ac_t""no" 1>&6
708 fi
709
710 test -n "$AWK" && break
711 done
712
713 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
714 echo "configure:715: checking whether ${MAKE-make} sets \${MAKE}" >&5
715 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
716 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
717   echo $ac_n "(cached) $ac_c" 1>&6
718 else
719   cat > conftestmake <<\EOF
720 all:
721         @echo 'ac_maketemp="${MAKE}"'
722 EOF
723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
724 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
725 if test -n "$ac_maketemp"; then
726   eval ac_cv_prog_make_${ac_make}_set=yes
727 else
728   eval ac_cv_prog_make_${ac_make}_set=no
729 fi
730 rm -f conftestmake
731 fi
732 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
733   echo "$ac_t""yes" 1>&6
734   SET_MAKE=
735 else
736   echo "$ac_t""no" 1>&6
737   SET_MAKE="MAKE=${MAKE-make}"
738 fi
739
740 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
741 if test "${enable_dependency_tracking+set}" = set; then
742   enableval="$enable_dependency_tracking"
743   :
744 fi
745
746 if test "x$enable_dependency_tracking" != xno; then
747   am_depcomp="$ac_aux_dir/depcomp"
748   AMDEPBACKSLASH='\'
749 fi
750
751
752 if test "x$enable_dependency_tracking" != xno; then
753   AMDEP_TRUE=
754   AMDEP_FALSE='#'
755 else
756   AMDEP_TRUE='#'
757   AMDEP_FALSE=
758 fi
759
760
761
762
763 if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
764   DEPDIR=.deps
765   # We redirect because .deps might already exist and be populated.
766   # In this situation we don't want to see an error.
767   rmdir .deps > /dev/null 2>&1
768 else
769   DEPDIR=_deps
770 fi
771
772
773 # test to see if srcdir already configured
774 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
775    test -f $srcdir/config.status; then
776   { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; }
777 fi
778
779 # Define the identity of the package.
780 PACKAGE=automake
781 VERSION=1.4e
782 cat >> confdefs.h <<EOF
783 #define PACKAGE "$PACKAGE"
784 EOF
785
786 cat >> confdefs.h <<EOF
787 #define VERSION "$VERSION"
788 EOF
789
790
791 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
792 # the ones we care about.
793
794 # Some tools Automake needs.
795
796 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
797
798
799 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
800
801
802 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
803
804
805 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
806
807
808 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
809
810
811 AMTAR=${AMTAR-"${am_missing_run}tar"}
812
813
814 if test -z "$install_sh"; then
815    for install_sh in "$ac_aux_dir/install-sh" \
816                      "$ac_aux_dir/install.sh" \
817                      "${am_missing_run}${ac_auxdir}/install-sh";
818    do
819      test -f "$install_sh" && break
820    done
821    # FIXME: an evil hack: we remove the SHELL invocation from
822    # install_sh because automake adds it back in.  Sigh.
823    install_sh=`echo $install_sh | sed -e 's/\${SHELL}//'`
824 fi
825
826
827 # We'd like to do this but we can't because it will unconditionally
828 # require config.guess.  One way would be if autoconf had the capability
829 # to let us compile in this code only when config.guess was already
830 # a possibility.
831 #if test "$cross_compiling" != no; then
832 #  # since we are cross-compiling, we need to check for a suitable `strip'
833 #  AM_PROG_STRIP
834 #  if test -z "$STRIP"; then
835 #    AC_MSG_WARN([strip missing, install-strip will not strip binaries])
836 #  fi
837 #fi
838
839 # If $STRIP is defined (either by the user, or by AM_PROG_STRIP),
840 # instruct install-strip to use install-sh and the given $STRIP program.
841 # Otherwise, just use ${INSTALL}: the idea is to use the vendor install
842 # as much as possible, because it's faster.
843 if test -z "$STRIP"; then
844   # The top level make will set INSTALL_PROGRAM=$(INSTALL_STRIP_PROGRAM)
845   # and the double dolard below is there to make sure that ${INSTALL}
846   # is substitued in the sub-makes, not at the top-level; this is
847   # needed if ${INSTALL} is a relative path (ajusted in each subdirectory
848   # by config.status).
849   INSTALL_STRIP_PROGRAM='$${INSTALL} -s'
850   INSTALL_STRIP_PROGRAM_ENV=''
851 else
852   _am_dirpart="`echo $install_sh | sed -e 's,//*[^/]*$,,'`"
853   INSTALL_STRIP_PROGRAM="\${SHELL} \`CDPATH=: && cd $_am_dirpart && pwd\`/install-sh -c -s"
854   INSTALL_STRIP_PROGRAM_ENV="STRIPPROG='\$(STRIP)'"
855 fi
856
857
858
859 # We need awk for the "check" target.  The system "awk" is bad on
860 # some platforms.
861
862
863 ACLOCAL="`pwd`/aclocal --acdir=m4"
864 # $AUTOMAKE is always run after a `cd $top_srcdir', hence `.' is really
865 # what we want for perllibdir and amdir.
866 AUTOMAKE="perllibdir=./lib `pwd`/automake --amdir=."
867
868 # Extract the first word of "perl", so it can be a program name with args.
869 set dummy perl; ac_word=$2
870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871 echo "configure:872: checking for $ac_word" >&5
872 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
873   echo $ac_n "(cached) $ac_c" 1>&6
874 else
875   case "$PERL" in
876   /*)
877   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
878   ;;
879   ?:/*)                  
880   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
881   ;;
882   *)
883   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
884   ac_dummy="$PATH"
885   for ac_dir in $ac_dummy; do 
886     test -z "$ac_dir" && ac_dir=.
887     if test -f $ac_dir/$ac_word; then
888       ac_cv_path_PERL="$ac_dir/$ac_word"
889       break
890     fi
891   done
892   IFS="$ac_save_ifs"
893   ;;
894 esac
895 fi
896 PERL="$ac_cv_path_PERL"
897 if test -n "$PERL"; then
898   echo "$ac_t""$PERL" 1>&6
899 else
900   echo "$ac_t""no" 1>&6
901 fi
902
903 if test -z "$PERL"; then
904    { echo "configure: error: perl not found" 1>&2; exit 1; }
905 fi
906 $PERL -e 'require 5.005;' || {
907    { echo "configure: error: perl 5.005 or better is required" 1>&2; exit 1; }
908 }
909
910 trap '' 1 2 15
911 cat > confcache <<\EOF
912 # This file is a shell script that caches the results of configure
913 # tests run on this system so they can be shared between configure
914 # scripts and configure runs.  It is not useful on other systems.
915 # If it contains results you don't want to keep, you may remove or edit it.
916 #
917 # By default, configure uses ./config.cache as the cache file,
918 # creating it if it does not exist already.  You can give configure
919 # the --cache-file=FILE option to use a different cache file; that is
920 # what configure does when it calls configure scripts in
921 # subdirectories, so they share the cache.
922 # Giving --cache-file=/dev/null disables caching, for debugging configure.
923 # config.status only pays attention to the cache file if you give it the
924 # --recheck option to rerun configure.
925 #
926 EOF
927 # The following way of writing the cache mishandles newlines in values,
928 # but we know of no workaround that is simple, portable, and efficient.
929 # So, don't put newlines in cache variables' values.
930 # Ultrix sh set writes to stderr and can't be redirected directly,
931 # and sets the high bit in the cache file unless we assign to the vars.
932 (set) 2>&1 |
933   case `(ac_space=' '; set | grep ac_space) 2>&1` in
934   *ac_space=\ *)
935     # `set' does not quote correctly, so add quotes (double-quote substitution
936     # turns \\\\ into \\, and sed turns \\ into \).
937     sed -n \
938       -e "s/'/'\\\\''/g" \
939       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
940     ;;
941   *)
942     # `set' quotes correctly as required by POSIX, so do not add quotes.
943     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
944     ;;
945   esac >> confcache
946 if cmp -s $cache_file confcache; then
947   :
948 else
949   if test -w $cache_file; then
950     echo "updating cache $cache_file"
951     cat confcache > $cache_file
952   else
953     echo "not updating unwritable cache $cache_file"
954   fi
955 fi
956 rm -f confcache
957
958 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
959
960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
961 # Let make expand exec_prefix.
962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
963
964 # Any assignment to VPATH causes Sun make to only execute
965 # the first set of double-colon rules, so remove it if not needed.
966 # If there is a colon in the path, we need to keep it.
967 if test "x$srcdir" = x.; then
968   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
969 fi
970
971 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
972
973 # Transform confdefs.h into DEFS.
974 # Protect against shell expansion while executing Makefile rules.
975 # Protect against Makefile macro expansion.
976 cat > conftest.defs <<\EOF
977 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
978 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
979 s%\[%\\&%g
980 s%\]%\\&%g
981 s%\$%$$%g
982 EOF
983 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
984 rm -f conftest.defs
985
986
987 # Without the "./", some shells look in PATH for config.status.
988 : ${CONFIG_STATUS=./config.status}
989
990 echo creating $CONFIG_STATUS
991 rm -f $CONFIG_STATUS
992 cat > $CONFIG_STATUS <<EOF
993 #! /bin/sh
994 # Generated automatically by configure.
995 # Run this file to recreate the current configuration.
996 # This directory was configured as follows,
997 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
998 #
999 # $0 $ac_configure_args
1000 #
1001 # Compiler output produced by configure, useful for debugging
1002 # configure, is in ./config.log if it exists.
1003
1004 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1005 for ac_option
1006 do
1007   case "\$ac_option" in
1008   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1009     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1010     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1011   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1012     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1013     exit 0 ;;
1014   -help | --help | --hel | --he | --h)
1015     echo "\$ac_cs_usage"; exit 0 ;;
1016   *) echo "\$ac_cs_usage"; exit 1 ;;
1017   esac
1018 done
1019
1020 ac_given_srcdir=$srcdir
1021 ac_given_INSTALL="$INSTALL"
1022
1023 trap 'rm -fr `echo "Makefile
1024            lib/Makefile
1025            lib/Automake/Makefile
1026            m4/Makefile
1027            tests/Makefile
1028
1029            automake aclocal" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1030 EOF
1031 cat >> $CONFIG_STATUS <<EOF
1032
1033 # Protect against being on the right side of a sed subst in config.status.
1034 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1035  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1036 $ac_vpsub
1037 $extrasub
1038 s%@SHELL@%$SHELL%g
1039 s%@CFLAGS@%$CFLAGS%g
1040 s%@CPPFLAGS@%$CPPFLAGS%g
1041 s%@CXXFLAGS@%$CXXFLAGS%g
1042 s%@FFLAGS@%$FFLAGS%g
1043 s%@DEFS@%$DEFS%g
1044 s%@LDFLAGS@%$LDFLAGS%g
1045 s%@LIBS@%$LIBS%g
1046 s%@exec_prefix@%$exec_prefix%g
1047 s%@prefix@%$prefix%g
1048 s%@program_transform_name@%$program_transform_name%g
1049 s%@bindir@%$bindir%g
1050 s%@sbindir@%$sbindir%g
1051 s%@libexecdir@%$libexecdir%g
1052 s%@datadir@%$datadir%g
1053 s%@sysconfdir@%$sysconfdir%g
1054 s%@sharedstatedir@%$sharedstatedir%g
1055 s%@localstatedir@%$localstatedir%g
1056 s%@libdir@%$libdir%g
1057 s%@includedir@%$includedir%g
1058 s%@oldincludedir@%$oldincludedir%g
1059 s%@infodir@%$infodir%g
1060 s%@mandir@%$mandir%g
1061 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1062 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1063 s%@INSTALL_DATA@%$INSTALL_DATA%g
1064 s%@PACKAGE@%$PACKAGE%g
1065 s%@VERSION@%$VERSION%g
1066 s%@ACLOCAL@%$ACLOCAL%g
1067 s%@AUTOCONF@%$AUTOCONF%g
1068 s%@AUTOMAKE@%$AUTOMAKE%g
1069 s%@AUTOHEADER@%$AUTOHEADER%g
1070 s%@MAKEINFO@%$MAKEINFO%g
1071 s%@AMTAR@%$AMTAR%g
1072 s%@install_sh@%$install_sh%g
1073 s%@STRIP@%$STRIP%g
1074 s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g
1075 s%@INSTALL_STRIP_PROGRAM_ENV@%$INSTALL_STRIP_PROGRAM_ENV%g
1076 s%@AWK@%$AWK%g
1077 s%@SET_MAKE@%$SET_MAKE%g
1078 s%@AMDEP_TRUE@%$AMDEP_TRUE%g
1079 s%@AMDEP_FALSE@%$AMDEP_FALSE%g
1080 s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g
1081 s%@DEPDIR@%$DEPDIR%g
1082 s%@PERL@%$PERL%g
1083
1084 CEOF
1085 EOF
1086
1087 cat >> $CONFIG_STATUS <<\EOF
1088
1089 # Split the substitutions into bite-sized pieces for seds with
1090 # small command number limits, like on Digital OSF/1 and HP-UX.
1091 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1092 ac_file=1 # Number of current file.
1093 ac_beg=1 # First line for current file.
1094 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1095 ac_more_lines=:
1096 ac_sed_cmds=""
1097 while $ac_more_lines; do
1098   if test $ac_beg -gt 1; then
1099     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1100   else
1101     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1102   fi
1103   if test ! -s conftest.s$ac_file; then
1104     ac_more_lines=false
1105     rm -f conftest.s$ac_file
1106   else
1107     if test -z "$ac_sed_cmds"; then
1108       ac_sed_cmds="sed -f conftest.s$ac_file"
1109     else
1110       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1111     fi
1112     ac_file=`expr $ac_file + 1`
1113     ac_beg=$ac_end
1114     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1115   fi
1116 done
1117 if test -z "$ac_sed_cmds"; then
1118   ac_sed_cmds=cat
1119 fi
1120 EOF
1121
1122 cat >> $CONFIG_STATUS <<EOF
1123
1124 CONFIG_FILES=\${CONFIG_FILES-"Makefile
1125            lib/Makefile
1126            lib/Automake/Makefile
1127            m4/Makefile
1128            tests/Makefile
1129
1130            automake aclocal"}
1131 EOF
1132 cat >> $CONFIG_STATUS <<\EOF
1133 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1134   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1135   case "$ac_file" in
1136   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1137        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1138   *) ac_file_in="${ac_file}.in" ;;
1139   esac
1140
1141   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1142
1143   # Remove last slash and all that follows it.  Not all systems have dirname.
1144   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1145   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1146     # The file is in a subdirectory.
1147     test ! -d "$ac_dir" && mkdir "$ac_dir"
1148     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1149     # A "../" for each directory in $ac_dir_suffix.
1150     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1151   else
1152     ac_dir_suffix= ac_dots=
1153   fi
1154
1155   case "$ac_given_srcdir" in
1156   .)  srcdir=.
1157       if test -z "$ac_dots"; then top_srcdir=.
1158       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1159   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1160   *) # Relative path.
1161     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1162     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1163   esac
1164
1165   case "$ac_given_INSTALL" in
1166   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1167   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1168   esac
1169
1170   echo creating "$ac_file"
1171   rm -f "$ac_file"
1172   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1173   case "$ac_file" in
1174   *Makefile*) ac_comsub="1i\\
1175 # $configure_input" ;;
1176   *) ac_comsub= ;;
1177   esac
1178
1179   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1180   sed -e "$ac_comsub
1181 s%@configure_input@%$configure_input%g
1182 s%@srcdir@%$srcdir%g
1183 s%@top_srcdir@%$top_srcdir%g
1184 s%@INSTALL@%$INSTALL%g
1185 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1186 fi; done
1187 rm -f conftest.s*
1188
1189 EOF
1190 cat >> $CONFIG_STATUS <<EOF
1191
1192 EOF
1193 cat >> $CONFIG_STATUS <<\EOF
1194 chmod +x automake aclocal
1195 exit 0
1196 EOF
1197 chmod +x $CONFIG_STATUS
1198 rm -fr confdefs* $ac_clean_files
1199 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1200